Solve the following differential equation: x² ,dy + (xy + y²) ,dx = 0, when x = 1 and y = 1.
Question 45 marksAsked 2016Medium
Solve the following differential equation:
x2dy+(xy+y2)dx=0, when x=1 and y=1.
Solution:
Key idea: In dxdy=f(x,y), if the numerator and denominator are homogeneous of the same degree, the substitution y=vx turns the equation into one with separable variables.
Step 1 — Write the derivative.
We move the dx term to the right and divide by x2dx.
x2dy=−(xy+y2)dx
dxdy=−x2xy+y2
Every term on the right has degree 2, so the equation is homogeneous.
Step 2 — Substitute y = vx.
We put y=vx, so dxdy=v+xdxdv. The right side becomes −x2vx2+v2x2, and the x2 cancels.
v+xdxdv=−v−v2
xdxdv=−v2−2v
xdxdv=−v(v+2)
Step 3 — Separate the variables.
We divide by v(v+2) and by x.
v(v+2)dv=−xdx
Step 4 — Split into partial fractions and integrate.
We write the left integrand as a difference of two simple fractions.
v(v+2)1=21(v1−v+21)
Now both sides integrate to logarithms.
21lnv+2v=−ln∣x∣+ln∣c∣
We multiply by 2, combine the logarithms and remove them. The constant ±c2 is renamed K.
v+2v=x2K
Step 5 — Return to x and y.
We put v=xy. Multiplying the top and bottom of the left side by x gives y+2xy.
y+2xy=x2K
x2y=K(y+2x)
Step 6 — Use the given condition.
We put x=1 and y=1.
1×1=K(1+2)
K=31
We substitute K and multiply both sides by 3.
3x2y=y+2x
Collecting the y terms gives y(3x2−1)=2x.
y=3x2−12x
As a check, we put x=1 in this formula and get y=1, as required.
Therefore, the particular solution is 3x2y=y+2x, or y=3x2−12x.