You are on page 1of 6

Kuwait University

College of Engineering & Petroleum


Spring 2014

Numerical Methods for Engineers (ENG 308)

Final Exam

Student Name: …………………………………………………………………

Student ID: ……………………………………………………………………

 Show all your work; No credit will be given for providing ONLY final
answers
 In all your calculation retain 4 significant figures
 Only one answer is allowed per problem

Problem Points Out Of

1 25
2 25
3 25
4 25
Final score 100
Problem # 1 (25 points)

Solve the following non-linear system using Newton-Raphson method.

15𝑥 + 𝑦 2 − 4𝑧 = 13

𝑥 2 + 10𝑦 − 𝑧 = 11

𝑦 2 − 25𝑧 = −22

Start with x0 = 0 , y0 = 0 and z0 = 0. Show two iterations.

Solution:

First iteration

𝑥1
𝑦1
𝑧1

Second iteration

𝑥2
𝑦2
𝑧2
Problem # 2 ( 25 points)

a) The velocity of a motorcycle in meter/second is given as a function of time in seconds in


the following table

t (s) 0 1 3 5 8 11 14
V(m/s) 0 2 4 8 16 32 64

If the motorcyclist is moving on a straight road, what is the total distance traveled? (Use the most
accurate methods to determine the total distance).
14
Total distance = ∫ V dt
0

Solution
b) For the following integral:
5
𝐼 = ∫ (𝑥𝑒 𝑥 − 𝑥) 𝑑𝑥
0

Find

I. The value of ‘I’ using trapezoidal rule and h=5


II. The value of ‘I’ using 5 points Simpson’s 1/3 rule

Solution

Trapezoidal rule and h=5


I

Simpson’s 1/3 rule with 5 points


I
Problem # 3 (25 points)

Solve the following ODE over the interval from x = 1 to 3 using Huen’s methods

𝑑2 𝑦 𝑑𝑦
+ + sin( 𝑦) = 0
𝑑𝑥 2 𝑑𝑥
Where

𝑦(1) = 1

𝑦 / (1) = −3

ℎ=1

Solution
Problem # 4 (25 points)

Solve the following ODE using finite difference method

𝑑2 𝑦
= 6𝑦
𝑑𝑥 2
𝑑𝑦
Knowing that 𝑑𝑥 (0) = 0 and 𝑦(1) = 1

Step size, 𝛥𝑥 = 0.2

Find 𝑦’s for the value of 𝑥 between 0 and 1 (USE two iterations of Gauss-Seidal (G.S)
method to solve your matrix)

Solution

First iteration

𝑦(x=0.2)
𝑦(x=0.4)
𝑦(x=0.6)
𝑦(x=0.8)

Second iteration

𝑦(x=0.2)
𝑦(x=0.4)
𝑦(x=0.6)
𝑦(x=0.8)

You might also like