Second order differential equations numerically.
显示 更早的评论
I'm trying to solve 2 second order diff equations numerically. y1' '=y2-2y1 and y2' '=y1-2y2.
I'm new to matlab and I'm trying to solve it without the initial condition. Is it possible? Is so how?
Thanks in advance.
回答(1 个)
Torsten
2015-1-27
0 个投票
y1(x) = 1/6 c_2 (3 sin(x)+sqrt(3) sin(sqrt(3) x))+1/6 c_4 (3 sin(x)-sqrt(3) sin(sqrt(3) x))+1/2 c_1 (cos(x)+cos(sqrt(3) x))+1/2 c_3 (cos(x)-cos(sqrt(3) x))
y2(x) = 1/6 c_2 (3 sin(x)-sqrt(3) sin(sqrt(3) x))+1/6 c_4 (3 sin(x)+sqrt(3) sin(sqrt(3) x))+1/2 c_1 (cos(x)-cos(sqrt(3) x))+1/2 c_3 (cos(x)+cos(sqrt(3) x))
where c1, c2, c3, c4 are constants to be determined by the initial conditions.
help dsolve
Best wishes
Torsten.
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!