(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)
Given the differential equation:
(x+2)dxdy=(x+2)dxdy+y=3x2+6x−y3x(x+2)
Divide through by (x+2) since x=−2:
dxdy+x+21y=3x
This is in the form dxdy+f(x)y=kx, where f(x)=x+21 and k=3.
(b)
The integrating factor (IF) is given by:
IF====e∫f(x)dxe∫x+21dxeln(x+2)x+2
Multiplying the differential equation by the integrating factor gives:
dxd((x+2)y)==3x(x+2)3x2+6x
Integrating both sides with respect to x:
(x+2)y=(x+2)y=∫(3x2+6x)dxx3+3x2+c
Given that y=18 at x=4:
(4+2)(18)=108=108=c=(4)3+3(4)2+c64+48+c112+c−4
Substitute c=−4 back into the general solution:
(x+2)y=x3+3x2−4
To simplify, we factorise the cubic x3+3x2−4. By the factor theorem, let P(x)=x3+3x2−4. P(1)=1+3−4=0, so (x−1) is a factor.
x3+3x2−4==(x−1)(x2+4x+4)(x−1)(x+2)2
Therefore:
(x+2)y=y=y=(x−1)(x+2)2(x−1)(x+2)x2+x−2