Professional Documents
Culture Documents
√
Example: Find the
solution(s)
of f (x) = 0 with the linear function f (x) = 2 · x − 3.
Set of solutions: √32 Newton-Raphson method.
Let r be the root of a non-linear equation f (x) = 0. Starting from an initial guess r0 , the
sequence defined as:
f (rn )
Non-linear equation such as quadratic equations that can be solved rn+1 = rn −
f ′ (rn )
is converging toward r. Using a computer, you use a for loop until the iteration n such
Example: Find the solution(s) with f (x) = a x2 + b x + c.
of f (x) = 0
√ √ as rn is close enough to r (i.e. depending of the accuracy required).
−b+ b2 −4ac −b− b2 −4ac
Set of solutions: 2a
, 2a
Lets consider the non-linear equation f (x) = 0. How do we compute the root r of
this equation ?
The Newton-Raphson method normally requires a close initial estimate to the actual
root otherwise it may fail.
√
2rn2 −rn2 −a− a2rn
= 2rn
4 We compute:
√
rn2 −2 arn −a rn2 −a
= rn+1 − rn = rn − 2rn
− rn
2rn
√ 2
= (rn − a)2
>0 = − rn2r−a
n
2rn
√ √ √
Then rn+1 > a. Hence by induction, we have ∀n rn > a (the sequence is From the previous question, we know that ∀n, rn > a. Then rn2 − a > 0, and
1 Apply the Newton-Raphson procedure with the first approximation r0 = −2, to find
a root of the following equations to two decimal places:
1 x3 − 2x + 7 = 0
2 x4 − 3x2 − 2
3 ex − 2x − 5 = 0
u2 π
x= sin(θ) · cos(θ), 0 < θ <
25 2
where u is the initial velocity and θ is the angle that the projectile makes with the
horizontal. Determine the value of θ which maximizes x.