How do I use dsolve() to solve a second order ODE with variable coefficients?

Hello, I need to use dsolve() to solve the following equation for a solution y(t)
a(t)y"(t) + a'(t)y'(t) = f(t)
Where f(t) is 5 sin^2(2*pi*t) and a(t) = 1 + t.
I have tried dsolve('(1+t)*D2y + Dy = 5*sin(2*pi*t)^2'), and dsolve('D2y + (Dy / (1 + t)) = (5*sin(2*pi*t)^2) / (1 + t). But both have yielded no luck.

カテゴリ

ヘルプ センター および File ExchangeSignal Generation, Analysis, and Preprocessing についてさらに検索

質問済み:

2016 年 4 月 3 日

回答済み:

2016 年 4 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by