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 Comment

dsolve('D2y + y = sinx','x')
y = sinx + C11*cos(x) + C12*sin(x)
wrong answer :(

Answers (1)

This question is closed.

Asked:

on 21 Dec 2012

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!