solving a differential equation
1 次查看(过去 30 天)
显示 更早的评论
Hi guys, I want to solve a second order differential equation which is:
2*y''(t) + 6*y'(t) + 4*y(t) = f'(t) + 2*f(t)
where, f(t) = exp(-t), and t>0.
Do you have any idea how to find the expression for y(t)? I was trying to use the "dsolve" function but couldn't figure out how it works.
Please help me :)
0 个评论
回答(2 个)
Arsalan
2013-2-1
I usally use matlab's ode solvers such as ode45, ode113, you need to read a bit about this.
check this page
should be easy to code
0 个评论
bym
2013-2-1
Using dsolve is pretty straightforward, I'll give the 1st and last terms:
dsolve('2*D2y ... = ... +2*exp(-t)')
you'll have to fill in the rest
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!