Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
result.
d2 x
dx
'
+2 +2 x=sin 2 t , x ( 0 ) =2 , x ( 0 )=3
2
dt
dt
Software Used:-MATLAB/SIMULINK.
Background Theory & Concept:A differential
equation is
a mathematical equation that
relates
some function with its derivatives. In applications, the functions usually
represent physical quantities, the derivatives represent their rates of
change, and the equation defines a relationship between the two.
There are different types of differential equations like Eg:
A. Ordinary differential equations: Equation having one independent
variable and its
derivatives.
Eg:
dy
+ P ( x ) y=Q ( x ) . y n
dx
u ( x , y )=f ( y )
dx
+kx =0
dt
du 2
=u +4
dx
yh ( x )
y p (x)
(x) .
dy
=xy with
dx
y ( 0 )=0.
So while solving the above differential equation given above we go for the
highest order in the D.E and it is 1 (First order D.E) here. So we separate
the variables using the variable separable method to get the result.
dy
=xy
dx
Solution :
1 dy
y dx dx= xdx
1
dy= xdx
y
=
x
=ln y= 2 + c
2
=y=
Ae
x
2
, where
A=e
Applying
the
initial
condition
y ( 0 )=0 ,
we
get
x=0, y=1.
And
x
2
Here
d2 x
dx
+2 +2 x=sin 2 t , x ( 0 ) =2 , x ' ( 0 )=3
2
dt
dt
2t
and that to
dx
dt
which we give to a GAIN of 2 and then to the second input of the ADD
block with a - sign.
Simulink Model:-
x ' ( 0 )=3
x ( 0 )=2
and
and run
Results:-