0% found this document useful (0 votes)
33 views

Name: Student Id:: Eee 424: Numerical Methods Assignment On Experiment 2 (Solution To Odes)

This document provides instructions for an assignment on solving ordinary differential equations (ODEs) numerically using MATLAB. The assignment involves: 1) Solving an ODE using the Runge-Kutta fourth-order method and plotting the solution. 2) Commenting on how the solution curve varies with the step size h. 3) Solving a system of ODEs and plotting the solutions. 4) Solving a boundary value problem using LU decomposition and Thomas algorithm. 5) Devising a method to solve an ODE where the constant a is unknown. 6) Using the proposed method to solve an example ODE.

Uploaded by

EhaqueN
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views

Name: Student Id:: Eee 424: Numerical Methods Assignment On Experiment 2 (Solution To Odes)

This document provides instructions for an assignment on solving ordinary differential equations (ODEs) numerically using MATLAB. The assignment involves: 1) Solving an ODE using the Runge-Kutta fourth-order method and plotting the solution. 2) Commenting on how the solution curve varies with the step size h. 3) Solving a system of ODEs and plotting the solutions. 4) Solving a boundary value problem using LU decomposition and Thomas algorithm. 5) Devising a method to solve an ODE where the constant a is unknown. 6) Using the proposed method to solve an example ODE.

Uploaded by

EhaqueN
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

EEE 424: Numerical Methods

Assignment on Experiment 2 (Solution to ODEs)

Name:
Student ID:
Instructions

Use this page as the top sheet of your assignment report


Discussions, Q/A, Analysis etc must be hand written. Only codes and plots can be printed
Apart from graphs and plots that absolutely need color markings, nothing should be
printed in color
Use both sides of A4 paper to complete the report
Any action of copying will disqualify your submission
The assignment must be submitted by 24 May 2015

1. (Lab Task) Write a MATLAB code for solving the ODE  +  = 6(1  ) with
0 = 0 and 0 = 1 for 0  50 using RK-4 method. Obtain the y vs. x plot.
2. Change the value of h in problem 1 and see how the resulting curve varies. Comment on
your results.
3. Write a MATLAB code to solve the following system of differential equations for
1  . Give the corresponding plots.
1
 
+
=0

1

 
= 6

with the boundary conditions 1 = 0,  1 = 1,  1 = 1 and 1 = 2,  1 = 3
4. (Lab Task) Write a MATLAB code to solve the boundary value problem  2
2 = 0 with 0 = 1, 1 = . Give the corresponding plot. Use LU decomposition
by Thomas algorithm followed by forward and backward substitution to solve the linear
system of equation you get.
5. (Analytical) Assume a differential equation of the form

= (, , ) where a is an

unknown constant. The boundary values are specified   =  and   =  .
Devise a method of solving the equation. Mention the limitations of your method (if any).
6. Use your method in problem 5 to solve the ODE  =  +  with 1 = 1.021 and
3 = 12.606 for 1  3.

You might also like