Calculus · real student question

Solve the differential equation 2xy(y′)² + 2(x² + y²)y′ + 2xy = 0, first solving for y′ and then integrating each resulting first-order equation.

Question

Solve

2xy(y)2+2(x2+y2)y+2xy=0,2xy\,(y')^{2}+2(x^{2}+y^{2})\,y'+2xy=0,

first solving for yy' and then integrating each of the resulting first-order equations.

Step-by-step solution

  1. Recognise the equation as algebraic in yy', not differential yet. Divide through by 22 and write p=yp=y':

    xyp2+(x2+y2)p+xy=0.xy\,p^{2}+(x^{2}+y^{2})\,p+xy=0.

    Nothing here involves a derivative of pp, so this is an ordinary quadratic equation whose "coefficients" happen to depend on xx and yy. Solving it turns one messy equation into two clean separable ones.

  2. Compute the discriminant and notice it is a perfect square.

    (x2+y2)24(xy)(xy)=x4+2x2y2+y44x2y2=(x2y2)2.(x^{2}+y^{2})^{2}-4(xy)(xy)=x^{4}+2x^{2}y^{2}+y^{4}-4x^{2}y^{2}=(x^{2}-y^{2})^{2}.

    This is why the problem is solvable in closed form: the square root comes out rational, (x2y2)2=x2y2\sqrt{(x^{2}-y^{2})^{2}}=|x^{2}-y^{2}|, and either sign is absorbed by the ±\pm in the quadratic formula.

  3. Read off the two branches.

    p=(x2+y2)±(x2y2)2xy.p=\frac{-(x^{2}+y^{2})\pm(x^{2}-y^{2})}{2xy}.

    The ++ branch gives p=2y22xy=yxp=\dfrac{-2y^{2}}{2xy}=-\dfrac{y}{x}; the - branch gives p=2x22xy=xyp=\dfrac{-2x^{2}}{2xy}=-\dfrac{x}{y}. Each is separable.

  4. Integrate the first branch y=y/xy'=-y/x. Separating,

    dyy=dxx    lny=lnx+c    lnxy=c,\frac{dy}{y}=-\frac{dx}{x}\;\Longrightarrow\;\ln|y|=-\ln|x|+c\;\Longrightarrow\;\ln|xy|=c,

    so xy=C1xy=C_{1}: a family of rectangular hyperbolas.

  5. Integrate the second branch y=x/yy'=-x/y. Separating,

    ydy=xdx    y22=x22+c    x2+y2=C2:y\,dy=-x\,dx\;\Longrightarrow\;\frac{y^{2}}{2}=-\frac{x^{2}}{2}+c\;\Longrightarrow\;x^{2}+y^{2}=C_{2}:

    circles centred at the origin.

  6. Check both families in the original equation. For xy=C1xy=C_1, y=y/xy'=-y/x; substituting, xyy2x2(x2+y2)yx+xy=y3xxyy3x+xy=0xy\frac{y^{2}}{x^{2}}-(x^{2}+y^{2})\frac{y}{x}+xy=\frac{y^{3}}{x}-xy-\frac{y^{3}}{x}+xy=0. For x2+y2=C2x^{2}+y^{2}=C_2, y=x/yy'=-x/y; substituting, xyx2y2(x2+y2)xy+xy=x3yx3yxy+xy=0xy\frac{x^{2}}{y^{2}}-(x^{2}+y^{2})\frac{x}{y}+xy=\frac{x^{3}}{y}-\frac{x^{3}}{y}-xy+xy=0. Both vanish identically. Geometrically the two families are orthogonal — the slopes y/x-y/x and x/y-x/y are the two roots of the same quadratic, and the hyperbolas xy=C1xy=C_1 do cross the circles at right angles only where x=y|x|=|y|, which is where the discriminant vanishes and the two branches merge.

Answer

xy=C1orx2+y2=C2xy=C_{1}\quad\text{or}\quad x^{2}+y^{2}=C_{2}

Need to solve a different problem like this? Open the solver →