Solve the following differential equations: (i) (x²+1)dy/dx+2xy=4x² (ii) (x²-1)dy/dx+2xy=2/x²-1
Question 1123 marksMedium
Solve the following differential equations:
(i)(x2+1)dxdy+2xy=4x2
(ii)(x2−1)dxdy+2xy=x2−12
Solution:
Key idea: A first-order linear equation can be written as dxdy+Py=Q, where P and Q are functions of x only. Its integrating factor is IF=e∫Pdx. Multiplying the equation by the IF turns the left side into dxd(y⋅IF), so the solution is y⋅IF=∫Q⋅IFdx+c, where c is the arbitrary constant.
Step 1 — Part (i): write the equation in standard form.
We divide every term by x2+1, which is never zero.
dxdy+x2+12xy=x2+14x2
Step 2 — Part (i): find the integrating factor.
The numerator 2x is the derivative of x2+1, so the integral of P is log(x2+1).
IF=elog(x2+1)
IF=x2+1
Step 3 — Part (i): solve.
Multiplying Q by the IF cancels the denominator, leaving 4x2 to integrate.
(x2+1)y=∫4x2dx
(x2+1)y=34x3+c1
We multiply by 3 to clear the fraction and rename the arbitrary constant 3c1 as c.
3(x2+1)y=4x3+c
Step 4 — Part (ii): write the equation in standard form.
We divide every term by x2−1, so we must have x=±1; we work on one of the intervals x>1, −1<x<1 or x<−1.
dxdy+x2−12xy=(x2−1)22
Step 5 — Part (ii): find the integrating factor.
Again the numerator is the derivative of the denominator, so the integral of P is log∣x2−1∣ and the IF is ∣x2−1∣. On each interval x2−1 keeps one sign, and a constant factor ±1 does not change the solution, so we use the IF below.
IF=x2−1
Step 6 — Part (ii): solve.
Multiplying Q by the IF leaves x2−12 to integrate.
(x2−1)y=∫x2−12dx
We use the standard result ∫x2−a2dx=2a1logx+ax−a with a=1, and multiply by 2.
(x2−1)y=logx+1x−1+c
Dividing by x2−1 divides the constant term as well.
y=x2−11logx+1x−1+x2−1c
Note: In part (ii) the constant term must also be divided by x2−1; it is x2−1c, not a plain c.
Therefore, (i) 3(x2+1)y=4x3+c; (ii) (x2−1)y=logx+1x−1+c, that is, y=x2−11logx+1x−1+x2−1c.