Skip to content
CalcGospel 國際數學圖譜
返回

IAL 2022 Oct Q6

A Level / Edexcel / FP2

IAL 2022 Oct Paper · Question 6

题目

Problem

Obtain the general solution of the equation

x2dydx+(xcotx+2)xy=4sinx,0<x<π\begin{align*} x^2\frac{\mathrm{d}y}{\mathrm{d}x} +(x\cot x+2)xy =\,& 4\sin x, \qquad 0 < x < \pi \end{align*}

Give your answer in the form y=f(x)y = \mathrm{f}(x)

(8)

解答

解法一

思路

展开

先把方程除以 x2x^2,写成一阶线性方程:

y+P(x)y=Q(x).\begin{align*} y'+P(x)y=Q(x). \end{align*}

这里 0<x<π0<x<\pi,所以 x>0x>0sinx>0\sin x>0,后面使用 lnx\ln xln(sinx)\ln(\sin x) 都是自然的。

答题过程

展开

The differential equation is

x2dydx+(xcotx+2)xy=4sinx.\begin{align*} x^2\frac{\mathrm{d}y}{\mathrm{d}x} +(x\cot x+2)xy=4\sin x. \end{align*}

Divide by x2x^2:

dydx+xcotx+2xy=4sinxx2dydx+(cotx+2x)y=4sinxx2.\begin{align*} \frac{\mathrm{d}y}{\mathrm{d}x} +\frac{x\cot x+2}{x}y =&\,\frac{4\sin x}{x^2}\\[2mm] \frac{\mathrm{d}y}{\mathrm{d}x} +\left(\cot x+\frac{2}{x}\right)y =&\,\frac{4\sin x}{x^2}. \end{align*}

The integrating factor is

e(cotx+2x)dx=eln(sinx)+2lnx=x2sinx.\begin{align*} \mathrm{e}^{\int\left(\cot x+\frac{2}{x}\right)\,\mathrm{d}x} =&\,\mathrm{e}^{\ln(\sin x)+2\ln x}\\[2mm] =&\,x^2\sin x. \end{align*}

Multiplying through by x2sinxx^2\sin x gives

ddx(yx2sinx)=x2sinx4sinxx2=4sin2x.\begin{align*} \frac{\mathrm{d}}{\mathrm{d}x}(yx^2\sin x) =&\,x^2\sin x\cdot \frac{4\sin x}{x^2}\\[2mm] =&\,4\sin^2 x. \end{align*}

Integrate both sides:

yx2sinx=4sin2xdx=2(1cos2x)dx=2xsin2x+C.\begin{align*} yx^2\sin x =&\,\int 4\sin^2x\,\mathrm{d}x\\[2mm] =&\,\int 2(1-\cos2x)\,\mathrm{d}x\\[2mm] =&\,2x-\sin2x+C. \end{align*}

Therefore

y=2xsin2x+Cx2sinx.\begin{align*} \boxed{ y=\frac{2x-\sin2x+C}{x^2\sin x} }. \end{align*}

解法二

思路

展开

观察原微分方程的左边(LHS)形式:x2dydx+(xcotx+2)xyx^2\dfrac{\mathrm{d}y}{\mathrm{d}x} + (x\cot x+2)xy。如果将括号展开,可得 x2y+x2(cotx)y+2xyx^2 y' + x^2(\cot x)y + 2xy

注意到 x2y+2xyx^2 y' + 2xy 正好是 x2yx^2 y 的导数,因此可以引入新变量 z=x2yz = x^2 y,将方程改写为关于 zz 的一阶线性微分方程,其形式比直接处理 yy 要精简得多。

答题过程

展开

Expand and group the left-hand side of the differential equation:

x2dydx+(x2cotx+2x)y=4sinx(x2dydx+2xy)+x2(cotx)y=4sinx\begin{align*} x^2\frac{\mathrm{d}y}{\mathrm{d}x} + \left(x^2\cot x + 2x\right)y =&\,\, 4\sin x\\[3mm] \left(x^2\frac{\mathrm{d}y}{\mathrm{d}x} + 2xy\right) + x^2(\cot x)y =&\,\, 4\sin x \end{align*}

Let z=x2yz = x^2 y. By the Product Rule:

dzdx=x2dydx+2xy\begin{align*} \frac{\mathrm{d}z}{\mathrm{d}x} =&\,\, x^2\frac{\mathrm{d}y}{\mathrm{d}x} + 2xy \end{align*}

Substitute z=x2yz = x^2 y and dzdx\dfrac{\mathrm{d}z}{\mathrm{d}x} into the equation:

dzdx+(cotx)z=4sinx\begin{align*} \frac{\mathrm{d}z}{\mathrm{d}x} + (\cot x)z =&\,\, 4\sin x \end{align*}

This is a first-order linear differential equation in zz. The integrating factor is:

I.F.=ecotxdx=eln(sinx)=sinx\begin{align*} \mathrm{I.F.} =&\,\, \mathrm{e}^{\int \cot x\,\mathrm{d}x}\\[3mm] =&\,\, \mathrm{e}^{\ln(\sin x)}\\[3mm] =&\,\, \sin x \end{align*}

(which is strictly positive on the interval 0<x<π0 < x < \pi).

Multiply the differential equation through by sinx\sin x:

sinxdzdx+(cosx)z=4sin2xddx(zsinx)=4sin2x\begin{align*} \sin x \frac{\mathrm{d}z}{\mathrm{d}x} + (\cos x)z =&\,\, 4\sin^2 x\\[3mm] \frac{\mathrm{d}}{\mathrm{d}x}(z\sin x) =&\,\, 4\sin^2 x \end{align*}

Integrate both sides with respect to xx:

zsinx=4sin2xdx=2(1cos2x)dx=2xsin2x+C\begin{align*} z\sin x =&\,\, \int 4\sin^2 x\,\mathrm{d}x\\[3mm] =&\,\, \int 2(1-\cos 2x)\,\mathrm{d}x\\[3mm] =&\,\, 2x - \sin 2x + C \end{align*}

Substitute z=x2yz = x^2 y back into the equation:

x2ysinx=2xsin2x+C\begin{align*} x^2 y \sin x =&\,\, 2x - \sin 2x + C \end{align*}

Therefore, the general solution is:

y=2xsin2x+Cx2sinx\begin{align*} \boxed{y = \frac{2x - \sin 2x + C}{x^2 \sin x}} \end{align*}