You are on page 1of 10

Independent University, Bangladesh

School of Engineering and Computer Science


Department of Electrical & Electronic Engineering

Course ID EEE-314L

Course Title Numerical Technique Lab

Student Name MD AKIF RAHMAN

Student ID 1711396

Experiment No: 06
Experiment Name: Study on solving Differential Equations using 4th order Runge-Kutta method.
Objectives:
➢ To get introduced with basic MATLAB commands to perform Runge-Kutta Method.
➢ Perform Eulers Method on given examples.
➢ Verify MATLAB output with the theoretical hand calculations.

Apparatus:
➢ MATLAB

Theory: (In Short)


• Runge-Kutta Method
Runge–Kutta method is an effective and widely used method for solving the initial-value problems of
differential equations. Runge–Kutta method can be used to construct high order accurate numerical method by
functions' self without needing the high order derivatives of functions.
For the differential equation y=f (t, y) where y(t0) = y0 the Runge-Kutta of fourth-order method (RK4)
method is defined using the following recursion formula:
MATLAB Code:
Code for Single N points

Experiments:
Write down appropriate MATLAB code to solve the following Equations using 4th order Runge-Kutta Method
(time = 0 to 3) and pints N = 4, 8, 12

• Equations
a. 𝑦 = 2𝑥 3
N= 4
N=8
N=12
b. 𝑦 = 𝑐𝑜𝑠(𝑥 2 )
N=4
N=8
N=12
Calculations:
Do the handwritten calculation for all the equations when N = 4.

Discussion:
Write down the procedure you followed to do the experiments (in short) and short result analysis.

For our experiment, we were given


X0 = 0
X=3
N=4,8,12

In MATLAB we pre-defined the values of x, y for initial values and the range of x with step size, then we
opted for a FOR loop to continue calculation from N=0 to N=4, now MATLAB does works in matrix, so
we had to write N=1 to N=4, N=8, N=12.
Using the dydx function we found the first derivative and plot function for making the graphs.
LAB REPORT RUBRICS

Student Name MD AKIF RAHMAN Student ID 1711396


Course Title Numerical Technique Lab Course Code EEE 314L
Term Spring Summer Autumn Year 2022
Experiment Study on solving Differential Equations using 4th Experiment
06
Name order Runge-Kutta method. Number
Submission
27-July,2022 Due Date 27-July,2022
Date
Tick () on the appropriate box (anyone from 1 to 5)
Rubrics (weight) Accomplished Intermediate Developing Intermediate Novice
(5) (4) (3) (2) (1)
Understanding Defined experiment Intermediate Defined Intermediate Defined
experiment’s requirements and between experiment between novice experiment
requirements assume circuit developing requirements and and developing. requirements and
(25%) specifications, if any, and assume circuit assume circuit
properly. accomplished. specifications, if specifications, if
any, moderately. any, poorly.

Building Circuit Conducted Intermediate Conducted Intermediate Conducted


and conducting experiment properly between experiment between novice experiment
experiment (25%) by building developing & moderately by and developing. poorly by
simulation circuit accomplished. building building
using required simulation circuit simulation circuit
specification. using required using required
specification. specification.

Result and Analyzed and Intermediate The results are Intermediate The results are
analysis (25%) interpreted the results between analyzed to some between novice analyzed poorly
properly using the developing extent according and developing. due to
converter parameters. and to specified incomplete
accomplished. requirements. simulation.

Remarks / Answered the given Intermediate Answered Intermediate Answered the


Answering questions correctly between partially the given between novice given questions
Question (25%) and describe the developing questions and and developing. incorrectly and
remarks properly. and describe the describe the
accomplished. remarks remarks poorly.
moderately.

Sub Total 80
Deduction for late
submission / any
other issue
Total (100%)
10% of Total

You might also like