Part A Answers
Part A Answers
Part A Answers
Trapezoidal rule is
ℎ
Y= 2 [(𝑦0 + 𝑦𝑛 ) + 2(𝑦1 + 𝑦2 + 𝑦3 + 𝑦4 + 𝑦5 + ⋯ … )]
4. 1
If 𝑓(𝑥) = 𝑥 , 𝑓𝑖𝑛𝑑 𝑓(𝑎, 𝑏, 𝑐, 𝑑).
Sol:
1 1 1 −1
𝑓(𝑥) = , 𝑓(𝑎) = , 𝑓(𝑏) = 𝑓(𝑎, 𝑏) = ,
𝑥 𝑎 𝑏 𝑎𝑏
1 −1
𝑓(𝑎, 𝑏, 𝑐) = 𝑎𝑏𝑐 , 𝑓(𝑎, 𝑏, 𝑐, 𝑑) = 𝑎𝑏𝑐𝑑.
5. 6 𝑑𝑥
Evaluate ∫0 1+𝑥 usingSimpson’s rule by dividing the range into 6 subdivisions.
Sol:
ℎ
Y= 3 [(𝑦0 + 𝑦𝑛 ) + 2(𝑦2 + 𝑦4 +. . . . . ) + 4(𝑦1 + 𝑦3 +. . . . . )]
x 0 1 2 3 4 5 6
y 1 1/2 1/3 1/4 1/5 1/6 1/7
Y=1.9661
6. Establish the formula to calculate the square root of any positive number N using Newton
Raphson method.
Sol:
𝐿𝑒𝑡 𝑥 = √𝑁 , 𝑥 2 = 𝑁,
𝑓(𝑥) = 𝑥 2 − 𝑁; 𝑓 ′ (𝑥) = 2𝑥
1 𝑁
By Newton’s algorithm 𝑥𝑛+1 = 2 (𝑥𝑛 + 𝑥 )
𝑛
7. Why Gauss – Seidel method is better than Gauss-Jacobi method?
Sol:
Gauss – seidal method is converges quickly to compare with Gauss-Jacobi method.
So the number of iterations are also less.
8. State Lagrange’s formula.
Sol:
X 4 6 8 10
Y 1 3 8 16
Sol:
x y ∆𝑦 ∆2 𝑦 ∆3 𝑦
4 1 2 3
6 3 5
8 8 8 3 0
10 16