Unit II - NSM-1
Unit II - NSM-1
Introduction
The finding of exact roots of the algebraic or transcendental equation is frequently enough difficult
problem, which is not solved analytically by means of final formulas. Besides sometimes in practice the
equation contains factors, which values are given approximately so to speak about the exact solution of
the equations in such cases at all has no sense. Therefore, problems of the approached definitions of
roots of the equation and a corresponding estimation of their accuracy have great value and today. The
approached methods of the solution of the equations can be divided conditionally on graphic and
numerical ones.
Examples:
Solution: Given x2 + 2x -1 = 0
Let f(x) = x2 + 2x -1
First Iteration
0+1
X0 = 2
= 0.5
∴ f(0)*f(0.5)<0
Second Iteration
0+0.5
X1 = 2
= 0.25
Third iteration
0.25+0.5
X2= 2
= 0.375
∴ f(0.375)*f(0.5) < 0
Fourth Iteration
0.375+0.5
X3= 2
= 0.4375
(ii)Using bisection method, find the approximate value of √10 by performing three iterations.
∴ x = √10
x2 = 10
∴ x2 -10 =0
∴ f(3).f(3.5)<0
Second Approximation
3+3.5
X1 = 2
= 3.25
∴ f(3).f(3.25)<0
Third Approximation
3+3.25
X2 = 2
= 3.125
Steps:
𝒂 ∗ 𝒇(𝒃) − 𝒃∗ 𝒇(𝒂)
3 ) False – position Method: c =
𝒇(𝒃) − 𝒇(𝒂)
4) Calculate f(c).
5) If f(a) and f(c) have opposite signs, then f(x) =0 has a root between a and c and if f(b) and f(c) have
opposite sign, then f(x) =0 has a root between c and b i.e. interval is (c,b).
10 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
Example 2:
By using Newton Raphson method find approximate root of the equation x3-3x-5=0 upto two
approximations.
Solution:
Now, first find the range, where the real roots lie in i.e. f(2) = –3 and f(3) = 13
Since f(2) is a negative value and f(3) is a positive value. Therefore, our one real root of the equation lies
between x = 2 and 3.
Choose the initial approximate value of the root x0 = 2 and putting n = 0, we have the first approximate
value
11 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
Secant Method
12 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
13 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
14 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
15 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
Example 2:
Find a real root of the equation x3 -5x +1 = 0 lies in the interval (0,1). Perform four iterations of the
secant method.
Solution: we have
∴ By Secant method
First iteration is
𝒙 −𝒙
x2 = x1 – [𝒇(𝒙 𝟏)−𝒇(𝒙
𝟎
)
] * f(x1) = 0.25
𝟏 𝟎
∴ f(x2) = -0.234375
Second Iteration is
𝑥 −𝑥
X3= x2 – [𝑓(𝑥 2)−𝑓(𝑥
1
)
] * f(x2) = 0.186441
2 1
∴ f(x3) = 0.074276
16 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
Third Iteration is
𝑥 −𝑥
x4= x3 – [𝑓(𝑥 3)−𝑓(𝑥
2
)
] * f(x3) = 0.201736
3 2
f(x4) =- 0.000470
Fourth Iteration is
𝑥 −𝑥
X5= x4 – [𝑓(𝑥 4)−𝑓(𝑥
3
)
] * f(x4) = 0.201640
4 3
17 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
Interpolation
What is an Interpolation?
18 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
19 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
20 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
Langrangian Interpolation
21 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
22 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
23 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
Finite Differences
Example (I):
24 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
(II)
(III)
25 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
(IV)
(V)
26 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
(VI)
27 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
Forward Difference
28 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
Examples
(I)
(II)
29 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
(III)
30 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
Examples
(I)
31 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
(II)
32 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
33 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
34 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
(V)
35 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
36 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
Examples
(I)
(II)
37 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
(II)
38 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
39 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
(III)
40 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
41 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
Lagrange’s interpolation
42 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
Examples
(I)
(II)
Y= 6.0388 ≅ 6.04
43 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
(III)
44 | P a g e Tanvi Nerurkar
Numerical and Statistical Methods
(IV)
References:
• https://www.slideshare.net/raiuniversity/engineering-mathematics-iv-unitiii
• https://mat.iitm.ac.in/home/sryedida/public_html/caimna/transcendental/iteration%20method
s/secant/secant.html
• https://slideplayer.com/slide/7917659/
• https://www.geeksforgeeks.org/newton-forward-backward-interpolation/
• http://www.brainkart.com/article/Exercise-5-2--Interpolation_38964/
• https://www.lkouniv.ac.in/site/writereaddata/siteContent/202004032250571912siddharth_bha
tt_engg_Interpolation.pdf
45 | P a g e Tanvi Nerurkar