What is the solution of differential equations ?

Hi all
How can I solve in matlab ;
D2y + y = sinx
answer y = c1*cosx + c2*sinx -x*cosx/2
Please Help me.

1 comentario

4OsT
4OsT el 21 de Dic. de 2012
dsolve('D2y + y = sinx','x')
y = sinx + C11*cos(x) + C12*sin(x)
wrong answer :(

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 21 de Dic. de 2012
sol=dsolve('D2y + y = sin(x)','x')

La pregunta está cerrada.

Preguntada:

el 21 de Dic. de 2012

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by