Professional Documents
Culture Documents
Finite Difference and Interpolation - Das
Finite Difference and Interpolation - Das
= D 92 6g) 42D O-I ype... = = 1x(y +2 G2) aay 4 2EDV OM (19) 2 6 = 14x + 6x? - Gr + 2x — Or? + dy = W-x-1 . => f05) = 2 (0.5) -(0.5)-1 = 0.25-0.5-1=-1.25 Ans. Example 8. Find the interpolating polynomial that fits the data and estimate f (0.2) and S (1) from the following table. x 0 1 2, 3. [| 4 f@. | 1 7 25 | 61 Solution. Newton's Forward Difference Table is as under x | f@_ |4f@|_ a7@)] a¥e lave | 0 0 1 1st 6 Here a= 6 6 2 7 2 I, a+nh 18 6 = 0FA(1)= x 3 25 18 a E 36 4 61 . n(n-l) f(a nh) = f(a)+ ndf(a)+ ue P F(a) +E) a f(a) SO) 1+x@)+ (x-1) =I) (x= xe (6 42& Te 2 @ 143 @)@-1)+x@-1)(-2) 14 3x? 3x4 93,2 + 2y Baxtl Ans,introduction to Engineering Mathemay. i 570 Interpc L = 0.808 my $02) = (0.2) = (0.2) + 1 = 0,008 - 0.2 +1 f(x) = 3- £6 /F) = 30F ann ing table : ae \ fixample 9. Estimate the missing term in the following table : ; z a I Z smal ? : y=f@ | 1 3 Z - a Explain why value differs from 3? or 27.) (R.GRV., Bhopal HI Semester; Dee, 2p Solution, Here, four entries are given so y can be represénted by third degree polynons — Cay = contnt) aty = 0 => E-Ity = 0 > (B-4B+6R-4E+1)y = 0 => E*y—4By +6E7y- bey +y =0 > Y4-4Y3 + 62-44 + Yo => 81—4y, +609)—4(3) 41 = 0 => 81-4y, 454-1241 = 9 > 4y, = 124 => wr Als. Example 10. Find the first term of the series whose second and subsequent terms are 8, 3, 0-1, 0. (RGRY, Bhopal lll Semester, Dec. 2007, June 2003) x 1 2 3 4 5 6 |\ fe | 2 {os 3 0 -1 flo IK Solution. First Method. We have * Here, 5 values out of 6 values of f(x) are given of degree 4. Hence, arf) = > af) = > -n¥@) = 0 => (E°-SE* +108? -10£? +5E-1) f (x) So, we can assume f(x) to be a polynomial constant 0 0 [+ A=E-1)| Interpolation with Equal intervals en For x= 1, (the first tabulated value), we have S(O ~S/(5)* 10f(4)- 1013) + S7(2)-fM) = 0 7 => 0-5x(-1)+0-10x3+5x8-f(1) = 0 > SQ) = 5-30+40 > fQ) = 15 Second Method. We have, FQ) = EXfQ)= (1+ Ay'fQ)=(1-A+ =A +.) £(2) a SQ) = fQ)-AF(2)+ A fQ)-AF(2)+.... (1) To evaluate A f(2), A* f(2)..... the difference table is x f£@) 4f@)_|_ as@) | 4's@) 4 0 ~ 2 7 6 0 Thus A f(2) = 5, A F(2)=2, APF (2)=0 ete. Substituting these values in (1), we get F(I)=84+542-0=15 fans Example 11. The number of members of a Civil Engineering Society are given below : x 1987 | 1988 | 1989 [1990 | 1991 f@) | iso] 192] 241 o 374 Make the best estimate you can do of the number of members in 1990. Solution, Since four enteries are given so y can be represented by the third degree polynomial. Hence A’y = constant at f(x) = 0 for all x (y=f@)] (E-Df@) = 0 > (E-4B+ 6-46 + 1) F(x) =0 = [E-4 +6 B— 4B +1) (1987) = 0 = Now E*f(1987)~ 48? (1987) + 6 Ef(1987)—4 E f(1987) +£(1987)=0a Int 2 a ) —4.f (1988) + /(1987) = 0 = Again £(1991)—4f(1990) + 6f(1989) => 374-4 (1990) + 6 (241) — 4 (192) + 150 =0 => 374—4,/(1990) + 1446-768 + 150=0 = Again 4f(1990) = 374 + 1446-768 + 150 4f (1990) = 1202 f(1990) = 300.5 Number ofmembers in 1990 is 301. Example 12. Find the missing values in the following table: x 45 50 55 60, 65 2 y 3 = =24 roduction to Engineering Mathemay,, ‘interpol Any, (R.GPY, Bhopal, Ill Semester, June 2007, Solution, Here, three enteries are given sof (x) can be represented by two degree polynomial, A? f(x) = constant > Afa) = 0 ad (E-I¥f@) = 0 > {E°-3E°+3E-Q f(x) = 0 = EB f(x)-3E? f(@)43ES() -f@) = = $(60) = 3f(55) +3 F(50)-f(45) = > £(60)-3 (2)+3,(50)-3 = £(60) + 3,f(50) = Again from (1), we have £(65)-3,f(60) + 3 (55) -f(50) = 0 —2.4-3,f(60)+ 3 (2)-f(50) = 0 > 3F(60)+f(50) = 3.6 Solving (2) and (3), we get f(60) = 0.225 and f(50)= 2.925 Example 13. Finding the missing values in the following table : x 0] 5 10 15 20 [25 y | 6 10 - 17 = 31 Hence, A3/(x) = constant Atf@) = 0 = (E-1f@) = 0 wo (I) ww (2) 3) Ans. (RGRY., Bhopal, Ill Semester, June 2006) Solution. Here, there are four given enteries sof (x) can be represented by third degree polynomial. 7Interpolation with Equal Intervals 573 => (E— 4B + 6E-4E + 1) (0) =0 w (1) => Ef (0)- 4E°f (0) + 6E f(0)-4 Ef(0)+f(0) = 0 = £(20)—4 F(15) +6 f(10)~4f(5) + (0) = 0 => S(20)—4 (17) + 6f(10)-4 (10) +6 = 0 = f(20)- 68+ 6 f(10)-40+6 = 0 = F(20)+ 6f(10) = 102 w= (2) Again from (1), we have | F(25)-4f(20) + 6f(15)—4F(10) + f(5) = 0 | > 31-4 f(20) + 6(17)-4f(10) +10 = 0 | > 31-4 f(20) + 102-4 f(10)+10 = 0 : = 4f(20)+4F(10) = 143 w=) | Solving (2) and (3), we get (10) = 13.25 and f(20)=22.5 Ans. | Example 14, Find out the missing values from the following : | 5 5 | 10 15 20 25 | 30 | y 7 ? B 15 ? 25 | Solution. Since we are given four enteries so y can be represented by the third | degree polynomial. Hence A*f(x) = constant | > AY@)= 0 forall x | = (E-'f@) = 0 => (E\- 4 B+ 6E-4E+ I) f(5)= 0 => f(25)-4f(20) + 6f(15)—4f(10)+f(5) = 0 od F(25)-4 (15) + 6(13)-4f(10)+7 = 0 > F(25)-4f(10)-60+78+7= 0 > Ff (25)-4f(10) = -25 wal) Aen (E-tf(10) = 0 > (E'- 4B + 6-4 + 1)f(10) = 0 * £0) ~4F(25) +6 F(20)-4f(15) +F(10) = 0 3 25-4 F(25)+ 6 (15)-4 (13) + (10) = 0574 Introduction to Engineering Mathoma, = = 4 (25) +f(10) + 25+ 90-52 = 0 = 4 (25) +f(10) = - 63 (10) = 10.87 Solving (1) and (2), we get and f(25) = 18.47 Example 15. Obtain the estimate of the missing figures in the following table : 20 | 21 | 22 | 23 | 24 | 25 | 26 0.100 | — | 0.082 | 0.07% (R.GPY, Bhopal, Il Semester, June ; x y | ons] — | am Solution. Here five values of f(x) are given. So, we can assume f(x) to be a polynomial of degree 4 in x. Hence, A‘y = constant > AYf(X) =0ie(E-I8f(x) = 0 > “[E°-SE*+ 10 B- 10 E7+ 5E-1] f(x) = E*SQ2)—SE‘f(2)+ 10 B f(2)- 10 f(2)+ SEF(2)-F(2) F(2.5)— 5f(24)+ 10 f(2.3)-10f (2.2) + $f(2.1)-F(2.0) Putting the values from table, we get (0.082) — $f(2.4) + 10 (0.100) - 10 (0.111) + $/(2.1) (0.135) = 0 = SF(24)-SF(2.1) = -0.163 > FRA)-f(2.1) = ~ 0.0326... 0 coo Again from (1), we have Ef21)- SES21)+ WES (2.1)- 10 BfQ.1)+ SEF21)-f2.1)= 0 S (26) - 5 (2.5) + 10f (2.4) - 10f(2.3) + $f(2.2)-F(2.1) = 9 Putting the values from the table, we get 0.074 — 5 (0,082) + 10 f(2.4) ~ 19 (0.100) + 5 (0.111)-(2.1) = 0 = 10f(2.4)-f21) = 0.781 6 Solving (2) and (3), we have F(2.1) = 0.123 and f(2.4) = 0.0904 ‘Ans Third method for one missing term. Example 16. Find missing term, given that zoo | 101 | 102 | 103 104 2.0128 | 2.0170 2 2.0043 iu_ with Equal Intervals . ng value be y, then difference table is : " igterplation 2) : 2.0000 0.0043 2.0043 s, y, — 2.0043 6.0257 - 3y, | y 4.0171 — 2y, *T 6y,— 12.0514 2.0128 - y, 3y, - 6.0257] * | 2.0128 ¥,- 2.0086 |? 0.0042 4) 2.0170 | ree ourth differences must be zero by assumption, we have | = 12.0514 =0 | 6, = 12.0514 | 12.0514 | = = GE = 2.0086 (approx) Ans. YD) Example 17. Assuming thae the following values of y belong to the polynomial of degree 4, | compute the next three values : | 7, 0|[/ [2 [3 [4]5]6)]7 | yf) te fat? [a fr | -f-f— (R.GPY, Bhopal, III Semester, June 2004) Solution. The difference table for given values of x and y is : | x y Ay Ay Ady Aty 2») = ) | 0 I=y, “ea, eats *) 4=a, 2= Ay -8 =A, | 1 0O | a =, ~4=A4, ; 16= AYy, -2=Ay, 8= Ay 3 = 2 1 7 ley, 4= Ay, ; ty, 2= Ay A¥y, 4 - ‘ A ley, ay, : a, 3) 5 dy, Ay, , % ay, oy, 6 ay, ay, y, 2, as, . ay, 1 4y; ony or z) a th Tha "2 belongs to @ polynomial of degree 4, therefore fourth difference are Wy =o ty Aly, = 0 => Aly, = A= 16 Sint ay, =ay. = Aya, = 2 = 16 ~ AY, but Ay,=0 => Ab,= Ay, = 16 _—_576 Introduction to Engineering Mathematics - i Inter To evaluate y, we have, Ay, = => AY, =AYy,+ Ay, =8 + 16= 24 Now, Ay, = > 4+24=28 Again, dy, = Ayyt => Ay, =2+28=30 Atlast ye = yt dy, => y= 1+30=31 ‘To evaluate y, we have, Ay, = AYA, = AY =A y+ A= 24+ 16=40 Now, Ay, = Ayt Ay, = A’y,=28+40=68 Again, Ay = Ayr dy, => Ay, = 30+ 68=98 Atlast y= yet by = To evaluate y, we have, Ay, = Ay-Ay, => A,=A'y,t Aty,= 40+ 16= 56 Now, Ay, = byt dy, => — Ay,= 68 + 56= 124 Again, Ay, = Ayt Ay, = Ay, =98 + 124= 222 Atlast v= Wty, = — -y,=129+222=351 Hence, Ye = 31, y= 129, y,=351 Ans 18.5 REMAINDER TERMS IN NEWTON’S FORWARD INTERPOLATION FORMULA Letay yx, _x, be given at equal intervals h. + ph G+) [ey saxo th] =(e-x)-h [ex = x9 + ph => x—xy = ph] 2 = Np +2h] xox, Newton’s forward formula is S(é>+ph) =S (2%) +pds(jrLod A(x) ban 4 P=W(p~2)...(p=n=i) ) nl Af (3) +PRAD (=D (DM) yet feat vas e (n+! Remainder= Rp = 242=(p~2)...(p—n) 7 a mainder = R, Gap ASO) EXERCISE 18,1 1. Construct Ne 's ‘a ; : rc sor fo “Nerpolation polynomial for the following data : 8 10 y 1 3 8 16. Hence evaluate y for x = 5 aswith Equal intervals sn ion 1g data gives the melting point of an alloy of lead and zine hy . interpola 2, The followin ‘ead in the alloy (Py: | 50 60. 70 80 205 225 | 248 | 274 Percentage OF emperaure (0°C) A the alloy containing 54% of lead, using appropriate interpola melting point of t propriate interpolation Find the Ans. 212.64 mula. ference interpolation for the following table fo «yas a polynomial in x by Newton's forward difference interpotat the following table: 3. Expres 0 1 2 3 4 F4 3 6 u 18 27 Ans. y= 27 + 2x + 3, ‘Te fallowing ae data from the steam table, Find the pressure upto four places of decimal ifthe temperature of the steam is 145°C. Temperature °C_| 140 150 160 | 170 | 180 | Pressure kgfiem? | 3.685 | 4.854 6.302 | 8.076 | 10.225 ‘Ans, 4.2375 | |g. A function f (2) is given by the following table, Find / (0.2) by a suitable formula : | x 0 1 2 3 4 5 6 | 7m jie | 19s | 194 | 203 “| 212 | 220 | 229 A Ans, 177.718036736 | 6. Using a polynomial of the third degree, complete the record given below of the export of a certain | commodity during five years : } Year 1989_| 1990 1991 | 1992 | 1993 Export (in tons) | 443 384 — | 397 [467 Ans, 369 tons | 1. Obtin the estimate of the missing figures in the following table : | x 1 2 3 4 5 6 71 38 f@) 1 8 ? 64 ? 216 | 343 | 512 Ans. f (8) = 125, £3) = 27 | - | & Find by interpolation the missing values in the following data : | x 0 5 lo Is 20 25 | 2 6 lo - 7 — 31 Ans, 13.25, 22.5 9, i A Obain the missing terms in the following table : ui 2.0 21 2.2 2.3 2.4 25 | 26 fe) [ois [> out 0.100} 2 | 0.080 | 0.074 "tthe table below th ‘Ans, f (2.1) = 0.123,f i ie 21.6 is the Sixth term, Feo the values of y are consecutive terms of a series of which the number Find the fst and the fenth term of the series. x Cos 4 5 6 1 HE Ls 125 |* 216 | 343 Find the mi ti A Swe term in the following table Ror] : 2 3 4 2 2 9 = 81 1.68a 578 Introduction to Engineering Maton /18.6 NEWTON'S BACKWARD INTERPOLATION FORMULA (RGR, Bhopal, Ut Semesey b © “terpolat Sol Let the function be y = f (x) Suppose it is required to evaluate f (x) for.x =x, + ph. ces vy — 1+ pV+ pint) , Pops ns2) (p+) ys, i 2! = Wnty, + >» P(ptl) o2, , o(p+l) (p+2) vs a Yt 3! It is called Newton's Backward interpolation formula. Note. This formula is used for finding the value of y for x, when x is near x, (end) Itis also used for extrapolating values of y for x when x is slightly greater than x, Example 18. Given that x 172 3 4 3 | y 2 [ees 10 7 26 | ! Find the value of V¥y,. (RGR, Bhopal, III Semester, ue 26 Solution. The difference table is as under : 7 5 = vy vip 1 2 : 2 0 3 0-0, 4 5 ee From the table, we get yy, = 2 a 19. Given 8 ~ 7 7 [2 3 4 5_|6_ | (a) i @ 8 | 27 | ot | ns [216 | 4 Estimate (7.5),ose '\|nterpolation with Equal Intervals 579 2002 106) Solution. Difference table is as under : x [ro fw [or [oy | vy [oy | ve [oe 1 1 . 2 8 12 19 6 3 277 18 0 37 6 0 4 64 24 0 0 61 6 0 ( 5 125 30 0 0 91 6 0 6 216 36 0 127 6 7 343 42 169 8 512, Here, x=75, x,78 x=x,+Ph 7.5=8+P(l) = P=-05 By Newton's Backward difference formula, we have PUP o2 yy POP+(P+2) gay, Yp = Int PVIn* re P(P+1)(P+2)(P+3) vty, 4! -0.! 5+) -0.5)(-0.: 7 . 5124(-0,5)16942SERS#D (43), AICOS IOSD G9 = 512 — (0.5) 169 ~ (0.5) (0.5) (21) ~ (0.5) (0.5) (1.5) = 512-84. - $.25 - 0.375 = 421.875 Ans. Example 20. From the following table, evaluate f (3.8) using Newton backward interpolation formula : x 0. 2 3 a Se) 1.00 | 1.50 2.20 3.10 4.60Introduction to Engineering Mathematics _ ~ nterpo Solution. The difference table is as under : x fe) | vfw | ve) | v¥@ | v¥@ 0 1.00 0.50 1 1.50 0.20 0.70 0 2 2.20 0.20 L——"| 0.40 — [7 0.40 = 3 3.10 0.60 |] 1 ———T 1.59 | ——J 4.60 4 Mw Here, x x 3.8 x, + Ph > 38=4+P(1l) => a By Newton's Backward difference interpolation formula, we have PE Mor, Peres 2) Vy, + PEEP DN Gy, y= nt PV, +E EHD, +1) 3! hy OACO2DCO2#D C0249) (0.40) +2) (0.4) 4.60-+(~0.2)(1,50)+ 0202+) 69 6), (0 ye = 4.6 - (0.2) (1.5) - (0.2) (0.8) (0.3) - 02090808) _ (0.2)(0.8)(1.8)(2.8)(0.4) 2 = 4.6 - 0.3 - 0.048 - 0.0192 - 0.01344 Ee = 4.21936 Ans, Example 21, Find the cubic polynomial which takes the following values : x of. 2 3 y 1 [2 1 10 Hence or otherwise evaluate y (1). (R.GRY, Bhopal, Ill Semester, Dec. 2001) Solution. Difference table is as under ; x y vy vy | vty 0 1 Lo 3 wlHere a= 3, “Ni jnterpolation with Equal Intervals at ph = 4, 3+p(l) = 4 > perl By backward difference formula : 10+ ia 4" Yn t+ PV Vy + x(Q)+ P(p+)) 92 ae x(x+)) “a ¢ = 2e + Mx? + 18x +10 Which is required polynomial. On putting x = 1 in (1), we get Yy = 2) + 11 (1 + 18 (1) + 10 nu 41 2+11+18+10 h=1,y,=10 + eieriies) Vy, + os sat (S12) (2) 10 + Ox + Sx? + Sy +2 (9 + 3x? + 2x) 10 + 9x + Sx? + Sx + Ox} + 6x? + 4x 581 a (1) Ans. Example 22. The following table gives the population of a town during the last six censuses. Estimate using any suitable interpolation formula, the increase in the population during the period from 1946 to 1948 : Solution. The difference table is as under : Year i9i| 1921 | 1931 | 1941 1951 1961 Population (in thousands) 12) 15 | 20 27 39 52 (R.GPY., Bhopal, Il Semester, June 2003) x y wy vy vy | vy | vy ou | 12 3 1921 | 15 2 5 0 1931 | 20 2 3 1 3 rc 1941 | 27 5 12 =4 1951 | 39 | ti 13 | ——| 1961 32_| ——| By Newton's formula for Backward differences, we have Here, », = .Peesneeanresy vty, PP + In + P(Ty,) 4+ 1946, x,= 1946 = 1961 + P(10) 1961 Pes) wy, pe bene say Yn) x=x,+ Ph = -15=P(10) (P+2)(P+3)(P+4) Ne — +3) +Hysy w= (1) => P=-15Introduction to Engineering Mathematics 502 nterpola Population in 1946. er — i =1,.5+2) H1S(CLS4) gy =ES(H1ES#D C1542) yy, Maye = 52 -1.5(13)¥— FS (+ 6 C4) ‘New Th S (CLS 4+1)(-1.5+2)(-1.5+3) 7 =1.5(-1.5+1)(-1.5+2)(-1.5+3)(-1 S48) 24 GO 120 E -5(0.5)(0.5)(1.5)(2 1,5(0. 1,5(0.5)(0.5)2 _1.5(0.5)(0.5)(1.5)x7 al 5 = 52-1.503)+ 15 gg = — 19.5 + 0,375 - 0.25 — 0.1641 - 0.1172 = 32.3437 thousands Population in 1946 = 32.3437 thousands, Population in 1948 Here, x = 1948, x, = 1961 x = x,+Ph 1948 = 1961 + P (10) => P=-13 , Putting the values of x = 1948 and P= — 1,3 in (1), we get Pag > 924 C18) (03) INCI Gy , IBCIBADEII42). 5, -13(-1341) AS49133) (7) + 2SEISADEI3 “2c! 3+3)(-1.3+4) (10) 52-90! fee ea = 52 — 16.9 + 0.195 — 0.182 — 0. 1353625 — 0. er = 34.873215 thousands Population in 1948 = 34.873215 thousands Increase in population from 1946 to 1948 = 34.873215 — 32.3437 = 2.529515 thousands = 2,53 thousands (app.) Ans. Example 23, Find the cubic ‘polynomial interpolation which takes on the values 75 Kah f-% f= f/=55. Hence find f, Solution, Difference table is as under : . *_|y=f@) vf | vr vif vif 0 5 -4 1 1 12 8 -4 2 3 25 | ——] 30 | |