题目
Problem
(cosx)dxdy+(sinx)y=2cos3xsinx−3,0⩽x<2π
(a) Find the general solution of this differential equation.
Give your answer in the form y=f(x).
(7)
(b) Find the particular solution of this differential equation for which y=33 at x=3π.
Give your answer in the form y=f(x).
(3)
解答
(a)
解法一
思路
展开
先除以 cosx,因为题目给出 0⩽x<2π,所以 cosx>0。得到一阶线性方程后,积分因子是 secx。
答题过程
展开
Divide by cosx:
dxdy+(tanx)y=2cos2xsinx−3secx
The integrating factor is
e∫tanxdx=eln(secx)=secx
Multiplying by secx,
dxd(ysecx)==secx(2cos2xsinx−3secx)2cosxsinx−3sec2x
Integrate:
ysecx==∫(2cosxsinx−3sec2x)dxsin2x−3tanx+C
Therefore
y==cosx(sin2x−3tanx+C)cosxsin2x−3sinx+Ccosx
(b)
解法一
思路
展开
把 x=3π 和 y=33 代入通解。注意 sin3π=23,cos3π=21。
答题过程
展开
Using
y=cosxsin2x−3sinx+Ccosx,
and substituting x=3π, y=33:
33==(21)(23)2−3(23)+C(21)83−233+2C
So
2C==33+233−83293−83
Therefore
C=93−43
The particular solution is
y=cosxsin2x−3sinx+(93−43)cosx