You are on page 1of 6

Sheets Part (1) BAS111 Numerical Analysis Semester 242 (2024)

Sheet (1) Curve Fitting

(1) Fit the curve 𝑦 = 𝑎 + 𝑏𝑥 for the data


(0, 3.2), (2, 4.1), (4, 4.2), (6, 5.4)

(2) Fit the curve 𝑦 = 𝑎 + 𝑏𝑥 + 𝑐𝑥 2 for the data


(1, 10), (2, 20), (3,38), (4, 60), (5, 90)

(3) Fit the curve 𝑦 = 𝑎𝑥 𝑏 for the data


(1, 2.98), (2, 4.26), (3, 5.21), (4, 6.10), (5, 6.80), (6, 7.50)
𝑏
(4) Fit the curve 𝑦 = 𝑎𝑥 2 + for the data
𝑥
(1, −1.51), (2, 0.99), (3, 3.88), (4, 7.66)
𝑏
(5) Fit the curve 𝑦 = 𝑎𝑥 + 𝑥 2 for the data
2
(0.9, 10), (1.9, 30), (3, 50), (3.9, 80), (5, 110)

(6) Fit the curve 𝑦 = 𝑎 + 𝑏𝑥 3 for the data


(7.9, 0.2), (11.9, 0.4), (16.4, 0.8), (22.6, 1.6)
1
(7) Fit the curve 𝑦 = for the data
𝑎+𝑏𝑥 2
(1,0.5), (2,0.4), (4,0.3), (6,0.2), (8,0.1)
2
(8) Fit the curve 𝑦 = 𝑎 𝑒 −𝑏𝑥 for the data
(1, 9.01), (2, 6.01), (3, 6.07), (4, 2.02), (5, 0.22), (8, 0.02)

(9) Fit the curve 𝑦 = 𝑎 sin 𝑥 + 𝑏 cos 𝑥 for the data


𝜋 𝜋 𝜋 𝜋
(0,4), ( , 5.1) , ( , 5.1) , ( , 4.8) , ( , 3.2)
6 4 3 2

(10) Fit the curve 𝑦 = 𝑎 + 𝑏 sin2 𝑥 for the data


𝜋 𝜋 𝜋 𝜋
(0,4.2), ( , 5.8) , ( , 8.3) , ( , 9.9) , ( , 12.5)
6 4 3 2

Dr. Shaaban Abd El-Gaid Page | 1


Sheets Part (1) BAS111 Numerical Analysis Semester 242 (2024)

Sheet (2) Interpolation


(1) Construct the finite differences table for the data
(−1, 2), (0, 1), (1, 2), (2, −7), (3, 10), then find 𝑓(0.5), 𝑓 ′ (1)

(2) Construct the divided differences table for the data


(0, 7), (2, 11), (3, 28), (4, 63), then find 𝑓(1), 𝑓 ′ (2) and 𝑓 ′′ (3)

(3) Construct the divided differences table for the data


(0, 51), (1, 3), (2, 1), (7, 201), then find 𝑓(3), 𝑓 ′ (7)

(4) Using Newton’s forward formula for the following data


(0, 15), (1, 16), (2, 23), (3, 42), (4, 79), (5, 140) to find 𝑓(2.5), 𝑓(4.5)

(5) Find Newton’s forward polynomial for the following data


(−2, 81), (−1, 14), (0, 5), (1, 6), (2, 17), (3, 86), (4, 309),
then compute 𝑓(−1.5), 𝑓(1.5)

(6) Find the general term of the following sequences


(i) 3, 5, 9, 21, …
(ii) 2, 10, 30, 68, …
(iii) 2, 7, 16, 35, 70, …
(7) Using Newton’s backward formula for the following data
(0, 1), (2, 7), (4, 61), (6, 211) to find 𝑓(1), 𝑓(5) and 𝑓 ′ (2)

(8) Find Newton’s backward polynomial for the following data


(0, 0), (1, 1), (2, 16), (3, 81), (4, 256), (5, 635), then compute 𝑓(0.5), 𝑓 ′ (4)

(9) Using Newton’s divided differences formula for the following data
(1, −2), (2, −1), (3, −22), (6, −37) to find 𝑓(4)

(10) Find Newton’s divided differences polynomial for the following data
(−1, −5), (0, −1), (2, 1), (3, 11), then compute 𝑓(1)

(11) Using the Lagrange’s polynomial 𝑃3 (𝑥) for the following data
(1, 2), (2, 5), (4, 6), (5, 10) to find 𝑃3 (3)

(12) Find the Lagrange’s polynomial 𝑃3 (𝑥) for the following data
(0, 1), (1, 4), (2, 15), (3, 40), then compute 𝑃3 (1.5)

