Solve Differential Equations By Using MATLAB
- Country :
Australia
Q1).
Solve the following simultaneous differential equations by using MATLAB and sketch the solution graphically
d^2;x/dt^2+4x-y=(t^2;+1)^2;e^3t ; x(0)=1, x'(0) =?1
d^2y /dt^2-2y+7x=sin^2t:y(0)=0, y'(0)=2
Q2).
For the first-order differential equation
dy /dt = cos 2t+ sin 3t: y(0)=1
Apply Runge-Kutta method of order four to approximate the solution of the differential equation at y(1.0) on MATLAB Taking step size h = 0.1, 0.01, 0.001 also compare your results with actual solution and depicts it graphically.
Actual Solution is y(t)=1/2sin 2t-1/3cos 3t + 4/3