Professional Documents
Culture Documents
Linear Interpolation
Linear Interpolation
• The line joining the points on the curve
point of a and b.
• The line joining the point on the curve
of similar triangles .
• Therefore
If transpose to find
𝑏
|𝑓 ( 𝑎 )|− 𝑐 1|𝑓 ( 𝑎 )|= 𝑐1|𝑓 ( 𝑏 )|− 𝑎∨𝑓 ( 𝑏 )∨¿
𝑐
1|𝑓 ( 𝑎 )|+𝑐 1|𝑓 ( 𝑏 )|= 𝑎|𝑓 ( 𝑏 )|+𝑏∨ 𝑓 ( 𝑎 ) ∨¿
𝑐 1=𝑎|𝑓 ( 𝑏 )+𝑏|𝑓 ( 𝑎 ) ∨ ¿ ¿
|𝑓 ( 𝑎 )|+¿ 𝑓 ( 𝑏 )∨ ¿¿
EXAMPLE
Let
a. Show that has a root between 1 and 2
b. Use linear interpolation three times to get an approximate value for this root.
c. Show that the approximation is correct to two decimal places.
Let
𝑓 ( 1 ) =−1.2817 𝑓 ( 2 ) =1.3890
𝑐 1=𝑎|𝑓 ( 𝑏 )+𝑏|𝑓 ( 𝑎 ) ∨ ¿ ¿
|𝑓 ( 𝑎 )|+¿𝑓 ( 𝑏 )∨ ¿¿
𝑎
=1|𝑓 ( 𝑎 )|=1.2817 𝑏 =2|𝑓 ( 𝑏 )|=1.3890
1 ( 1.3890 )+ 2(1.2817)
𝑐 1= ¿ 1.4799
1.2817+1.3890
𝑓 ( 𝑐1 ) =¿ −0.5672
𝑐
1=1. 4799|𝑓 ( 𝑐 1 )|=0.5672 𝑏= 2|𝑓 ( 𝑏 )|=1.3890
𝑓 ( 𝑐2 ) =− 0.1539
𝑐 3=𝑐2|𝑓 ( 𝑏 ) +𝑏|𝑓 ( 𝑐 2 )∨ ¿ ¿
|𝑓 (𝑐2 )|+¿ 𝑓 𝑏 ∨¿¿
( )
𝑐 3=𝑐2|𝑓 ( 𝑏 ) +𝑏|𝑓 ( 𝑐 2 )∨ ¿ ¿
|𝑓 (𝑐2 )|+¿ 𝑓 𝑏 ∨¿¿
( )
𝑐
2=1.6307|𝑓 ( 𝑐 2 )|=0.1539 𝑏 =2|𝑓 ( 𝑏 )|=1.3890
𝑓 ( 𝑐3 ) =− 0.0360
𝑐
3=1.6675|𝑓 ( 𝑐 3 )|=0.0360 𝑏 =2|𝑓 ( 𝑏 )|=1.3890
Show that the equation has a root between x=3 and x=3.5
Use linear interpolation twice to get an approximate value for this root.
𝑙𝑛𝑥
− 𝑥+2=0
𝑎
=3|𝑓 ( 3 )|=0.0986 𝑏=3.5|𝑓 ( 𝑏 )|=0.2472
3 ( 0.2472 )+ 3.5(0.0986)
𝑐 1= ¿ 3.1426
0.0986+0.2472
𝑓 ( 3.1426 )=0.0025
𝑐
1=3.1426|𝑓 ( 𝑐 1 )|=0.0025 𝑏 =3.5|𝑓 ( 𝑏 )|=0.2472