フィルターのクリア

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

1 回表示 (過去 30 日間)
Dinakar Chappa
Dinakar Chappa 2017 年 3 月 24 日
回答済み: Walter Roberson 2017 年 3 月 24 日
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)

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 3 月 24 日
syms u(t) w
du = diff(u);
eqn = diff(du) + u == 3* cos(w*t)
dsolve(eqn, u(0) == 0, du(0) == 0)

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by