matlab求(d³y)/dx³+3(dy/dx)+2y=6的通解并求满足y"(0)=1,y´(0)=2,y(0)=3的特解.

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/29 01:26:50
matlab求(d³y)/dx³+3(dy/dx)+2y=6的通解并求满足y"(0)=1,y´(0)=2,y(0)=3的特解.matlab求(d³y)/dx&

matlab求(d³y)/dx³+3(dy/dx)+2y=6的通解并求满足y"(0)=1,y´(0)=2,y(0)=3的特解.
matlab求(d³y)/dx³+3(dy/dx)+2y=6的通解
并求满足y"(0)=1,y´(0)=2,y(0)=3的特解.

matlab求(d³y)/dx³+3(dy/dx)+2y=6的通解并求满足y"(0)=1,y´(0)=2,y(0)=3的特解.
>> dsolve('D3y+3Dy+2y=6','x')
ans =
1/6*x^3+1/2*C1*x^2+C2*x+C3
>> dsolve('D3y+3Dy+2y=6','D2y(0)=1,Dy(0)=2,y(0)=3','x')
ans =
1/6*x^3+1/2*x^2+2*x+3

你这个微分方程不好解。先给你一个实例吧。
比如
>> dsolve(['D3y=6'],'D2y(0)=1','Dy(0)=2','y(0)=3','x')
有结果
ans =
x^3+1/2*x^2+2*x+3
当然上面只是简单的情况
对于你的方程
可以写成:
>> dsolve(['D3y+3*Dy+2*y=6'],'D...

全部展开

你这个微分方程不好解。先给你一个实例吧。
比如
>> dsolve(['D3y=6'],'D2y(0)=1','Dy(0)=2','y(0)=3','x')
有结果
ans =
x^3+1/2*x^2+2*x+3
当然上面只是简单的情况
对于你的方程
可以写成:
>> dsolve(['D3y+3*Dy+2*y=6'],'D2y(0)=1','Dy(0)=2','y(0)=3','x')
得到结果:
ans =
3+1/12*(2^(1/2)+1)^(1/3)*(18-15*2^(1/2)-6*i*3^(1/2)+12*(2^(1/2)+1)^(1/3)-2*i*(2^(1/2)+1)^(2/3)*3^(1/2)-12*(2^(1/2)+1)^(1/3)*2^(1/2)+9*(2^(1/2)+1)^(2/3)*2^(1/2)+6*i*3^(1/2)*(2^(1/2)+1)^(1/3)*2^(1/2)-12*i*3^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