Solve the following differential equation: x² ,dy+y(x+y) ,dx=0 , given that y=1 when x=1 .
Question 1003 marksMedium
Solve the following differential equation:
x2dy+y(x+y)dx=0, given that y=1 when x=1.
Solution:
Concept: Both x2 and y(x+y) are homogeneous of degree 2, so the equation is homogeneous. We put y=vx; then dxdy=v+xdxdv. The given point fixes the constant.
Step 1 — Make dxdy the subject and substitute.
We move the dx term to the right, divide by x2dx, and put y=vx.
dxdy=−x2y(x+y)
v+xdxdv=−v(1+v)
Step 2 — Simplify.
We move v to the right side.
xdxdv=−v−v2−v
xdxdv=−v(v+2)
Step 3 — Separate and use partial fractions.
We divide by v(v+2) and by x. Since the difference v1−v+21 has numerator 2, we halve it.
v(v+2)dv=−xdx
21(v1−v+21)dv=−xdx
Step 4 — Integrate.
We integrate and write the constant as logc, then multiply by 2.
21logv+2v=−log∣x∣+logc
logv+2v=logx2c2
v+2x2v=C
Here C stands for ±c2, which is still an arbitrary constant.
Step 5 — Put back v=xy.
We multiply the top and bottom of v+2v by x.
y+2xx2y=C
Step 6 — Use x=1, y=1.
We substitute the given values to find C.
1+21⋅1=C
C=31
Step 7 — Simplify the particular solution.
We cross-multiply and make y the subject.
3x2y=y+2x
y(3x2−1)=2x
y=3x2−12x
Check: Putting x=1 in the formula gives 3−12, and this equals 1, as required.
Therefore, the particular solution is 3x2y=y+2x, that is, y=3x2−12x.