Info

This question is closed. Reopen it to edit or answer.

What is the solution of differential equations ?

1 view (last 30 days)
4OsT
4OsT on 21 Dec 2012
Closed: MATLAB Answer Bot on 20 Aug 2021
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
4OsT
4OsT on 21 Dec 2012
dsolve('D2y + y = sinx','x')
y = sinx + C11*cos(x) + C12*sin(x)
wrong answer :(

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 21 Dec 2012
sol=dsolve('D2y + y = sin(x)','x')

This question is closed.

Community Treasure Hunt

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

Start Hunting!