Professional Documents
Culture Documents
تمارين الرياضيات
إعداد
دعاء أحمد عبدالوهاب حماد.د
تامر محمد راجح.د
مدرس الرياضيات الهندسية
بكلية الهندسة ببنها
جامعة بنها
الفرقة الثانية
2018-2017
[2] Approximate 3 – iterative solution for the following system of linear equations by using Gauss
– Seidel method with zero initial values:
−2𝑥 + 𝑦 + 4𝑧 = 5,
5𝑥 − 𝑦 + 2𝑧 = 10,
𝑥 + 4𝑦 + 2𝑧 = 1,
(i) How many steps are needed for the solution to be accurate up 4 decimals by using Ritz
– Jacobi method?
(ii) How many steps are needed for the solution to be accurate up 4 decimals by using
Gauss – Seidel method?
[4] Use Gauss – Seidel method with zero initial values to find five iterations of the following
system of linear equations:
𝑥 − 𝑦 + 7𝑧 = 8,
4𝑥 + 𝑦 − 2𝑧 = −3,
5𝑥 + 20𝑦 + 10𝑧 = 5,
(i) How many steps are needed for the solution to be accurate up 2 decimals by using Ritz
– Jacobi method?
(ii) How many steps are needed for the solution to be accurate up 2 decimals by using
Gauss – Seidel method?
[6] Use Gauss – Seidel method with zero initial values to find 3 iterations of the following system
of linear equations:
𝑦 − 𝑧 = −1,
−𝑥 + 𝑦 = 1,
𝑥 − 2𝑦 + 𝑧 = 0,
(i) How many steps are needed for the solution to be accurate up 2 decimals by using Ritz
– Jacobi method?
(ii) How many steps are needed for the solution to be accurate up 2 decimals by using
Gauss – Seidel method?
[7] Use Gauss – Seidel method with zero initial values to find 3 iterations of the following system
of linear equations:
4𝑦 − 16𝑧 = −8.94146,
−16𝑥 + 4𝑦 = −33.74459,
4𝑥 − 16𝑦 + 4𝑧 = −11.56627,
How many steps are needed for the solution to be accurate up 4 decimals by using Ritz – Jacobi
method?
[8] Use Gauss – Seidel method with (1.04, 1.17, 1.39) initial values to find 3 iterations of the
following system of linear equations:
20𝑦 − 49𝑧 = −44.7362,
−10.14286𝑥 + 12𝑦 = 3.4881,
12𝑥 − 31𝑦 + 20𝑧 = 4,
How many steps are needed for the solution to be accurate up 3 decimals by using Ritz – Jacobi
method?
[9] Solve the following system of linear equations by using Ritz – Jacobi method (Find only
three iterations).
−2𝑥1 + 3𝑥2 + 𝑥3 = 9
3𝑥1 + 4𝑥2 − 5𝑥3 = 0
𝑥1 − 2𝑥2 + 𝑥3 = −4
[10] Solve the following system of linear equations by using Gauss – Seidel method (Find only
three iterations).
2 1 0 0 𝑥1 4
[1 2 1 0] [𝑥2 ] = [ 8 ]
0 1 2 1 𝑥3 12
0 0 1 2 𝑥4 11
[11] Solve the following system of linear equations by using the best iterative method to approximate the
solution. (Find only four iterations).
12 𝑥1 + 3𝑥2 − −5𝑥3 = 1
𝑥1 + 5𝑥2 + 3𝑥3 = 28
3𝑥1 + 7𝑥2 + 13𝑥3 = 76
[12] The electrical network shown can be viewed as consisting of three loops. Applying
Kirchhoff’s law (Σ voltage drops= Σ voltage sources) to each loop yields the following equations
for the loop currents 𝑖1 , 𝑖2 𝑎𝑛𝑑 𝑖3 :
5i1 + 15(i1 − i3 ) = 220 V
R(i2 − i3 ) + 5i2 + 10i2 = 220 V
20i3 + R(i3 − i2 ) + 15(i3 − i1 ) = 220 V
Compute the three loop currents for 𝑅 = 5,10 𝑎𝑛𝑑 20Ω.
[13] Solve the following system of linear equations by using Gauss – Seidel method (Find only
three iterations).
10 5 −30 2 4 𝑥1 10
−5 16 7 2 −1 𝑥2 35
20 −3 12 1 𝑥
−2 3 = 15
1 1 1 −15 1 𝑥4 −25
[ 2 −3 2 ]
−3 20 5 [ 𝑥 ] [ 14 ]
[2] Solve the nonlinear equation 𝑒 𝑥 − 4𝑥 2 = 0 in the interval [0,1]. (Approximate only 3 –
iterative steps).
[3] Solve the nonlinear equation 3𝑥 − cos(𝑥) = 0 by using fixed-point iterative method with
𝑥0 = 0.5.
[7] Find one positive root of the equation 𝑥 2 − 2𝑥 − ln 𝑥 = 0, by using Newton-Raphson method
(correct to four decimal places), discuss the convergence condition.
[8] Use a suitable iterative method to find the positive root of the nonlinear equation:
𝑥 – 𝑠𝑖𝑛 𝑥 = 0.25, correct to three decimal places and take 𝑥0 = 1.2.
[9] Obtain the solution for the following nonlinear equation 𝑥 + 𝑥 𝑠𝑖𝑛 𝑥 = 1 by using:
(i) Newton-Raphson method (correct to 3 decimal places)
(ii) Fixed-point iterative meyhod (correct to 3 decimal places)
[10] Use Newton-Raphson method to find a root of 𝑒 −𝑥 = 𝑥, take the initial point 𝑥0 = 1, stop
after three iterations.
[12] Obtain the solution for the following nonlinear equation of 𝑥 3 − 7𝑥 + 1 = 0 by using:
(i) Newton-Raphson method (correct to 3 decimal places)
(ii) Fixed-point iterative meyhod (correct to 3 decimal places)
[2] Find the least – square straight line that fits the data in the following table:
𝑥 0 1 3 4 5
𝑦 3 5 9 11 13
[3] Fit the data in the following table by a function of the form 𝑦 = 𝑎 𝑒 𝑏𝑥
𝑥 –2 –1 0 2 4
𝑦 1 2 4 6 12
1
[5] Fit the data in the following table by a function of the form 𝑦 = 2+ 𝑎 𝑒 𝑏𝑥 and find 𝑦(5).
𝑥 –4 –2 0 2 4
1 1 1 1 1
𝑦
3 5
6 8 10
1
[6] Fit the data in the following table by a function of the form 𝑦 = 2+ 𝑎( 𝑏𝑥 ) and find 𝑦(5).
𝑥 –4 –2 0 2 4
1 1 1 1 1
𝑦
3 5
6 8 10
[8] Fit the following data to the form 𝑦 = 𝑎0 + 𝑎1 𝑥 3 and find y(0) :
[2] Interpolate the data in the table by using the Lagrange interpolation. Find the value of x if y(x)=0.
x 1 5 7
y(x) 2 10 5
[3] For the following data, Interpolate a polynomial to find y(3.5) and y(18.5). Discuss the
accuracy at the interpolated point if |𝑦 (2𝑖) (𝑥)| < 10−𝑖 , ∀ 𝑥 ∈ [0,20], 𝑖 = 1,2,3, ⋯.
x 0 4 8 12 16 20
y 8 7 5 2 3 4
[4] Interpolate the following data than find 𝑦(1) and the error at 𝑥 = 0.5 if 𝑦 (𝑖) < 10−𝑖
x 0 2 4 6 8 10
y(x) 1 0 1 3 5 6
[5] For the following data, Interpolate a polynomial to find y(0.2) and y(3.5). Discuss the accuracy
at the interpolated point if |𝑦 (6) (𝑥)| < 0.01.
x 0.5 1 1.5 2 2.5 3
y 1 4 5 8 7 6
[6] For the data in the following table Interpolate a polynomial to find y(0):
x 0.5 1 1.5 2 2.5 3
y 3 4 6 9 8 7
1 1
[7] If 𝑦(2) = 𝑦(4) = 𝑦(8) = 2 𝑦 ′ (2) = 𝑦 ′′ (2) = 3 𝑦 ′′′ (2) = 2 𝑦 ′ (4) = 2 𝑦 ′′ (4) = 20, use the
Hermite interpolation to find 𝑦(1). Discuss the accuracy at the interpolated point if
|𝑦 (3𝑖−1) | ≤ 10−2𝑖 , ∀ 𝑥 ∈ [2,8], 𝑖 = 1,2,3, ⋯.
[8] For the following data, use the Hermite interpolation to find 𝑦(0.2). Discuss the accuracy at
the interpolated point if |𝑦 (3𝑖) | ≤ 8−𝑖 , ∀ 𝑥 ∈ [0,2], 𝑖 = 1,2,3, ⋯.
x 0 1 2
y 10 26 12
𝑦′ 45 -8 11
[9] For the following data, use the Hermite interpolation to find 𝑦(1). Discuss the accuracy at the
interpolated point if |𝑦 (3𝑖) | ≤ 10−𝑖 , ∀ 𝑥 ∈ [0,3], 𝑖 = 1,2,3, ⋯.
x 0 2 3
y 12 12 12
𝑦′ 12 12 12
𝑦 ′′ --- --- 12
′′′
𝑦 --- --- 12
1 1
[10] If 𝑦(2) = 𝑦(4) = 𝑦(8) = 2 𝑦 ′ (2) = 𝑦 ′′ (2) = 3 𝑦 ′′′ (2) = 2 𝑦 ′ (4) = 2 𝑦 ′′ (4) = 60, use
the Hermite interpolation to find 𝑦(1). Discuss the accuracy at the interpolated point if
|𝑦 (3𝑖−1) | ≤ 10−2𝑖 , ∀ 𝑥 ∈ [2,8], 𝑖 = 1,2,3, ⋯.
1 1
[4] Use Romberg-Stefiel to evaluate ∫0 𝑑𝑥 with 8-subintervals.
1+𝑥 3
1 2
[5] Evaluate ∫0 𝑒 −𝑥 𝑑𝑥, by using 3/8 rule, take n=9.
5 1
[6] Evaluate ∫2 (1+√ln 𝑥) 𝑑𝑥 by using Romberg Stefiel method with four subintervals, then
find the absolute error if the exact solution of the above integration is 1.434817821.
4 4
[8] Evaluate ∫0 (𝑥 2 +1) 𝑑𝑥 by using Simpson’s rule and Romberg Stefiel method with four
subintervals.
[2] Use Runge – Kutta of second order approximation method to obtain 𝑦(1.2) and 𝑦(1.3) if
ln 𝑥
𝑥 2 𝑦 ′ + 𝑥𝑦 − 1 = 0 and 𝑦(1) = 0, then find the absolute error if the exact solution is 𝑦(𝑥) = 𝑥
[3] Solve the initial value problem 𝑦 ′ + 2 = 𝑥 2 𝑦 and 𝑦(0) = 1 to find 𝑦(0.4) by using
(i) Runge – Kutta of second order (RK2) approximation method.
(ii) Runge – Kutta of fourth order (RK4) approximation method.
[4] Find y(1.1) by Euler 1 method for the differential equation 𝑦 ′ = 3𝑥 + 𝑦 2 and 𝑦(1) = 1.2.
[5] Solve the 2 – points boundary value problem: 𝑦 ′′ + 2(2 − 𝑥)𝑦 ′ = 2(2 − 𝑥), 𝑦(0) = −1
and 𝑦(4) = 3, by using the finite difference method ( Take ℎ = 1).
(Find only three iterations of Gauss – Seidel method with zero initial values)
[6] Find the solution of y(0.2) and y(0.4) for the IVP 𝑦 ′ = 𝑥 + 𝑦 2 and 𝑦(0) = 1 by using RK2 and
RK4.
[7] Mention only the equations for solving the 2 – points boundary value problem:
𝑥 𝑦 ′′ − 𝑦 ′ = 𝑦, 𝑦(0) = 1 and 𝑦(1) = 2, by using the finite difference method ( Take ℎ =
0.2).
[9] Mention only the equations for solving the 2 – points boundary value problem for 𝑦 ′′ −
𝑥𝑦 ′ − 𝑦 = 0 and 𝑦(0) = 𝑦(2) = 3 to approximate a system of y(0.5), y(1) and y(1.5).
[3] Use the explicit method to solve the heat equation 𝑢𝑡 = 𝑢𝑥𝑥 for 𝑥𝜖[0,1], subject to 𝑢(0, 𝑡) =
𝑢(1, 𝑡) = 0 and 𝑢(𝑥, 0) = 𝑥(𝑥 − 1). Take ℎ = 0.1, and 𝑘 = 0.001 to find the values of
𝑢(0.1 𝑖, 0.002), 𝑖 = 1,2,3, ⋯ ,9.
1
[4] Drive the condition of convergence of the explicit method (𝑟 ≤ 2) to solve the heat equation
𝑢𝑡 = 𝑢𝑥𝑥 .
[5] Use Crank – Nicholson method (implicit method) to solve the heat equation 𝑢𝑡 = 𝑢𝑥𝑥 for
1
2𝑥, 0≤𝑥≤2
𝑥𝜖[0,1], subject to 𝑢(0, 𝑡) = 𝑢(1, 𝑡) = 0 and 𝑢(𝑥, 0) = { 1
2(1 − 𝑥), <𝑥≤1
2
Take ℎ = 0.1, and 𝑘 = 0.01 to find the values of 𝑢(0.1 𝑖, 0.01), 𝑖 = 1,2,3, ⋯ ,9.
(Find only two iterations of Gauss – Seidel method with zero initial values)
if u ( x, y ) 0 on the boundary of x 1 y 1