题目
Problem
(a) Show that the differential equation
(x+2)dxdy=3x2+6x−yx=−2
can be written in the form
dxdy+f(x)y=kx
where f is a function to be determined and k is a constant to be found.
(2)
Given that y=18 at x=4
(b) use the answer to part (a) to determine, in simplest form, the particular solution of the differential equation.
Give the answer in the form y=g(x)
(6)
解答
(a)
解法一
思路
展开
目标形式是一阶线性微分方程。先把 y 移到左边,再除以 x+2。因为题目给了 x=−2,所以这一步合法。
#### 答题过程
展开
Starting from
(x+2)dxdy=(x+2)dxdy+y==3x2+6x−y3x2+6x3x(x+2)
Since x=−2, divide by x+2:
dxdy+x+21y=3x
Hence
f(x)=x+21,k=3
(b)
解法一
思路
展开
这是标准一阶线性微分方程。积分因子是 e∫x+21dx。由于初始点 x=4 在 x>−2 的区间内,可以取积分因子为 x+2,然后两边积分并代入条件。
答题过程
展开
The integrating factor is
IF===e∫x+21dxeln(x+2)x+2
Multiplying the differential equation by x+2 gives
dxd((x+2)y)==3x(x+2)3x2+6x
Integrating,
(x+2)y==∫(3x2+6x)dxx3+3x2+C
Use x=4, y=18:
6(18)=108=C=43+3(42)+C64+48+C−4
Therefore
(x+2)y==x3+3x2−4(x−1)(x+2)2
So
y==(x−1)(x+2)x2+x−2
解法二
思路
展开
也可以把原方程看成「齐次解 + 特解」。齐次方程给出 x+2A,再猜一个二次多项式特解。最后用条件会发现齐次部分的常数为 0。
答题过程
展开
For the homogeneous equation,
(x+2)dxdy+y=y1dxdy=lny=0−x+21−ln(x+2)+C
So
yc=x+2A
Try a particular solution
yp=ax2+bx+c
Then
dxdyp=2ax+b
Substitute into
(x+2)dxdy+y=3x2+6x:
(x+2)(2ax+b)+ax2+bx+c=3ax2+(4a+2b)x+(2b+c)=3x2+6x3x2+6x
Equating coefficients,
3a=4a+2b=2b+c=3,6,0
Hence
a=1,b=1,c=−2
The general solution is
y=x2+x−2+x+2A
Use x=4, y=18:
18=6A=A=16+4−2+6A00
Therefore
y=x2+x−2