Dr. Shaaban Abd El-Gaid Page | 2


Sheets Part (1) BAS111 Numerical Analysis Semester 242 (2024)

Sheet (3) Numerical Differentiation and Integration

(1) Use the data (1, 1.27), (1.01, 1.32), (1.02, 1.38) to evaluate
𝑓 ′ (1.005), 𝑓 ′ (1.015) and 𝑓 ′′ (1.01).

(2) Find the approximate values of 𝑓 ′ , 𝑓 ″ at 𝑥 = 0, 4, 6 from the given points


(0, 2.4), (2, 3.6), (4, 4.3), (6, 5.9), (10, 3.8).

(3) Evaluate 𝑦 ′ , 𝑦 ″ at 𝑥 = 0.35, 0.50, 0.65 from the following table

𝑥 0.35 0.40 0.45 0.50 0.55 0.60 0.65

𝑦 1.522 1.506 1.488 1.467 1.444 1.418 1.389

(4) Use the following table to evaluate 𝑓 ″ (1.30) at ℎ = 0.1, 0.01

𝑥 1.20 1.29 1.30 1.31 1.40

𝑦 11.59006 13.78176 14.04276 14.30741 16.86187

(5) Use the following table to evaluate 𝑓 ″ (1.8) at ℎ = 0.1, 0.2, 0.3

𝑥 1.5 1.6 1.7 1.8 1.9 2.0 2.1

𝑦 0.9975 0.9996 0.9917 0.9738 0.9463 0.9093 0.8632

(6) Evaluate 𝑦 ′ , 𝑦 ″ at 𝑥 = 0.96, 1.00, 1.04 from the following table

𝑥 0.96 0.98 1.00 1.02 1.04

𝑦 0.7825 0.7739 0.7652 0.7563 0.7434

(7) Evaluate 𝑦 ′ , 𝑦 ″ at 𝑥 = 0.7, 0.9, 1.1, 1.3 from the following table

𝑥 0.7 0.8 0.9 1.0 1.1 1.2 1.3

𝑦 0.644 0.717 0.783 0.841 0.891 0.932 0.964

Dr. Shaaban Abd El-Gaid Page | 3


Sheets Part (1) BAS111 Numerical Analysis Semester 242 (2024)

(8) Approximate the following integrals using trapezoidal rule, ℎ = 0.1


1
(a) ∫0 √1 + 𝑥 2 dx
1
(b) ∫0 √𝑡𝑎𝑛 𝑥 𝑑𝑥
1 cos 𝑥
(c) ∫0 𝑑𝑥
√𝑥
2 𝑥
(d) ∫0 𝑥 𝑑𝑥
𝑒 −1
𝜋
(9) Approximate ∫0 𝑒 𝑠𝑖𝑛 𝑥 𝑑𝑥 using Simpson’s rule, 𝑛 = 8
2

1 𝑒𝑥
(10) Approximate ∫0 𝑑𝑥 using Simpson’s rule, 𝑛 = 8
√1−𝑥
∞ 1
(11) Approximate ∫1 1+𝑥 4 𝑑𝑥 using Simpson’s rule, 𝑛 = 10

(12) Approximate ∫1 𝑥 −2 sin(𝑥 −2 ) 𝑑𝑥 using Simpson’s rule, 𝑛 = 10
∞ 𝑑𝑥
(13) Approximate ∫−∞ 1+𝑥 2 using Simpson’s rule, 𝑛 = 10
5
(14) Approximate the integral ∫1 𝑓(𝑥) 𝑑𝑥 from the following data using trapezoidal
and Simpson rules

𝑥 1 1.5 2 2.5 3 3.5 4 4.5 5

𝑦 0 0.41 0.69 0.92 1.10 1.25 1.39 1.5 1.61


𝜋
(15) Approximate the integral ∫0 𝑓(𝑥) 𝑑𝑥 from the following data using trapezoidal
2

and Simpson rules

𝑥 0 𝜋/12 𝜋/6 𝜋/4 𝜋/3 5𝜋/12 𝜋/2

𝑦 0 0.2588 0.5 0.7071 0.866 0.9659 1

Dr. Shaaban Abd El-Gaid Page | 4


Sheets Part (1) BAS111 Numerical Analysis Semester 242 (2024)

Sheet (4) Iterative Methods for Solving Linear Systems


