题目
Problem
Find the solution of the differential equation
dxdy+3y=sinx
for which y=1 when x=0. Give your answer in the form y=f(x).
[9]
题目中文翻译
求微分方程
dxdy+3y=sinx
的解,满足当 x=0 时 y=1。将答案写成 y=f(x) 的形式。
(9)
原卷通用作答要求
Answer all questions. You should use a calculator where appropriate.
You must show all necessary working clearly; no marks will be given for unsupported answers from a calculator.
Give non-exact numerical answers correct to 3 significant figures, or 1 decimal place for angles in degrees, unless a different level of accuracy is specified in the question.
请回答所有题目。适当时应使用计算器。必须清楚展示所有必要的计算过程;仅给出计算器答案而没有过程,不予评分。除非题目另有精度要求,非精确数值答案保留 3 位有效数字,以度为单位的角度保留 1 位小数。
解答
解法一
思路
展开
先乘积分因子 e3x。右边用两次分部积分,第二次会出现原来的积分,移项即可求出。
答题过程
展开
The equation is already in standard linear form, so an integrating factor is e∫3dx=e3x. Multiplying by e3x gives (ye3x)′=e3xsinx. Write I=∫e3xsinxdx and J=∫e3xcosxdx, taking constants at the end. For I, take u=e3x and dv=sinxdx, so v=−cosx. For J, take u=e3x and dv=cosxdx, so v=sinx. Integration by parts gives
I=J=−e3xcosx+3J,e3xsinx−3I.
Substituting J into the first equation gives I=−e3xcosx+3e3xsinx−9I. Moving −9I to the left yields 10I=e3x(3sinx−cosx). Hence
ye3x=10e3x(3sinx−cosx)+C.
At x=0, y=1, so C=1011. Therefore
y=103sinx−cosx+11e−3x.
解法二
思路
展开
也可把 sinx 看成 eix 的虚部。乘积分因子后,先积分一个复指数,取虚部时答案就回到实数。
答题过程
展开
Using the same integrating factor e3x, we have
∫e3xsinxdx===Im(3+ie(3+i)x)+C10e3xIm[(3−i)(cosx+isinx)]+C10e3x(3sinx−cosx)+C.
Setting this equal to ye3x and imposing y(0)=1 gives C=11/10 and y=(3sinx−cosx+11e−3x)/10.