求微分方程y"+2y=x的通解
问题描述:
求微分方程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*s...