Solve the following linear system by
(i) Jacobi method up to the fifth iteration
(ii) Gauss-Seidel method up to the third iteration
(a) 𝑥 − 3𝑦 + 12𝑧 = 31, 4𝑥 + 𝑦 − 𝑧 = 3 and 2𝑥 + 7𝑦 + 𝑧 = 19
(b) 𝑥 + 2 𝑦 + 𝑧 = 4, −𝑥 + 2𝑧 = 1 and 4 𝑥 − 𝑦 + 𝑧 = 4
(c) 3𝑥 + 7𝑦 + 13𝑧 = 76, 12𝑥 + 3𝑦 − 5𝑧 = 1 and 𝑥 + 5𝑦 + 3𝑧 = 28
(d) 2𝑥 + 𝑦 = 1, 𝑥 + 4𝑦 − 2𝑧 = 41,
4𝑦 − 8𝑧 + 𝑡 = 11 and 2𝑧 − 5𝑡 = 17

Sheet (5) Numerical Methods for Solving Equations in one Variable


(1) Find approximate values to the following roots using bisection and Newton methods
(a) √3
3
(b) √7
(2) Find a root of the following equations by using bisection and Newton methods
(a) 𝑓(𝑥) = 𝑥 3 + 4𝑥 2 − 10
(b) 𝑓(𝑥) = 𝑥 3 − 𝑥 − 1
(c) 𝑓(𝑥) = 𝑥 4 − 𝑥 − 10
(d) 𝑓(𝑥) = 𝑥 3 + 2𝑥 2 + 10𝑥 − 20
(e) 𝑓(𝑥) = 𝑥 2 − 3𝑥 − 𝑒 𝑥 + 2
(f) 𝑓(𝑥) = 𝑒 𝑥 + 2−𝑥 + 2 𝑐𝑜𝑠 𝑥 − 6
(g) 𝑓(𝑥) = 𝑥 2 + 10 𝑐𝑜𝑠 𝑥
(h) 𝑓(𝑥) = 3𝑥 2 − 𝑒 𝑥
(i) 𝑓(𝑥) = 10𝑥 − 2 sin 𝑥 − 5
(j) 𝑓(𝑥) = 15𝑥 − 10 tan 𝑥 − 1
(k) 𝑓(𝑥) = sin 𝑥 − 𝑥 + 1
(l) 𝑓(𝑥) = 2𝑥 − 4 − ln 𝑥

Dr. Shaaban Abd El-Gaid Page | 5


Sheets Part (1) BAS111 Numerical Analysis Semester 242 (2024)

Sheet (6) Numerical Solution of Ordinary Differential Equations


(1) Solve the following initial value problems using Taylor’s method
(a) 𝑦 ′ = 1 − 𝑥𝑦 , 𝑦(0) = −1
(b) 𝑦 ′ = 𝑥 + 𝑦 2 , 𝑦(0) = 1
(c) 𝑦 ′ = 𝑥 2 + 𝑦 2 , 𝑦(0) = 1
(d) 𝑦 ′ = sin 𝑥 + 𝑒 −𝑥 , 𝑦(0) = 0
(e) 𝑥𝑦 ′ = 𝑦 2 + 𝑦, 𝑦(1) = −2
𝑥2
(f) 𝑦 ′ = , 𝑦(0) = 0
𝑦 2 +1

(2) Solve the following initial value problems using Picard’s method up to the 3rd
approximation
(a) 𝑦 ′ = 1 − 𝑥𝑦 , 𝑦(0) = −1
(b) 𝑦 ′ = 𝑥 + 𝑦 2 , 𝑦(0) = 1
(c) 𝑦 ′ = 𝑥 2 + 𝑦 2 , 𝑦(0) = 1
(d) 𝑦 ′ = sin 𝑥 + 𝑒 −𝑥 , 𝑦(0) = 0
(e) 𝑥𝑦 ′ = 𝑦 2 + 𝑦, 𝑦(1) = −2
𝑥2
(f) 𝑦 ′ = , 𝑦(0) = 0
𝑦 2 +1

(3) Solve the initial value problems using Euler’s method, ℎ = 0.2
(a) 𝑦 ′ = 1 − 𝑥𝑦 , 0 < 𝑥 < 1, 𝑦(0) = −1
(b) 𝑦 ′ = 𝑥 + 𝑦 2 , 0 < 𝑥 < 1, 𝑦(0) = 1
(c) 𝑦 ′ = 𝑥 2 + 𝑦 2 , 0 < 𝑥 < 1, 𝑦(0) = 1
(d) 𝑦 ′ = sin 𝑥 + 𝑒 −𝑥 , 0 < 𝑥 < 1, 𝑦(0) = 0
(e) 𝑥𝑦 ′ = 𝑦 2 + 𝑦, 1 < 𝑥 < 2, 𝑦(1) = −2
𝑥2
(f) 𝑦 ′ = , 0 < 𝑥 < 1, 𝑦(0) = 0
𝑦 2 +1

Dr. Shaaban Abd El-Gaid Page | 6

You might also like