How to plot Homogeneous solution and Particular integral seperately of a second order differntial equation using ode45
4 views (last 30 days)
Alan Stevens on 16 Apr 2022
ode45 just solves first order equations, so turn your second order equation into two first order ones, like so:
y' = v
v' = -4*y+15.6(cos(20t)-cosh(20t)-1.5(sin(20t)-sinh(20t)))
Look up help on ode45 to see how it solves these.