Docsity

Worksheet Numerical Methods, Exercises of Engineering Mathematics

Toggle sidebar
bg1
Department of Mathematics and Computer Science
Engineering Mathematics III
Worksheet #3 (March 09, 2021)
Lecturer: Mohsen Aghaeiboorkheili Topic: Numerical Methods for IVP’s
In this worksheet, there will be some problems related to numerical methods(for solving IVP’s) topic
that already discussed in the week 3 of the class. Students are encouraged to practice and solve these
problems in term of improving their ability in this topic. This worksheet will not be evaluated and it is
just for acquaintance of students with future quizzes. If you have any question regarding this worksheet,
just come to my room in the MCS 221B.
Problem 1
Use Euler’s method to approximate the solutions for each of the following initial-value problem:
y0=xe3x−2y, 0≤x≤1, y(0) = 0, h = 0.5.
Solution
Problem 2
The actual solution to the initial-value problem in problem 1 are given here. Compare the actual
error at each step to the error bound:
y(x) = 1
5xe3x−1
25e3x+1
25e−2x.
Solution
Problem 3
Use Euler’s method to approximate the solution for each of the following initial-value problem:
y0=1 + x
1 + y,1≤x≤2, y(1) = 2, h = 0.5.
The actual solution to the initial-value problem is given here. Compare the actual error at each
step to the error bound:
y(x) = px2+ 2x+ 6 −1.
Solution
1
pf3

Partial preview of the text

Download Worksheet Numerical Methods and more Exercises Engineering Mathematics in PDF only on Docsity!

Department of Mathematics and Computer Science

Engineering Mathematics III

Worksheet #3 (March 09, 2021)

Lecturer: Mohsen Aghaeiboorkheili Topic: Numerical Methods for IVP’s

In this worksheet, there will be some problems related to numerical methods(for solving IVP’s) topic that already discussed in the week 3 of the class. Students are encouraged to practice and solve these problems in term of improving their ability in this topic. This worksheet will not be evaluated and it is just for acquaintance of students with future quizzes. If you have any question regarding this worksheet, just come to my room in the M CS 221 B.

Problem 1 Use Euler’s method to approximate the solutions for each of the following initial-value problem:

y′^ = xe^3 x^ − 2 y, 0 ≤ x ≤ 1 , y(0) = 0, h = 0. 5.

Solution

Problem 2 The actual solution to the initial-value problem in problem 1 are given here. Compare the actual error at each step to the error bound:

y(x) =

xe^3 x^ −

e^3 x^ +

e−^2 x.

Solution

Problem 3

Use Euler’s method to approximate the solution for each of the following initial-value problem:

y′^ =

1 + x 1 + y

, 1 ≤ x ≤ 2 , y(1) = 2, h = 0. 5.

The actual solution to the initial-value problem is given here. Compare the actual error at each step to the error bound: y(x) =

x^2 + 2x + 6 − 1.

Solution

Numerical Methods for IVP’s – Worksheet #3 2

Problem 4 Use the Heun’s method to approximate the solutions to each of the following initial-value problems, and compare the results to the actual values:

y′^ = 1 + (x − y)^2 , 2 ≤ x ≤ 3 , y(2) = 1, h = 0. 5 ,

actual solution: y(x) = x +

1 − x

Solution

Problem 5

Use Heun’s method to approximate the solution for each of the following initial-value problem:

y′^ =

1 + x 1 + y , 1 ≤ x ≤ 2 , y(1) = 2, h = 0. 5.

The actual solution to the initial-value problem is given here. Compare the actual error at each step to the error bound: y(x) =

x^2 + 2x + 6 − 1.

Solution

Problem 6 Use the Runge-Kutta method of order four to approximate the solutions of the following initial-value problem, and compare the results to the actual values:

y′^ = −xy + 4 x y

, 0 ≤ x ≤ 1 , y(0) = 1, h = 0. 1 ,

actual solution: y(x) =

4 − 3 e−x^2.

Solution

Problem 7 Use the Runge-Kutta method of order four to approximate the solutions of the following initial-value problem, and compare the results to the actual values:

y′^ = −(y + 1)(y + 3), 0 ≤ x ≤ 2 , y(0) = − 2 , h = 0. 2 ,

actual solution: y(x) = −3 +

1 + e−^2 x^

Solution