How do I use dsolve to find the solution to u'' + u = 3cos(wt) , u(0) = 0, u'(0) = 0 ?

1 Ansicht (letzte 30 Tage)
Dinakar Chappa
Dinakar Chappa am 24 Mär. 2017
Beantwortet: Walter Roberson am 24 Mär. 2017
I want to say my problem is me having trouble entering the u'' and the constant w, but I am lost in general as I am fairly new to MatLab.
syms u w t
eqn = diff(diff(u)) + u == 3* cos(w*t)
dsolve(eqn)

Antworten (1)

Walter Roberson
Walter Roberson am 24 Mär. 2017
syms u(t) w
du = diff(u);
eqn = diff(du) + u == 3* cos(w*t)
dsolve(eqn, u(0) == 0, du(0) == 0)

Kategorien

Mehr zu Mathematics finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by