来源:学生作业帮 编辑:搜狗做题网作业帮 分类:综合作业 时间:2024/08/15 05:32:00
求微分方程y"+2y=x的通解
y=dsolve('D2y+2*y=x','x')
y =
x/2 + C5*cos(2^(1/2)*x) + C6*sin(2^(1/2)*x)
>> y'=diff(y)
y' =
2^(1/2)*C6*cos(2^(1/2)*x) - 2^(1/2)*C5*sin(2^(1/2)*x) + 1/2
>> y''=diff(y')
y'' =
- 2*C5*cos(2^(1/2)*x) - 2*C6*sin(2^(1/2)*x)
所以:y''+2y=x