Solve the following differential equations: (i) xdy/dx-y=x² (ii) 2xdy/dx+y=6x³
Question 1113 marksMedium
Solve the following differential equations:
(i)xdxdy−y=x2
(ii)2xdxdy+y=6x3
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 x (taking x>0) so that dxdy has coefficient 1.
dxdy−x1y=x
Step 2 — Part (i): find the integrating factor.
Here P=−x1, whose integral is −logx.
IF=e−logx
IF=x1
Step 3 — Part (i): solve.
We multiply Q=x by the IF and integrate.
xy=∫x⋅x1dx
xy=x+c
Multiplying by x gives y.
y=x2+cx
Step 4 — Part (ii): write the equation in standard form.
We divide every term by 2x, taking x>0 because x will appear.
dxdy+2x1y=3x2
Step 5 — Part (ii): find the integrating factor.
Here P=2x1, whose integral is 21logx.
IF=e21logx
Since e21logx=elogx1/2, the IF is x.
IF=x
Step 6 — Part (ii): solve.
We multiply 3x2 by x, that is by x1/2; the powers add to x5/2.