You are on page 1of 4

FALL 2023

MTH603 (Numerical Analysis)


Assignment # 2
SECTION IN-CHARGE: AROOBA
FATIMA
Total Marks 20
Question 01:
Find f '(1.40) and f ''(1.40) by using Newton's Backward difference formula
for derivatives from the following table

x 1.24 1.28 1.32 1.36 1.40


f(x) 3.2542 4.1562 4.8531 5.4623 6.1811

SOLUTION
x y ∇y ∇ y
2 3
∇ y
4
∇ y
1.24 3.2542
0.902
1.28 4.1562 -0.2051
0.6969 0.1174
1.32 4.8531 -0.0877 0.0799
0.6092 0.1973
1.36 5.4623 0.1096
0.7188
1.40 6.1811

The value of x at you want to find f ( x ) : x n=1.40


h=x 1−x 0=1.28−1.24=0.04

[ ⅆⅆ ]
y
x x = xn
1
h ( 1
2
1
3
1
= × ∇ y n + ×∇ 2 y n + × ∇ 3 y n + × ∇ 4 y n
4 )
[ ⅆⅆ ]
y
x x =1.40
=
1
0.04 ( 1 1 1
× 0.7188+ × 0.1096+ ×0.1973+ × 0.0799
2 3 4 )
[ ⅆⅆ ]
y
x x =1.40
=
1
0.04
× ( 0.7188+ 0.0548+0.065766+ 0.01997 )

[ ⅆⅆ ]
y
x x =1.40
=
1
0.04
× ( 0.859336 )

[ ⅆⅆ ]
y
x x =1.40
=21.4834

[ ]
ⅆ2 y
ⅆ x2 x = xn
=
1
h2 ( 11
× ∇2 y n+ ∇3 y n + ×∇ 4 y n
12 )

[ ]
ⅆ2 y
ⅆ x2 x =1.40
=
1
0.0016 ( 11
× 0.1096+0.1973+ × 0.0799
12 )

[ ]
ⅆ2 y
ⅆ x2 x =1.40
=237.5885

Question 02:

Using Simpson's
1/ 3 Rule to evaluate
12

 (e
3x
 0.5) dx
0

(Divide the interval of integration into 8 equal parts.)


SOLUTION
Simpson’s 1/3 rule is a numarical integration method that approximates the definite integral of a
function over a given interval by using quadratic approximation. The formula for simpson’s 1/3
rule with equally spaced points is:
b

∫ f ( x )= 3h [ f 0 +4 ( f 1 + f 3+ f 5 +… f n−1 ) +2 ( f 2+ f 4 + f 6 +… f n−2 ) +f n ]
a

Here f ( x )=(e−3 x +0.5) a= 0, b=12


b−a 12−0 12
h= = = =1.5
n 8 8

x x 0=0 x 1=1.5 x 2=3 x 3=4.5 x 4 =6 x 5=7.5


f (x) f 0=0.5 f 1=0.5747 f 2=0.6494 f 3=0.724 f 4=0.7987 f 5=0.8734

x 6=9 x 7=10.5 x 8=12

f 6=0.9481 f 7=1.0228 f 8=1.0974

∫ f ( x )= 3h [ f 0 +4 ( f 1 + f 3+ f 5 + f 7 ) +2 ( f 2+ f 4 + f 6 ) + f 8 ]
a
12

∫ f ( x )= 1.5
3
[ 0.5+ 4 ( 0.5747+0.724 +0.8734 +1.0228 ) +2 ( 0.6494+ 0.7987+0.9481 ) +1.0974 ]
0
12

∫ f ( x )= 1.5
3
[ 0.5+ 4 ( 3.1949 ) +2 ( 2.3962 )+ 1.0974 ]
0
12

∫ f ( x )= 1.5
3
[ 19.1694 ]
0
12

∫ f ( x )=( 0.5 ) ( 19.1694 ) =9.5847


0
12

∫ f ( x )=9.5847
0

You might also like