You are on page 1of 3

Numerical Solution of Ordinary Differential Equation

Q1) Solve the following ODE:

𝑑𝑦
= 4𝑦 − 1 , y(0) = 1 with step size (h = 0.1) , give results up to y(0.4)
𝑑𝑥

a) Using Euler's Method


b) Heun's Method (Modified Euler's Method)

Q2) Solve the following ODE:

𝑑𝑦
= 𝑦2 + 1 , y(0) = 0 with step size (h = 0.1) , give results up to y(0.4)
𝑑𝑥

a) Using Euler's Method


b) Heun's Method (Modified Euler's Method)

Q3)
Consider the ODE:

𝑑𝑦 𝑦
= 𝑥+1 , y(0) = 2
𝑑𝑥

Use Heun's method and a step size h = 0.2 to approximate y(0.6)

Q4) Given the following ODE, find the value y(0.5) using fourth order Runge-Kutta method
(RK4)
(use a step size, h = 0.5)
𝑑𝑦
= (𝑥 + 𝑦)sin(𝑥𝑦) , y(0) = 5
𝑑𝑥
Q5) Consider the differential equation:

𝑑𝑦
= sin(𝑦) , y(0) = 1
𝑑𝑥

using a step size h = 0.1, compute y(0.3) by using Euler's method.

Q6) Given the following ODE, find the value y(1.5) using fourth order Runge-Kutta method
(RK4)
(use a step size, h = 1.5)
𝑑𝑦
= 𝑦2 − 𝑥2 , y(0) = -1
𝑑𝑥

Q7) Consider the differential equation:

𝑑𝑦 𝑦−𝑥
= 𝑦+𝑥 , y(0) = 1
𝑑𝑥

using a step size h = 0.1, compute y(0.3) by using Euler's method.

Q8)
Consider the ODE:

𝑑𝑦 𝑦
= 6 − 2 𝑥 , y(3) = 1
𝑑𝑥

Use Heun's method and a step size h = 0.2 to approximate y(3.6)

Q9) Given:
𝑑𝑦
= (𝑥 + 𝑦)sin(𝑥𝑦) , y(0) = 5
𝑑𝑥

find the approximate value of y when x = 0.2 using Runge-Kutta fourth order method
(RK4)
(put h = 0.2)

Q10) Use Runge-Kutta fourth order to find the value of y when x = 0.6 given that h = 0.6 and:

𝑑𝑦
= 𝑥 + 2𝑦 , y(0) = 0
𝑑𝑥
Q11)
Consider the ODE:

𝑑𝑦
(1 + 𝑦) 𝑑𝑥 = 𝑥 , y(0) = 0

Use a step size h = 0.2 to approximate y(0.6) using:

a) Euler's Method
b) Heun's Method

Q12) Use Runge-Kutta fourth order to find the value of y when x = 0.6 given that h = 0.6 and:

𝑑𝑦
= 𝑦 − 𝑥 , y(0) = 2
𝑑𝑥

Q13)
Consider the ODE:

𝑑𝑦
= 2𝑦 − 𝑦 2 , y(0) = 1
𝑑𝑥

Use a step size h = 0.05 to approximate y(0.15) using:

a) Euler's Method
b) Heun's Method

You might also like