From: Gaurav Khare on
Hi everyone,
I want to get the solution of this non linear differential equation in MATLAB.

d2A(t)+24.815*A+1714.56*A(t)^3+42.13*A(t)^2=.51*cos(w*t)

A(0)=0
d(A)=0
w=5
d2 = double derivative with respect to time
d= first derivative with respect to time.

somebody please provide me with the solution code...thank you...
From: Gaurav Khare on
Can somebody at least tell me how to get an approx solution for this equation
I want to draw a plot of A versus time.
It's urgent...

"Gaurav Khare" <gkhare.iitkgp(a)gmail.com> wrote in message <hrf8l4$hf8$1(a)fred.mathworks.com>...
> Hi everyone,
> I want to get the solution of this non linear differential equation in MATLAB.
>
> d2A(t)+24.815*A+1714.56*A(t)^3+42.13*A(t)^2=.51*cos(w*t)
>
> A(0)=0
> d(A)=0
> w=5
> d2 = double derivative with respect to time
> d= first derivative with respect to time.
>
> somebody please provide me with the solution code...thank you...
From: Torsten Hennig on
> Can somebody at least tell me how to get an approx
> solution for this equation
> I want to draw a plot of A versus time.
> It's urgent...
>
> "Gaurav Khare" <gkhare.iitkgp(a)gmail.com> wrote in
> message <hrf8l4$hf8$1(a)fred.mathworks.com>...
> > Hi everyone,
> > I want to get the solution of this non linear
> differential equation in MATLAB.
> >
> >
> d2A(t)+24.815*A+1714.56*A(t)^3+42.13*A(t)^2=.51*cos(w*
> t)
> >
> > A(0)=0
> > d(A)=0
> > w=5
> > d2 = double derivative with respect to time
> > d= first derivative with respect to time.
> >
> > somebody please provide me with the solution
> code...thank you...

Write your equation as a system of two first-order
differential equations
y' = z
z' = -24.815y - 1714.56y^3 - 42.13y^2 + 0.51*cos(w*t)

y(0) = z(0) = 0

and use ODE45 to solve.

Best wishes
Torsten.