Professional Documents
Culture Documents
Course ID EEE-314L
Student ID 1711396
Experiment No: 04
Experiment Name: Study on solving Differential Equations.
Objectives:
➢ To get introduced with basic MATLAB commands to solve Differential Equations.
➢ Perform different operations on given examples.
➢ Verify MATLAB output of the operations with the theoretical hand calculations.
Apparatus:
➢ MATLAB
MATLAB Commands:
Operations Commands
‘y’ is the differential
dsolve(y) equation.
Differential Equation Solver
dsolve(y, cond) ‘cond’ is the initial or
boundary condition
Prettyprint symbolic ‘Y’ is the solution for
pretty(Y)
expressions equation ‘y’
Plotting Differential Equation ‘Y’ is the solution for
ezplot (Y, [min, max])
solution equation ‘y’
Experiments:
Write down appropriate MATLAB code to solve the following Differential Equations:
• Differential Equation
𝑑𝑦
a. = −𝑎𝑦
𝑑𝑡
𝑑𝑦
b. = −𝑎𝑦 𝑎𝑛𝑑 𝑦(0) = 1
𝑑𝑡
𝑑2𝑦
c. = −𝑎2 𝑦
𝑑𝑡2
𝑑𝑦 𝑥𝑦 − 𝑦 2
d. =
𝑑𝑥 𝑥2
𝑑𝑦 𝑦 𝑦
e. = 𝑡𝑎𝑛( ) +
𝑑𝑥 𝑥 𝑥
Result Analysis:
Discussion:
Write down the procedure you followed to do the experiments(in short) and the result analysis.
For this experiment, we studied the process of solving ordinary differential equation with the
help of MATLAB and further compared the values of MATLAB results with that of the
theoretical ones. The MATLAB command that was used for solving the differential equation is
dsolve (equation, initial conditions). To show the value of the root or solution, we used another command
which is pretty(root). The values of MATLAB results and that of theoretical ones are not entirely identical
for all the experiment problems. However, the solution of equation a and b seems to match completely with
that of the theoretical ones. For theoretical calculation, we used our knowledge of MAT221 course to solve
differential equations which have been shown in detail in calculation part.
LAB REPORT RUBRICS
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.
Sub Total 80
Deduction for late
submission / any
other issue
Total (100%)
10% of Total