Numerical - Method-PPT Final 1
Numerical - Method-PPT Final 1
Numerical - Method-PPT Final 1
Chapter 1
The Calculus of Finite Difference
The Operators E, ∆ and ∇
Shift Operator, E: Independent
The Shift Operator is denoted by E and defined by 𝐸𝑓 𝑥 = 𝑓(𝑥 + ℎ) . variable x is
known as
The Operator 𝐸 − 1 is the inverse operator of the operator E and defined as, Argument.
𝐸 − 1𝑓 𝑥 = 𝑓 𝑥 + −1 ℎ = 𝑓 𝑥 − ℎ .
Dependent
Forward or Descending Difference Operator, ∆: Va r i a b l e y i s
The forward difference is defined as ∆𝑓 𝑥 = 𝑓 𝑥 + ℎ − 𝑓(𝑥). known as Entry.
(b) 𝛻 ≡ 1 − 𝐸 − 1 or 𝐸 − 1 ≡ 1 − 𝛻
We have 𝛻𝑓 𝑥 = 𝑓 𝑥 − 𝑓 𝑥 − ℎ = 𝑓 𝑥 − 𝐸 − 1𝑓 𝑥 = 1 − 𝐸 − 1 𝑓 𝑥
Thus 𝛻𝑓 𝑥 = 1 − 𝐸 − 1 𝑓(𝑥), for any function 𝑓(𝑥).
∴ 𝛻 ≡ 1 − 𝐸 −1
or 𝐸 − 1 ≡ 1 − 𝛻
(c) 𝐸𝛻 ≡ 𝛻𝐸 ≡ ∆
We have, 𝐸𝛻 𝑓 𝑥 = 𝐸 𝛻𝑓 𝑥 =𝐸 𝑓 𝑥 −𝑓 𝑥−ℎ = 𝐸𝑓 𝑥 − 𝐸𝑓 𝑥 − ℎ = 𝑓 𝑥 + ℎ − 𝑓 𝑥 = ∆𝑓 𝑥 … (1)
Also, 𝛻𝐸 𝑓 𝑥 = 𝛻 𝐸𝑓 𝑥 = 𝛻𝑓 𝑥 + ℎ = 𝑓 𝑥 + ℎ − 𝑓 𝑥 = ∆𝑓 𝑥 … (2)
From (1) and (2), we have
𝐸𝛻 ≡ ∆ and 𝛻𝐸 ≡ ∆.
Thus 𝐸𝛻 ≡ 𝛻𝐸 ≡ ∆.
Forward Difference Table
First differences
Argument x Entry 𝒚 = 𝒇(𝒙) Second differences ∆𝟐𝒇(𝒙)
∆𝒇(𝒙)
𝒂 𝑓(𝑎)
𝑓 𝑎 + ℎ − 𝑓 𝑎 = ∆𝑓(𝑎)
∆𝑓 𝑎 + ℎ − ∆𝑓 𝑎
𝒂+𝒉 𝑓(𝑎 + ℎ)
𝑓 𝑎 + 2ℎ − 𝑓 𝑎 + ℎ = ∆2𝑓(𝑎)
= ∆𝑓(𝑎 + ℎ)
∆𝑓 𝑎 + 2ℎ − ∆𝑓 𝑎 + ℎ
𝒂 + 𝟐𝒉 𝑓(𝑎 + 2ℎ)
= ∆2𝑓(𝑎 + ℎ)
𝑓 𝑎 + 3ℎ − 𝑓 𝑎 + 2ℎ
= ∆𝑓(𝑎 + 2ℎ) ∆𝑓 𝑎 + 3ℎ
𝒂 + 𝟑𝒉 𝑓(𝑎 + 3ℎ) − ∆𝑓 𝑎 + 2ℎ
𝑓 𝑎 + 4ℎ − 𝑓 𝑎 + 3ℎ = ∆2𝑓(𝑎 + 2ℎ)
= ∆𝑓(𝑎 + 3ℎ)
𝒂 + 𝟒𝒉 𝑓(𝑎 + 4ℎ)
Backward Difference Table
First differences
Argument x Entry 𝒚 = 𝒇(𝒙) Second differences ∆𝟐𝒇(𝒙)
∆𝒇(𝒙)
𝒂 𝑓(𝑎)
𝑓 𝑎+ℎ −𝑓 𝑎
= 𝛻𝑓(𝑎 + h)
𝛻𝑓 𝑎 + 2ℎ − 𝛻𝑓 𝑎 + h
𝒂+𝒉 𝑓(𝑎 + ℎ)
𝑓 𝑎 + 2ℎ − 𝑓 𝑎 + ℎ = 𝛻2𝑓(𝑎 + 2h)
= 𝛻𝑓(𝑎 + 2ℎ)
𝛻𝑓 𝑎 + 3ℎ − 𝛻𝑓 𝑎 + 2ℎ
𝒂 + 𝟐𝒉 𝑓(𝑎 + 2ℎ)
= 𝛻2𝑓(𝑎 + 3ℎ)
𝑓 𝑎 + 3ℎ − 𝑓 𝑎 + 2ℎ
= 𝛻𝑓(𝑎 + 3ℎ)
𝛻𝑓 𝑎 + 4ℎ − 𝛻𝑓 𝑎 + 3ℎ
𝒂 + 𝟑𝒉 𝑓(𝑎 + 3ℎ)
= 𝛻2𝑓(𝑎 + 4ℎ)
𝑓 𝑎 + 4ℎ − 𝑓 𝑎 + 3ℎ
= 𝛻𝑓(𝑎 + 4ℎ)
𝒂 + 𝟒𝒉 𝑓(𝑎 + 4ℎ)
Example
Prove that,
(a) 𝑓 4 = 𝑓 3 + ∆𝑓 2 + ∆2𝑓 1 + ∆3𝑓(1)
(b) 𝑓 4 = 𝑓 0 + 4∆𝑓 0 + 6∆2𝑓 −1 + 10∆3𝑓(−1)
[∵ 𝑓 −1 + ∆𝑓 −1 = 𝑓 −1 + ∆𝑓 0 − 𝑓 −1 = 𝑓 0 ]
Chapter 2
Interpolation with Equal Intervals
What is Interpolation?
The technique or method of estimating unknown values from given set of
observation is known as interpolation.
𝑥 𝑓(𝑥) 𝑥 𝑓(𝑥)
1971 1000 1975 670
1981 1025 1980 685
1991 1080 1987 750
2001 1120 1990 800
2011 1200 1994 915
Equal Interval Unequal Interval
Methods
Newton formula for Forward Interpolation,
Here,
𝑢 𝑢 𝑢−1 2 𝑢 𝑢−1 𝑢−2 3 𝑎 = 𝐵𝑎𝑠𝑒
𝑓 𝑎 + ℎ𝑢 = 𝑓 𝑎 + ∆𝑓 𝑎 + ∆𝑓 𝑎 + ∆ 𝑓 𝑎 +⋯ ℎ = 𝐷𝑖𝑓𝑓𝑒𝑟𝑒𝑛𝑐𝑒 𝑜𝑓
1! 2! 3!
𝐼𝑛𝑡𝑒𝑟𝑣𝑎𝑙
Newton formula for Backward Interpolation, 𝑥−𝑎
𝑢=
𝑢 𝑢 𝑢+1 2 𝑢 𝑢+1 𝑢+2 3 ℎ
𝑓 𝑎 + ℎ𝑢 = 𝑓 𝑎 + 𝛻𝑓 𝑎 + 𝛻𝑓 𝑎 + 𝛻 𝑓 𝑎 +⋯
1! 2! 3!
𝑥 𝑓(𝑥)
Steps to do Math
1971 = 𝑎 1000
Step 1: Do the Difference Table 𝑥 = 1975
1987 1025
Step 2: Apply the required formula and Calculate
1991 1080
2001 1120
𝑥 = 2006
2011 = 𝑎 1200
Example
From the following table, estimate the number of students who obtained marks between 40 and 45. (Using
Newton’s Formula for forward interpolation)
Marks 30-40 40-50 50-60 60-70 70-80
No. of Students 31 42 51 35 31
Sol: First we prepare the cumulative frequency table, as given below:
Marks above 30 but less than No. of Students
𝒙 𝒇(𝒙)
40 31
50 73
60 124
70 159
80 190
Now we prepare the difference table for this data
𝒙 𝒇(𝒙) ∆𝒇(𝒙) ∆𝟐𝒇(𝒙) ∆𝟑𝒇(𝒙) ∆𝟒𝒇(𝒙)
40 31
42
50 73 9
51 -25
60 124 -16 37
35 12
70 159 -4
31
80 190
We shall find: 𝑓 45 = number of students with marks less than 45. Taking 𝑎 + 𝑢ℎ = 45, we get
1
40 + 𝑢 × 10 = 45 ⇒ 𝑢 =
2
Using Newton’s formula for forward interpolation, we get
1 1 1 1 1 1 3 1 1 1 3 5 1
= 31 + × 42 + − ×9+ − − −25 + − − − × 37
2 2 2 2! 2 2 2 3! 2 2 2 2 4!
= 47.868 𝑜𝑛 𝑠𝑖𝑚𝑝𝑙𝑖𝑓𝑖𝑐𝑎𝑡𝑖𝑜𝑛 .
Hence the number of students with marks less than 45 is 47.868 i.e., 48.
But the number of students with marks less than 40 is 31.
Hence the required number of students getting marks between 40 and 45 is = 48 − 31 = 17.
Given,
𝒙 1 2 3 4 5 6 7 8
𝒇(𝒙) 1 8 27 64 125 216 343 512
Find 𝑓 7.5 .
Sol: The value to be interpolated lies at the end of the given observation i.e. near 𝑥 = 8. So in this case
Newton’s backward formula will be more suitable.
𝑥−𝑎 7.5−8
Here 𝑢= = = −0.5.
ℎ 1
(−0.5)(0.5) (−0.5)(0.5)(1.5)
= 512 + −0.5 × 169 + × 42 + ×6
2 6
= 512 − 84.5 − 5.25 − 0.375
= 421.875.
Chapter 3
Interpolation with Unequal Intervals
Methods
We will learn 2 methods for Interpolation with unequal interval of the argument.
1. Lagrange’s Method
2. Newton Divided Difference
Methods
The Lagrange’s Interpolation formula:
If, 𝑦 = 𝑓(𝑥) takes the values 𝑦0, 𝑦1, … , 𝑦𝑛 corresponding to 𝑥 = 𝑥0, 𝑥1, … , 𝑥𝑛 then,
𝑥 − 𝑥2 𝑥 − 𝑥3 … (𝑥 − 𝑥𝑛) 𝑥 − 𝑥1 𝑥 − 𝑥3 … (𝑥 − 𝑥𝑛) 𝑥 − 𝑥1 𝑥 − 𝑥2 … (𝑥 − 𝑥𝑛 − 1)
𝑓 𝑥 = 𝑦1 + 𝑦2 + ⋯ + 𝑦
𝑥1 − 𝑥2 𝑥1 − 𝑥3 … (𝑥1 − 𝑥𝑛) 𝑥2 − 𝑥1 𝑥2 − 𝑥3 … (𝑥2 − 𝑥𝑛) 𝑥𝑛 − 𝑥1 𝑥𝑛 − 𝑥2 … (𝑥𝑛 − 𝑥𝑛 − 1) 𝑛
Example
For the following table find the form of the function 𝑓(𝑥). (Using Lagrange’s Formula)
𝒙 0 1 2 5
𝒇(𝒙) 2 3 12 147
Sol: Here, 𝑥0 = 0, 𝑥1 = 1, 𝑥2 = 2, 𝑥3 = 5
By Lagrange’s formula, we have
𝑓 𝑥
𝑥 − 𝑥1 𝑥 − 𝑥2 𝑥 − 𝑥3 𝑥 − 𝑥0 𝑥 − 𝑥2 𝑥 − 𝑥3 𝑥 − 𝑥0 𝑥 − 𝑥1 𝑥 − 𝑥3 𝑥 − 𝑥0 𝑥 − 𝑥1 𝑥 − 𝑥2
= 𝑓 𝑥0 + 𝑓 𝑥1 + 𝑓 𝑥2 + 𝑓(𝑥3)
𝑥0 − 𝑥1 𝑥0 − 𝑥2 𝑥0 − 𝑥3 𝑥1 − 𝑥0 𝑥1 − 𝑥2 𝑥1 − 𝑥3 𝑥2 − 𝑥0 𝑥2 − 𝑥1 𝑥2 − 𝑥3 𝑥3 − 𝑥0 𝑥3 − 𝑥1 𝑥3 − 𝑥2
Substituting the values of 𝑥0, 𝑥1, 𝑥2, 𝑥3 in this, we get
𝑓(𝑥) 1 3 2 49
𝑜𝑟, =− + − +
𝑥(𝑥 − 1)(𝑥 − 2)(𝑥 − 5) 5𝑥 4 𝑥 − 1 𝑥 − 2 20 𝑥 − 5
𝒂 𝑓(𝑎)
𝑓 𝑎 + ℎ − 𝑓(𝑎) ∆𝑓 𝑎 + ℎ − ∆𝑓(𝑎)
= ∆𝑓(𝑎)
𝒂+𝒉 𝑓(𝑎 + ℎ) 𝑎+ℎ −𝑎 𝑎 + 2ℎ − 𝑎
𝑓 𝑎 + 2ℎ − 𝑓(𝑎 + ℎ) = ∆2𝑓(𝑎)
𝑎 + 2ℎ − (𝑎 + ℎ)
𝒂 + 𝟐𝒉 𝑓(𝑎 + 2ℎ) = ∆𝑓(𝑎 + ℎ)
Steps to do Math
Step 1: Do the Difference Table
Step 2: Apply the required formula and Calculate
Example
By means of Newton’s divided difference formula, find the values of 𝑓(8) and 𝑓(15) from the following table:
𝒙 4 5 7 10 11 13
𝒇(𝒙) 48 100 294 900 1210 2028
𝒖(𝒖𝒖(𝒖
− 𝟏)
− 𝟏) 𝟐
𝟐
𝒖𝒖
++𝟏 𝟏
𝒖(𝒖𝒖(𝒖
− 𝟏) −𝟑𝟏)
𝟑𝒚
𝒚 𝒙 = 𝒚𝒚𝟎 +
𝒙 𝒖
= ∆𝒚
𝟎+ 𝟎
𝒚𝟎 + 𝒖 ∆𝒚 +
𝟐! ∆ ∆ 𝒚𝒚 −𝟏 +
−𝟏
+
𝟑! ∆
∆ 𝒚−𝟏 +
−𝟏 +
𝟐! 𝟑!
𝒖 + 𝟏 𝒖(𝒖 − 𝟏)(𝒖 − 𝟐) 𝟒 (𝒖 + 𝟐) 𝒖 + 𝟏 𝒖(𝒖 − 𝟏)(𝒖 − 𝟐) 𝟓
𝒖+𝟏 𝒖(𝒖 − 𝟏)(𝒖 ∆ 𝒚 + ∆ −
𝒚−𝟐𝟐)
𝟒! − 𝟐) −𝟐 (𝒖 + 𝟐) 𝒖 + 𝟏 𝒖(𝒖 − 𝟏)(𝒖
𝟓!
∆𝟒 𝒚−𝟐 + ∆𝟓 𝒚−𝟐
𝟒!
+ …………………………………………………………………………………
𝟓!
𝒙 −𝒙𝟎
Where 𝒖=
+ … … …𝒐𝒓,
𝒉
… 𝒙…=…𝒙 …+…𝒖𝒉… … … … … … … … … … … … … … … … … … … … … … …
𝟎
Here, 0< 𝒖 < 𝟏𝒖 = 𝒙 −𝒙𝟎
Where
𝒉
𝒐𝒓, 𝒙 = 𝒙𝟎 + 𝒖𝒉
Here, 0< 𝒖 < 𝟏
Example on Gauss Forward Formula
𝒖(𝒖 − 𝟏) 𝟐 𝒖 + 𝟏 𝒖(𝒖 − 𝟏) 𝟑
𝒚 𝒙 = 𝒚𝟎 + 𝒖 ∆𝒚𝟎 + ∆ 𝒚−𝟏 + ∆ 𝒚−𝟏 +
𝟐! 𝟑!
Use Gauss forward formula to find the value of y when x = 3.75, given the following table :
𝒖 + 𝟏 𝒖(𝒖 − 𝟏)(𝒖 − 𝟐) 𝟒 (𝒖 + 𝟐) 𝒖 + 𝟏 𝒖(𝒖 − 𝟏)(𝒖 − 𝟐) 𝟓
x: 2.5 3.0 3.5 4.0∆ 𝒚−𝟐 +4.5 5.0 ∆ 𝒚−𝟐
𝟒! 𝟓!
y : 24.145 22.043 20.225 18.644 17.262 16.047
+ …………………………………………………………………………………
𝒙 −𝒙𝟎
Where 𝒖= 𝒉
𝒐𝒓, 𝒙 = 𝒙𝟎 + 𝒖𝒉
Here, 0< 𝒖 < 𝟏
Solution
𝒖(𝒖 − 𝟏) 𝟐 𝒖 + 𝟏 𝒖(𝒖 − 𝟏) 𝟑
𝒚 𝒙 = 𝒚𝟎 + 𝒖 ∆𝒚𝟎 + ∆ 𝒚−𝟏 + ∆ 𝒚−𝟏 +
𝟐! 𝟑!
Let us take 3.5 as the origin and .5 as
𝒖 + 𝟏 𝒖(𝒖 − 𝟏)(𝒖 − 𝟐)
the unit.
(𝒖 + 𝟐) 𝒖 + 𝟏 𝒖(𝒖 − 𝟏)(𝒖 − 𝟐)
∆ 𝟒𝒚 + ∆ 𝟓𝒚
𝑥 −𝑥 0 −𝟐 −𝟐
We know 𝑢 = 𝟒! , Here x = 3.75 , 𝑥0 = 3.5, h = .5
𝟓!
ℎ
+ …… ……………………………………………………………………………
3.75−3.5
Where 𝒖 =∴ 𝒉 𝑢 = = .5
𝒙 −𝒙𝟎
.5
𝒐𝒓, 𝒙 = 𝒙𝟎 + 𝒖𝒉
We0<require
Here, 𝒖 <𝟏 the value of y fot u=.5
The difference table is given below :
x u yu ∆ yu ∆𝟐 yu ∆𝟑 yu ∆𝟒 yu ∆𝟓 yu
2.5 -2 24.145
-2.102
𝒖(𝒖 − 𝟏) 𝟐 𝒖 + 𝟏 𝒖(𝒖 − 𝟏) 𝟑
3.o 𝒚
-1 𝒙 = 𝒚 + 𝒖 ∆𝒚
𝟎 22.043𝟎 + ∆ 𝒚.284
−𝟏 + ∆ 𝒚−𝟏 +
𝟐! 𝟑!
-1.818 -.047
𝒖 + 𝟏 𝒖(𝒖 − 𝟏)(𝒖 − 𝟐) 𝟒 (𝒖 + 𝟐) 𝒖 + 𝟏 𝒖(𝒖 − 𝟏)(𝒖 − 𝟐) 𝟓
3.5 0 20.225 ∆ 𝒚 +
−𝟐 .237 .009 ∆ 𝒚−𝟐
𝟒! 𝟓!
-1.581 -.038 -.003
+ …………………………………………………………………………………
Where4.0 𝒖 = 𝒉 1𝟎 18.644 .199 .006
𝒙 −𝒙
+ … … … … … … … … … … ….5
…….5…−…1… … … … … … ….5…+
…1… ….5….5
……−…
1…
𝒙 −𝒙𝟎
Where 𝒖∴ =
𝑦 𝑥 = 20.225 + .5 −1.581 + × .237 + −.038
𝒉 2 6
.5 +𝒐𝒓,
1 𝒙.5= .5
𝒙𝟎 −
+1𝒖𝒉 .5 − 2 (.5 + 2) .5 + 1 .5 .5 − 1 .5 − 2
+
Here, 0< 𝒖 < 𝟏 .009 +
24 120
(−.003)
𝒖(𝒖 − 𝟏) 𝒖 + 𝟏 𝒖(𝒖 − 𝟏) 𝟑
𝒚 𝒙 = 𝒚𝟎 + 𝒖 ∆𝒚𝟎𝑢(𝑢
+ + 1) ∆𝟐2𝒚−𝟏 + 𝑢 + 1 𝑢(𝑢 ∆−𝒚1)
−𝟏 + 3
𝑦 𝑥 = 𝑦0 + 𝑢 ∆𝑦−1 + 𝟐! ∆ 𝑦−1 + 𝟑! ∆ 𝑦−2 +
2! 3!
𝒖 + 𝟏 𝒖(𝒖 − 𝟏)(𝒖 − 𝟐) 𝟒 (𝒖 + 𝟐) 𝒖 + 𝟏 𝒖(𝒖 − 𝟏)(𝒖 − 𝟐) 𝟓
∆ 𝒚−𝟐 + ∆ 𝒚−𝟐
(𝑢 + 2) 𝟒!
𝑢 + 1 𝑢(𝑢 − 1) 4 𝟓!
(𝑢 + 2) 𝑢 + 1 𝑢(𝑢 − 1)(𝑢 − 2)
∆ 𝑦−2 + ∆5 𝑦−3
+4!
……………………………………………………………… 5!… … … … … … …
𝒙 −𝒙𝟎
Where 𝒖= 𝒉
+ … … …𝒐𝒓,…𝒙…= …
𝒙𝟎 … ………………………………………………………………
+ 𝒖𝒉
Here, 0< 𝒖 < 𝟏 0 𝑥 −𝑥
Where 𝑢 =
ℎ
𝑜𝑟, 𝑥 = 𝑥0 + 𝑢ℎ
Here, -1< 𝑢 < 0
Example on Gauss Backward Formula
+ …………………………………………………………………………………
𝒙 −𝒙𝟎
Where 𝒖= 𝒉
𝒐𝒓, 𝒙 = 𝒙𝟎 + 𝒖𝒉
Here, 0< 𝒖 < 𝟏
Now Gauss’s Backward Formula is
𝑢(𝑢 + 1) 2 𝑢 + 1 𝑢(𝑢 − 1) 3
𝑦𝑢 = 𝑦0 + 𝑢 ∆𝑦−1 + ∆ 𝑦−1 + ∆ 𝑦−2 +
2! 3!
(𝑢 + 2)
𝒚 𝒙𝑢 +
= 1𝒚𝟎 𝑢(𝑢 − 1)+ 𝒖(𝒖
+ 𝒖 ∆𝒚 4
− 𝟏) (𝑢𝟐+ 2) 𝑢𝒖++1𝟏 𝑢(𝑢
∆ 𝒚 +
𝒖(𝒖−
− 1)(𝑢
𝟏) 𝟑− 2)
∆ 𝒚−𝟏 +∆5 𝑦
𝟎 ∆ 𝑦𝟐!
−2 +
−𝟏
𝟑! −3
4! 5!
𝒖 + 𝟏 𝒖(𝒖 − 𝟏)(𝒖 − 𝟐) (𝒖 + 𝟐) 𝒖 + 𝟏 𝒖(𝒖 − 𝟏)(𝒖 − 𝟐)
+ … … … … … … … … … … … …∆…𝟒 𝒚…−𝟐…+… … … … … … … … … … … … … … … ∆…𝟓 𝒚−𝟐
𝟒! 𝟓!
+ … … ….5…+…1… (.5)
… … … … … … .5
…… +…1… .5
… …(.5
…… −…1)… … … … … … … … … …
∴ 𝑦 = 27 + .5 × 7 +
𝒙 −𝒙 ×5+ ×3
Where .5𝒖 = 𝒉 𝟎 2 6
(.5 + 2) .5 + 𝒐𝒓,
1 𝒙.5=(.5
𝒙𝟎 −
+ 1)
𝒖𝒉× (−7) + .5 + 2 .5 + 1 .5 .5 − 1 .5 − 2 × (−10)
+
Here, 0< 𝒖 < 𝟏 24 120
= 27+3.5+1.875-0.1875+0.2734-0.1172
= 32.3437 thousand
Thus the estimated population for 1936 is 32.3437 thousand
Bessel’s Central difference Interpolation Formula
𝒙𝒖
−𝒙=
𝒙+−𝒙…𝟎
………………………………………………………………………………
Where
Where 𝒖= 𝟎
𝒉 𝒉
𝒐𝒓,𝒐𝒓,
𝒙 𝒙= = 𝒙𝒙𝟎𝟎++𝒖𝒉
𝒖𝒉
Here, 0< 𝒖 𝟏< 𝟏 𝟑
Here, < 𝒖 <
𝟒 𝟒
Example on Bessel’s Formula
𝒖(𝒖 − 𝟏) 𝒖 + 𝟏 𝒖(𝒖 − 𝟏) 𝟑
Apply Bessel’s
𝒚 𝒙Formula ∆𝒚𝟎 𝑦+25 , given ∆𝟐 𝒚−𝟏 +
= 𝒚𝟎 +to𝒖find ∆ 𝒚−𝟏 +
𝟐! 𝟑!
𝑦20 = 24 , 𝑦24 = 32 , 𝑦28 = 35 , 𝑦32 = 40 .
𝒖 + 𝟏 𝒖(𝒖 − 𝟏)(𝒖 − 𝟐) 𝟒 (𝒖 + 𝟐) 𝒖 + 𝟏 𝒖(𝒖 − 𝟏)(𝒖 − 𝟐) 𝟓
∆ 𝒚−𝟐 + ∆ 𝒚−𝟐
𝟒! 𝟓!
Solution:
+ …………………………………………………………………………………
𝒙 −𝒙𝟎 Take x=24 as the origin and 4 as the unit.
Where 𝒖= 𝒉 25−24
The value of y required
𝒐𝒓, 𝒙 = 𝒙will be for u=
𝟎 + 𝒖𝒉
= 0.25
4
Here, 0< 𝒖 < 𝟏
The difference table is given below :
x u Yu ∆Yu ∆𝟐 Yu ∆𝟑 Yu
𝒖(𝒖 − 𝟏) 𝟐 𝒖 + 𝟏 𝒖(𝒖 − 𝟏) 𝟑
20 𝒚 𝒙 = 𝒚 +
𝟎-1 𝒖 ∆𝒚 𝟎 + 24𝟐! ∆ 𝒚 −𝟏 + ∆ 𝒚−𝟏 +
𝟑!
32 2 40
The Bessel’s Formula is
1
𝑦0 +𝑦1 1 𝑢 𝑢−1 ∆2 𝑦−1 +∆3 𝑦0 (𝑢−2)𝑢 𝑢−1
𝑦𝑢 = + 𝑢 − ∆𝑦0 + + ∆3 𝑦−1
2 2 2! 2 3!
1
𝑢 𝑢2 −1 (𝑢−2) ∆4 𝑦−2 +∆4 𝑦−1 (𝑢−2)𝑢 𝑢2 −1 (𝑢−2)
+ + 𝒖(𝒖 − 𝟏) 𝟐 ∆5 𝑦𝒖−2++𝟏 … ……
𝒖(𝒖 …… 𝟑
− 𝟏)
4! 𝒚 𝒙 = 𝒚𝟎2 + 𝒖 ∆𝒚𝟎 + 5! ∆ 𝒚−𝟏 + ∆ 𝒚−𝟏 +
𝟐! 𝟑!
1 𝒖 + 𝟏 𝒖(𝒖 − 1𝟏)(𝒖1− 𝟐) 1 1 (𝒖 + 𝟐)−5
𝒖
+
+
2 𝒖(𝒖 1
𝟏 −
1 −
𝟏)(𝒖
1 𝟐)
∴ 𝑦0.25 = 35 + 32 + − × 3∆+
𝟒𝒚 +− 1 + − ∆𝟓 𝒚−𝟐
2 𝟒! 4 2 4−𝟐 4 4 𝟓! 4 2 4
1 7
−1
4 6𝒙 −𝒙𝟎 + … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … …
Where 𝒖 = 𝒉
= 33.5 − .75 + 0.140625 + 0.0546875 = 32.945313
𝒐𝒓, 𝒙value
Thus the estimated = 𝒙𝟎 of
+ 𝒖𝒉
𝑦25 is 32.945313
Here, 0< 𝒖 < 𝟏
Stirling Central difference Interpolation Formula
20 -1 512
𝒖(𝒖 − 𝟏) 𝟐 -73 𝒖 + 𝟏 𝒖(𝒖 − 𝟏) 𝟑
𝒚 𝒙 = 𝒚𝟎 + 𝒖 ∆𝒚𝟎 + ∆ 𝒚−𝟏 + ∆ 𝒚−𝟏 +
𝟐! 𝟑!
30 0 439 -20
𝒖 + 𝟏 𝒖(𝒖 − 𝟏)(𝒖 − 𝟐) 𝟒 (𝒖 + 𝟐) 𝒖 + 𝟏 𝒖(𝒖 − 𝟏)(𝒖 − 𝟐) 𝟓
∆ 𝒚−𝟐 + -93 10 ∆ 𝒚−𝟐
𝟒! 𝟓!
40 + …1… … … … … … …
346 -10
………………………………… …………………………
𝒙 −𝒙𝟎
Where 𝒖= 𝒉 -103
𝒐𝒓, 𝒙 = 𝒙𝟎 + 𝒖𝒉
Here, 0< 𝒖 50
<𝟏 2 243
Stirling’s formula is
(∆𝑦0 + ∆𝑦−1 ) 𝑢2 2 𝑢(𝑢2 − 1) (∆3 𝑦−1 + ∆3 𝑦−2 )
𝑦𝑢 = 𝑦0 + 𝑢 +𝒖(𝒖 ∆ 𝑦−1 +
− 𝟏) 𝒖 + 𝟏 𝒖(𝒖 − 𝟏) 𝟑
𝒚 𝒙 = 𝒚𝟎 +2𝒖 ∆𝒚𝟎 + 2 ∆𝟐 𝒚−𝟏 +3! 2 ∆ 𝒚−𝟏 +
𝟐! 𝟑!
𝑢2 (𝑢𝒖2 +−𝟏1)𝒖(𝒖 𝑢 2 (𝑢 2 − 12 )(𝑢 2 − 22 ) (∆5 𝑦 + ∆5𝑦 )
∆4 𝑦−−2𝟏)(𝒖
+ − 𝟐) ∆𝟒 𝒚−𝟐 + (𝒖 + 𝟐) 𝒖 + 𝟏 𝒖(𝒖 − 𝟏)(𝒖 − 𝟐) ∆𝟓 𝒚−𝟐
−2 −3
+
4! 𝟒! 5! 𝟓!2
d𝑦 2𝑃 − 1 2 3𝑃2 − 6𝑃 + 2 3
𝑦′ 𝑥 ℎ= ℎ = Δ𝑦0 + Δ 𝑦0 + Δ 𝑦0 + ⋯ ⋅
d𝑥 2! 3!
ⅆ𝑦 1 2𝑃−1 3𝑃2 −6𝑃+2
=> ⅆ𝑥
= 𝑦′ 𝑥 = ℎ
[Δ𝑦0 + 2!
Δ2 𝑦0 + 3!
Δ3 𝑦0 + ⋯ ⋅
Definitely,
𝑑2 𝑦 1
=> = 𝑦 ′′ 𝑥 = ℎ2 [Δ2 𝑦0 + (𝑝 − 1)Δ3 𝑦0 + ⋯]
ⅆ𝑥 2
Ex-1
Find the first , second & find derivatives of the function table blew at the point x = 1.5
Since the derivatives are required at x = 1.5 , which is near the beginning of the table , therefore we shall
use . Newton’s forward formula. The difference table is given below .
X y 𝜟y 𝜟𝟐 y 𝜟𝟑 y 𝜟𝟒 y
1.5 3.375
3.625
2.0 7.00 3.00
6.625 .750
2.5 13.625 3.750 0
ΔΔ
10.375 .750
3.0 24.00 4.500 0
14.875 .750
3.5 38.875 5.250
20.125
4.0 59.00
Newton’s forward formula is
Differentiating w.r.to twice then putting x=0 in the equations obtained _ we get
1 1
h𝑓 ′ 𝑎 = Δ f(a) - 2 Δ2 f(a) + 3 Δ3 𝑓(a)
ℎ2 𝑓 ′′ 𝑎 = Δ2 f(a) - Δ3 𝑓(a)
ℎ3 𝑓 ′′′ 𝑎 = Δ3 𝑓(a)
Putting a=1.5,h=0.5 & the values of various differences in these equations , we get
1 1 1
𝑓 ′ 1.5 = 0.5[3.025- 2 (3.00) + 3 (0.75)] = 4.75
1
𝑓 ′′ 1.5 = 0.25 3.00 − 0.750 = 9.00
1
𝑓 ′′′ 1.5 = 0.75 = 6.00
0.125
Note:- the function tabulated in the given table of this problem is , y=x 3 −2x+3
Hence,
ⅆy 2 ⅆ2 y
=3x -2, =6
ⅆx ⅆx2
Putting x = 1.5 we get,
ⅆy 2 ⅆ2 y
(ⅆx)1.5 = 3 × (1.5) −2 = 4.750 = 6.00
ⅆx2 x=1.5
Chapter 6
Numerical Integration
The antiderivatives of many functions either cannot be expressed or cannot be expressed easily in closed form (that is,
in terms of known functions). Consequently, rather than evaluate definite integrals of these functions directly, we
resort to various techniques of numerical integration to approximate their values. In this section we explore several of
these techniques. In addition, we examine the process of estimating the error in using these techniques.
𝑋0 =0 → 𝑌0
𝑏 𝑏 𝑋1 =𝑋0 + h → 𝑌1
න 𝑓(𝑥) dx = න 𝑦 𝑑𝑥 𝑋2 =𝑋0 + 2h → 𝑌2
𝑎 𝑎 𝑋3 =𝑋0 + 3h → 𝑌3
𝑏−𝑎 -------------- ----
Where h= ℎ , usually we take h=6
- - - - - - - - -- - - - - ----
𝑋𝑛 =𝑋0 + nh → 𝑌𝑛
Using newton’s cates formula
3
1. Trapezoidal Rules (n=1) 3. Simpson’s rules (n=3)
8
1
2. Simpson’s rules (n=2) 4. waddle's rules (n=6)
3
Trapezoidal Rule is a rule that evaluates the area under the curves by dividing the total area into smaller trapezoids
rather than using rectangles. This integration works by approximating the region under the graph of a function as a
trapezoid, and it calculates the area. This rule takes the average of the left and the right sum.
𝑏=𝑥𝑛
ℎ
න 𝑦𝑑𝑥 = [ 𝑦0 + 𝑦𝑛 + 2( 𝑦1 + 𝑦2 + 𝑦3 + ⋯ + 𝑦𝑛−1 ]
𝑎=𝑥0 2
1
Simpson’s rules
3
Simpson’s 1/3rd rule is an extension of the trapezoidal rule in which the integrand is approximated by a second-
order polynomial. Simpson rule can be derived from the various way using Newton’s divided difference
polynomial, Lagrange polynomial and the method of coefficients. Simpson’s 1/3 rule is defined by:
𝑏=𝑥𝑛
ℎ
න 𝑦𝑑𝑥 = [ 𝑦 + 𝑦𝑛 + 2 𝑦1 + 𝑦3 + 𝑦5 + ⋯ + 𝑦𝑛−1 + 2 𝑦2 + 𝑦4 + 𝑦6 + ⋯ + 𝑦𝑛−2 ]
𝑎=𝑥0 3 0
3
Simpson’s rules
8
Another method of numerical integration is called “Simpson’s 3/8 rule”. It is completely based on the cubic
interpolation rather than the quadratic interpolation. Simpson’s 3/8 or three-eight rule is given by:
𝑏=𝑥𝑛
3ℎ
න 𝑦𝑑𝑥 = [ 𝑦0 + 𝑦𝑛 + 3 𝑦1 + 𝑦2 + 𝑦4 + 𝑦5 + 𝑦7 + ⋯ . . + 2 𝑦3 + 𝑦6 + 𝑦9 + ⋯ + 𝑦𝑛−3 ]
𝑎=𝑥0 8
waddle's rules
𝑏=𝑥𝑛
න 𝑦𝑑𝑥
𝑎=𝑥0
3ℎ
= [ 𝑦 + 𝑦𝑛 + 5 𝑦1 + 𝑦7 + 𝑦13 + ⋯ ) + (𝑦2 + 𝑦8 + 𝑦14 + ⋯ . .
10 0
+ 6 𝑦3 + 𝑦9 + 𝑦15 + ⋯ ) + (𝑦4 + 𝑦10 + 𝑦16 + ⋯ ) + 5(𝑦5 + 𝑦11 + 𝑦17 + ⋯ . . ]
Example
Calculate the values of integral by
3
5.2 1. Trapezoidal Rules (n=1) 3. Simpson’s
8
න 𝑙𝑜𝑔𝑎 𝑥 𝑑𝑥 rules
4 1
2. Simpson’s rules 4. waddle's rules
3
Solution
Taking h= .2 divide the whole range of integration into (4,5.2) six equals parts. The values of log a for each
point of sub division are given below.
Sub Division Table
x y = ln X
𝑥0 = 4.0 𝑦0 = 1.3862944
𝑥0 + ℎ = 4.2 𝑦0 = 1.3862944
𝑥0 + 2ℎ = 4.4 𝑦0 = 1.3862944
𝑥0 + 3ℎ = 4.6 𝑦0 = 1.3862944
𝑥0 + 4ℎ = 4.8 𝑦0 = 1.3862944
𝑥0 + 5ℎ = 5.0 𝑦0 = 1.3862944
𝑥0 + 6ℎ = 5.2 𝑦0 = 1.3862944
a) By Trapezoidal Rule , We have
5.2
ℎ
න log 𝑥 𝑑𝑥 = 𝑦 + 𝑦6 + 2 𝑦1 + 𝑦2 + 𝑦3 + 𝑦4 + 𝑦5
4 2 0
.2
= 3.04935 + 2 ∗ 7.6207991
2
= .1(18.276551)
= 1.8276551
1
b) By Simpson’s rules , We have
3
5.2
ℎ
න log 𝑥 𝑑𝑥 = 𝑦0 + 𝑦6 + 4 𝑦1 + 𝑦3 + 𝑦5 ) + 2(𝑦2 + 𝑦4
4 3
.2
= 3.034953 + 4 ∗ 4.50705787 + 2 ∗ 3.0502204
3
= .1(8.276551)
= 1.8278472
3
a) By Simpson’s 8 rules , We have
5.2
3ℎ
න log 𝑥 𝑑𝑥 = 𝑦0 + 𝑦6 + 3 𝑦1 + 𝑦2 + 𝑦4 + 𝑦5 ) + 2𝑦3
4 8
3∗(.2)
= 3.034953 + 3 6.0947428 + 2(1.5260563
8
.6
= (24.371294)
8
= 1.827847
a) By Weddle’s rules , We have
5.2
3ℎ
න log 𝑥 𝑑𝑥 = 𝑦0 + 𝑦6 + 5 𝑦1 + 𝑦5 ) + 𝑦2 + 𝑦4 + 6𝑦3
4 10
3∗(.2)
= 3.034953 + 5 3.044522 + 3.0502204 + 6(1.5260563)
10
.6
= 10 (30.464123)
= 1.827847
Actual Value of
5.2
න log 𝑥 𝑑𝑥 = [𝑥 log 𝑥 − 1 ]5.2
4
4
3∗(.2)
= 5.2(log 5.2 − 1) − 4(log 4 − 1)
10
= [ 3.3730249 – 1.5451774 ]
= 1.8278475
𝑑𝑦
Suppose first order differential equation is =
𝑑𝑥
𝑓 𝑥, 𝑦 ,given 𝑦(𝑥0) = 𝑦0.
we have to find the value of y from differential
equation for a given value of 𝑥,
when the values are given at 𝑥 = 𝑥0 , 𝑦 = 𝑦0
Picard’s Method
The Picard’s method is an iterative method and is primarily used for approximating
solutions to differential equations.
Working Rules:
𝑑𝑦
Suppose the first order differential equation is = 𝑓 𝑥, 𝑦 , Given y(x0)=y0…..(1)
𝑑𝑥
1.First approximation:
𝑥0
y1 = y0 + ( 𝑓 𝑥x0,y0)𝑑𝑥
2.Second approximation:
𝑥0
y 2=y0 + (𝑓 𝑥x ,y1)𝑑𝑥
3.nth approximation:
𝑥0
yn = y0 + ( 𝑓 𝑥x, yn-1 )𝑑𝑥
The picard ’s method is failed when f 𝑥, 𝑦 is not integral for the given
condition.
Example:
𝑑𝑦
Given that, = x + y , and that y = 1when x = 0, determine the value of y.
𝑑𝑥
Solution:
𝑑𝑦
Given that, = x + y.
𝑑𝑥
𝑥0
hence, 𝑦 = 𝑦0 +𝑓 𝑥 𝑥 + 𝑦 𝑑𝑥.
𝑥0
where 𝑦0 = 0. That is, y =𝑓 𝑥 𝑥+𝑦 ,
First approximation:
𝑥0
𝑦1 = 𝑦0 + 𝑥 𝑓 𝑥+ 𝑦 𝑑𝑥
𝑥2
= 1+x+
2
Second approximation:
𝑥0
𝑦2 = 𝑦0 + 𝑥 𝑓 𝑥, 𝑦1 𝑑𝑥
𝑥2 𝑥3
=1+x+ +
2 3
Third approximation:
𝑥0
𝑦3 =𝑦0 + 𝑥(𝑓 𝑥, 𝑦2 )𝑑𝑥
2 𝑥3 𝑥4
=1 + 2𝑥 + 𝑥 + +
3 24
Euler’s method:
The simplest numerical method for solving ordinary differential equation is
Euler’s method. This method is so crude that it is seldom used in practice;
however, its simplicity makes it useful for illustrative purpose.
Working rules:
𝑑𝑦
Suppose any ordinary differential equation is = 𝑓 𝑥, 𝑦 ,given 𝑦(𝑥0 ) = 𝑦0 .
𝑑𝑥
𝑥−𝑥0
1.Taking ℎ = ; such that 𝑥𝑛 = 𝑥0 + 𝑛ℎ.
𝑛
2.First Approximation:
𝑦1 =𝑦0 +ℎ𝑓(𝑥0 , 𝑦0 ); at 𝑥1 = 𝑥0 + ℎ
3. Second Approximation:
𝑦2 = 𝑦1 +ℎ𝑓(𝑥1 , 𝑦1 ); at 𝑥2 = 𝑥0 + 2ℎ.
4.nth Approximation:
𝑦𝑛 = 𝑦𝑛−1 +ℎ𝑓(𝑥𝑛−1 ,𝑦𝑛−1 );
at 𝑥𝑛 = 𝑥0 + 𝑛ℎ
𝑑𝑦 𝑦−𝑥
Example: Given = with initial condition 𝑦 = 1 at 𝑥 = 0;
𝑑𝑥 𝑦+1
find y for x = 0.1 by Euler’s method.
Solution:
We divide the interval (0, 0.1) in to 2 steps, i.e., we take 𝑛 = 2
0.1−0
𝑎𝑛𝑑 ℎ = = 0.05
2
here, 𝑥1 = 0 + 0.05 = 0.05
𝑥2 = 0 + 2 × 0.05 = 0.1
. The various calculations are arranged as follows:
First approximation:
𝑦1 = 𝑦0 +ℎ𝑓 𝑥0, 𝑦0
1−0
= 1 + 0.05( ); at 𝑥1 = 0.05
1+0
=1.05
Second approximation:
𝑦2 = 𝑦0 + ℎ𝑓 𝑥1 , 𝑦1
1.05−0.05
= 1 + 0.05( ); at 𝑥2 = 0.1
1.05+0.05
=1.045.
𝑥2
𝑦 0.1 = 1 + 𝑥 1 +
2! (2)
=1+0.1+(0.1)2
= 1.11
𝑥2
𝑦(0.2) = 1 + 𝑥(1) +
2! (2)
= 1 + 0.2 + 0.22
= 1.24
Milne’s Method:
𝑑𝑦
Given = 𝑓(𝑥, 𝑦)and 𝑦 = 𝑦0 ,𝑥 = 𝑥0 ; to find an approximate value of 𝑦 for
𝑑𝑥
𝑥 = 𝑥0 + 𝑛ℎ by Milne’s method, we proceed as follows:
Using Milne’s method find y(4.5) given 5xy , 𝑦2 = 2 given y(4) =1, y(4.1) =1.0049, y(4.2)
=1.0097, y(4.3) =1.0143; y(4.4) =1.0187.
Solution:
We have, (2 – 12)/5 × 4
Then the starting values of the Milne’s method are,
2−12
𝑥0 = 0, 𝑦0 = 1, 𝑓 = = 0.05
5×4
𝑥1 = 4.1, 𝑦1 = 1.0049, 𝑓1 = 0.0485
𝑥2 = 4.2, 𝑦2 = 1.0097, 𝑓2 = 0.0467
𝑥3 = 4.3, 𝑦3 = 1.0143, 𝑓3 = 0.0452
𝑥4 = 4.4, 𝑦4 = 1.0187, 𝑓4 = 0.0437
Since 𝑦5 is required, we use the predictor are
4ℎ
𝑦5 = 𝑦1 + (2𝑓2 − 𝑓3 + 2𝑓4 )
3
𝑥 = 4.5;
4×0.1
𝑦5 = 1.0049y5’=y1+4h/3(2f2-f3+2f4’)
+ (2 × 2.067 − 0.045 + 2 × 0.0437)
3
= 1.0232
𝑦
𝑓5 =2 − 5
5×4.5
1.0232
=2− (1.023 2 )
5×4.5
= 0.0424
Now using the corrector
ℎ
𝑦5 = 𝑦3 + (𝑓3 + 4𝑓4 + 𝑓5 )
3
= 1.023 ; 𝑦(4.5)
,
Runge-Kutta Method
𝑑𝑦
Consider the differential equation , = 𝑓(𝑥, 𝑦), 𝑦(𝑥0 ) = 𝑦0 … … (1)
𝑑𝑥
Working rule to solve (1) by 𝑅𝑢𝑛𝑔𝑒 ’𝑠 method:
Calculate successively
𝑘1 = ℎ𝑓(𝑥0 , 𝑦0 ),
ℎ 𝑘
𝑘2 = ℎ𝑓(𝑥0 + , 𝑦0 + 1 ),
2 2
ℎ 𝑘2
𝑘3 = ℎ𝑓( 𝑥0 + , 𝑦0 + ),
2 2
𝑘4 = ℎ𝑓(𝑥0 + ℎ, 𝑦0 + 𝑘3 ),
Finally compute ,
1
𝑘 = (𝑘1 + 2𝑘2 + 2𝑘3 + 𝑘4 )
6
Example
𝐴𝑝𝑝𝑙𝑦 𝑡ℎ𝑒 𝑅𝑢𝑛𝑔𝑒𝑘𝑢𝑡𝑡𝑎 𝑚𝑒𝑡ℎ𝑜𝑑 𝑡𝑜 𝑓𝑖𝑛𝑑 𝑎𝑛 𝑎𝑝𝑝𝑟𝑜𝑥𝑖𝑚𝑎𝑡𝑒 𝑣𝑎𝑙𝑢𝑒 𝑜𝑓 𝑦 𝑤ℎ𝑒𝑛 𝑥 0.2 𝑔𝑖𝑣𝑒𝑛 𝑡ℎ𝑎𝑡
𝑑𝑦
= 𝑥 + 𝑦 𝑎𝑛𝑑 𝑦 1 𝑤ℎ𝑒𝑛 𝑥 0.
𝑑𝑥
Solution:
Here 𝑥0 = 0, 𝑦0 = 1, ℎ = 0.2, 𝑓(𝑥0 , 𝑦0 ) = 1
𝑘1 = ℎ𝑓 𝑥0 , 𝑦0
= 0.21
= 0.2000,
ℎ 𝑘
𝑘2 =ℎ𝑓(𝑥0 + , 𝑦0 + 1 )
2 2
= 0.2 × 𝑓(0.1 , 1.1)
= 0.2400
ℎ 𝑘
𝑘3 = ℎ𝑓(𝑥0 + , 𝑦0 + 2)
2 2
= 0.2 × 𝑓 0.1 , 1.12
= 0.2440
𝑘4 = ℎ𝑓(𝑥0 + ℎ,𝑦0 + 𝑘3 )
𝑘4 = ℎ𝑓(𝑥0 + ℎ, 𝑦0 + 𝑘3 )
= 0.2 × 𝑓(0.2 , 1.244)
= 0.2888
1
𝑘= (𝑘1 + 2𝑘2 + 2𝑘3 + 𝑘4 )
6
1
= 0.2000 + 2 × 0.2400 + 2 × 0.2440 + 0.2888
6
1
= × 1.4568
6
= 0.2428
𝐻𝑒𝑛𝑐𝑒 𝑡ℎ𝑒 𝑟𝑒𝑞𝑢𝑖𝑟𝑒𝑑 𝑎𝑝𝑝𝑟𝑜𝑥𝑖𝑚𝑎𝑡𝑒 𝑣𝑎𝑙𝑢𝑒 𝑜𝑓 𝑦 𝑖𝑠 1.2428.
Chapter 12
Solution Algebraic and Transcendental Equations
Methods
Regula-Falsi Method:
𝑥0 𝑓 𝑥1 − 𝑥1 𝑓(𝑥0 )
𝑥2 = 𝑓 𝑥1 −𝑓(𝑥0 )
Step 02: Find 𝑓(𝑥2 ) and estimate its sign:
if 𝑓 𝑥2 < 0 then replace 𝑥0 = 𝑥2
if 𝑓(𝑥2 ) > 0 then replace 𝑥1 = 𝑥2
𝑥0 𝑓 𝑥1 − 𝑥1 𝑓(𝑥0 )
𝑥3 =
𝑓 𝑥1 −𝑓(𝑥0 )
Step 04: Find 𝑓 𝑥3 , 𝑓 𝑥4 … 𝑓(𝑥𝑛 ) and estimate until the required roots.
Example
Solve the equation 3𝑥 − cos 𝑥 − 1 = 0 by False Position Method.
Sol: Let, 𝑥0 = 0.60 𝑎𝑛𝑑, 𝑥1 = 0.61
𝑓 𝑥0 = 3 × 0.60 − cos 0.60 − 1 = −0.025
𝑓 𝑥1 = 3 × 0.61 − cos 0.61 − 1 = 0.010
𝑓 𝑥0 × 𝑓 𝑥1 < 0
Using Regula Falsi Method,
1st iteration:
𝑥0 𝑓 𝑥1 − 𝑥1 𝑓(𝑥0 )
𝑥2 = 𝑓 𝑥1 −𝑓(𝑥0 )
0.60×0.010 −0.61×(−0.025)
= 0.010 −(−0.025)
= 0.607
𝑓 𝑥2 = 3 × 0.607 − cos 0.607 − 1 = −0.00036
2nd iteration: Here, 𝑥0 = 𝑥2 = 0.607
𝑥0 𝑓 𝑥1 − 𝑥1 𝑓(𝑥0 )
𝑥3 =
𝑓 𝑥1 −𝑓(𝑥0 )
0.607×0.010 −0.61×(−0.00036)
𝑥3 =
0.010 −(−0.00036)
= 0.607
Since 𝑥2 = 𝑥3 , so the value of the root is 0.607.
Methods
Newton-Raphson Method:
Step 01: Given the function 𝑓(𝑥), find the derivative of the function 𝑓′(𝑥).
Step 02: Find 𝑎, 𝑏 so that 𝑓(𝑎) × 𝑓(𝑏) < 0.
Step 03: Assume 𝑥0 = 𝑎.
𝑓(𝑥𝑛 )
Step 04: Find out 𝑥𝑛 = 𝑥𝑛 −
𝑓′(𝑥𝑛 )
Step 05: Find 𝑥1 , 𝑥2 , 𝑥3 , 𝑥4 , … , 𝑥𝑛 until any two successive two values are equal.
Example
Solve the equation 3𝑥 − cos 𝑥 − 1 = 0 by Newton Raphson Method.
Sol: Here, 𝑓 𝑥 = 3𝑥 − cos 𝑥 − 1
𝑓 ′ 𝑥 = 3 + sin 𝑥
𝑓 𝑥𝑛 3𝑥𝑛 −cos 𝑥𝑛 −1
Now, 𝑥𝑛+1 = 𝑥𝑛 − 𝑓′ = 𝑥𝑛 −
𝑥𝑛 3+sin 𝑥𝑛
Taking, 𝑥0 = 0.60, we get
3 × 0.60 − cos(0.60) − 1
𝑥1 = 0.60 − = 0.60701
3 + sin(0.60)
Methods
Iteration Method:
X →Y
𝑋1 → 𝑌1
𝑋2 → 𝑌2
𝑋3 → 𝑌3
-------------- ----
- - - - - - - - -- - - - - ----
𝑋𝑛 → 𝑌𝑛
Types-
1. Line fitting ( y= a+bx)
2. Parabola fitting (y= a+bx+c𝑥 2 )
Line fitting working rule
σ 𝑦= na + bσ 𝑥
σ 𝑥𝑦 = 𝑎 σ 𝑥 + 𝑏 σ 𝑥 2
y= a+bx+c𝑥 2
v= a+bu+c𝑢2 ….(1)
Putting the values of a,b,c int this equation
We get ,
Y-b=a+b(x-a) +c(𝑥 − 𝑎)2
Example – Fit a straight line to the following data regarding x as the independent variable
x: 0 1 2 3 4
Sol. Let the straight line to be fitted to the given data be y= a+bx
then the normal equation are
σ 𝑦= na + bσ 𝑥
σ 𝑥𝑦 = 𝑎 σ 𝑥 + 𝑏 σ 𝑥 2
X Y xy 𝑥2
0 1 0 0
1 1.8 1.8 1
2 3.3 6.6 4
3 4.5 13.5 9
4 6.3 25.2 16
Total = 10 16.9 47.1 30
ΔΔ