Skip to main content
WalesMathsSyllabus dot point

How do we locate and approximate roots when there is no exact algebraic solution, and estimate an area numerically?

Locating roots by change of sign, iterative methods, the Newton-Raphson method, and the trapezium rule for numerical integration.

A focused answer to WJEC A2 Unit 3 numerical methods, covering locating roots by change of sign, iterative methods, the Newton-Raphson method, and the trapezium rule for estimating definite integrals.

Generated by Claude Opus 4.813 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Examples in context
  4. Try this

What this dot point is asking

WJEC wants you to locate roots by the change-of-sign method, to use iterative formulae xn+1=g(xn)x_{n+1} = g(x_n) to converge on a root, to apply the Newton-Raphson method, and to estimate a definite integral with the trapezium rule. These methods handle equations and integrals that have no neat closed-form answer, which is most of the realistic ones.

The answer

Locating roots by change of sign

If ff is continuous and f(a)f(a) and f(b)f(b) have opposite signs, then f(x)=0f(x) = 0 has at least one root between aa and bb.

Iterative methods

Rearranging f(x)=0f(x) = 0 into the form x=g(x)x = g(x) gives an iteration xn+1=g(xn)x_{n+1} = g(x_n). Starting from an estimate x0x_0, repeated application converges to a root when the iteration is well chosen. A staircase or cobweb diagram on y=xy = x and y=g(x)y = g(x) shows the convergence.

The Newton-Raphson method

Newton-Raphson uses the tangent at the current estimate to find the next, usually converging much faster than a simple iteration.

The trapezium rule

The trapezium rule approximates the area under a curve by dividing it into vertical strips of equal width hh and treating each strip as a trapezium.

For a curve that is concave up, the trapezium rule overestimates the area; for a concave-down curve it underestimates.

Examples in context

Example 1. Estimating an awkward integral. To estimate 021+x3dx\displaystyle\int_0^2 \sqrt{1 + x^3}\,dx with 44 strips, h=0.5h = 0.5 and you evaluate 1+x3\sqrt{1 + x^3} at x=0,0.5,1,1.5,2x = 0, 0.5, 1, 1.5, 2. The trapezium rule combines these as 0.52[y0+y4+2(y1+y2+y3)]\tfrac{0.5}{2}[y_0 + y_4 + 2(y_1 + y_2 + y_3)], giving an approximation where no elementary antiderivative exists. The method makes the intractable integral computable.

Example 2. Iteration convergence. Rearranging x3+x1=0x^3 + x - 1 = 0 as x=1x2+1x = \dfrac{1}{x^2 + 1} and iterating from x0=0.5x_0 = 0.5 gives x1=0.8x_1 = 0.8, x20.61x_2 \approx 0.61, x30.728x_3 \approx 0.728, converging towards the root near 0.6820.682. The fixed-point iteration homes in on the solution step by step.

Try this

Q1. Show f(x)=x22f(x) = x^2 - 2 has a root between 11 and 22. [2 marks]

  • Cue. f(1)=1f(1) = -1, f(2)=2f(2) = 2; sign change and ff continuous, so a root lies between.

Q2. Apply one Newton-Raphson step to f(x)=x25f(x) = x^2 - 5 from x0=2x_0 = 2. [3 marks]

  • Cue. f=2xf' = 2x: x1=2454=2+0.25=2.25x_1 = 2 - \dfrac{4 - 5}{4} = 2 + 0.25 = 2.25.

Q3. State how many ordinates are used in the trapezium rule with 55 strips. [1 mark]

  • Cue. 5+1=65 + 1 = 6 ordinates.

Exam-style practice questions

Practice questions written in the style of WJEC exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

WJEC A2 style4 marksShow that the equation x35x+1=0x^3 - 5x + 1 = 0 has a root between x=2x = 2 and x=3x = 3.
Show worked answer →

Use the change-of-sign method: evaluate the function at each end and show the signs differ.

Let f(x)=x35x+1f(x) = x^3 - 5x + 1.

f(2)=810+1=1f(2) = 8 - 10 + 1 = -1 (negative).

f(3)=2715+1=13f(3) = 27 - 15 + 1 = 13 (positive).

Since f(x)f(x) is continuous and changes sign from negative to positive between x=2x = 2 and x=3x = 3, there is a root in this interval.

Markers reward evaluating ff at both ends, noting the sign change, and stating that continuity guarantees a root between them. Forgetting to mention continuity, or not stating the signs explicitly, loses a mark.

WJEC A2 style5 marksUse the Newton-Raphson method with x0=2x_0 = 2 to find one iteration towards a root of f(x)=x32x5=0f(x) = x^3 - 2x - 5 = 0.
Show worked answer →

Apply the Newton-Raphson formula, which needs the function and its derivative at the current estimate.

f(x)=x32x5f(x) = x^3 - 2x - 5, so f(x)=3x22f'(x) = 3x^2 - 2.

At x0=2x_0 = 2: f(2)=845=1f(2) = 8 - 4 - 5 = -1 and f(2)=122=10f'(2) = 12 - 2 = 10.

x1=x0f(x0)f(x0)=2110=2+0.1=2.1x_1 = x_0 - \dfrac{f(x_0)}{f'(x_0)} = 2 - \dfrac{-1}{10} = 2 + 0.1 = 2.1.

So the next estimate is x1=2.1x_1 = 2.1.

Markers reward the correct derivative, evaluating ff and ff' at x0x_0, and applying the formula to get 2.12.1. A sign error in the formula (adding instead of subtracting the ratio) is the common mistake.

Related dot points

Sources & how we know this