Class 12 Maths, Worked in Full Past papersGet updates
Chapter 9 · Differential Equations

Miscellaneous · Q3: x2−y2=c(x2+y2)2x^2 - y^2 = c(x^2 + y^2)^2 solves (x3−3xy2) dx=(y3−3x2y) dy(x^3 - 3xy^2)\,dx = (y^3 - 3x^2y)\,dy

Miscellaneous ExerciseHomogeneous differential equations · Section 9.4.2
The question

3. Prove that x2−y2=c (x2+y2)2x^2 - y^2 = c\,(x^2 + y^2)^2 is the general solution of differential equation (x3−3x y2) dx=(y3−3x2y) dy(x^3 - 3x\,y^2)\,dx = (y^3 - 3x^2y)\,dy⁠, where cc is a parameter.

Exam answer

The equation can be written as

dydx=x3−3xy2y3−3x2y=F(x,y)\frac{dy}{dx} = \frac{x^3 - 3xy^2}{y^3 - 3x^2y} = F(x, y)

Replacing xx by λx\lambda x and yy by λy\lambda y⁠,

F(λx,λy)=λ3(x3−3xy2)λ3(y3−3x2y)=λ0⋅F(x,y)\begin{aligned} &F(\lambda x, \lambda y) \\ &= \frac{\lambda^3(x^3 - 3xy^2)}{\lambda^3(y^3 - 3x^2y)} \\ &= \lambda^0\cdot F(x, y) \end{aligned}

So FF is homogeneous of degree zero, and the equation is homogeneous. Put y=vxy = vx⁠. Then dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}⁠.

v+xdvdx=1−3v2v3−3vxdvdx=1−3v2v3−3v−v=1−v4v3−3v\begin{aligned} v + x\frac{dv}{dx} &= \frac{1 - 3v^2}{v^3 - 3v} \\ x\frac{dv}{dx} &= \frac{1 - 3v^2}{v^3 - 3v} - v \\ &= \frac{1 - v^4}{v^3 - 3v} \end{aligned}

Separating the variables (v4≠1v^4 \ne 1⁠),

v3−3v1−v4 dv=dxx…(i)\frac{v^3 - 3v}{1 - v^4}\,dv = \frac{dx}{x}\quad\ldots(\text{i})

Put v2=tv^2 = t⁠. Then 2v dv=dt2v\,dv = dt⁠, and the left side of (i) becomes

12⋅t−3(1−t)(1+t) dt\frac{1}{2}\cdot\frac{t - 3}{(1 - t)(1 + t)}\,dt

Let t−3(1−t)(1+t)=A1−t+B1+t\frac{t - 3}{(1 - t)(1 + t)} = \frac{A}{1 - t} + \frac{B}{1 + t}⁠.

Then t−3=A(1+t)+B(1−t)t - 3 = A(1 + t) + B(1 - t)⁠. Putting t=1t = 1⁠: A=−1A = -1⁠. Putting t=−1t = -1⁠: B=−2B = -2⁠.

Integrating both sides of (i),

12∫(−11−t−21+t)dt=∫dxx⇒12log⁡∣1−t∣−log⁡∣1+t∣=log⁡∣x∣+log⁡∣C1∣⇒log⁡∣1−t(1+t)2∣=log⁡(C12x2)\begin{aligned} &\frac{1}{2}\int\left(\frac{-1}{1 - t} - \frac{2}{1 + t}\right)dt \\ &= \int\frac{dx}{x} \\ &\Rightarrow \frac{1}{2}\log|1 - t| - \log|1 + t| \\ &= \log|x| + \log|C_1| \\ &\Rightarrow \log\left|\frac{1 - t}{(1 + t)^2}\right| \\ &= \log\left(C_1^2x^2\right) \end{aligned}

Putting t=v2=y2x2t = v^2 = \frac{y^2}{x^2}⁠,

1−v2(1+v2)2=±C12x2(x2−y2)x2(x2+y2)2=±C12x2x2−y2=c(x2+y2)2\begin{aligned} \frac{1 - v^2}{(1 + v^2)^2} &= \pm C_1^2x^2 \\ \frac{(x^2 - y^2)x^2}{(x^2 + y^2)^2} &= \pm C_1^2x^2 \\ x^2 - y^2 &= c(x^2 + y^2)^2 \end{aligned}

where c=±C12c = \pm C_1^2⁠. The lines y=±xy = \pm x (v4=1v^4 = 1⁠) also satisfy the equation; they are the case c=0c = 0⁠.

∴\therefore x2−y2=c(x2+y2)2x^2 - y^2 = c(x^2 + y^2)^2 is the general solution, cc a parameter. Hence proved.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Every term of the equation has degree 3 in xx and yy together (x3x^3⁠, xy2xy^2⁠, y3y^3⁠, x2yx^2y⁠), so dydx\frac{dy}{dx} depends only on the ratio yx\frac{y}{x}⁠: the equation is homogeneous, and y=vxy = vx separates it. "Prove that this is the general solution" then means: solve it, and arrive at exactly this family with one arbitrary constant cc⁠, the right number for a first order equation. The vv-integral needs the substitution t=v2t = v^2 and partial fractions.

Given, to find, and the plan
Given
(x3−3xy2) dx=(y3−3x2y) dy(x^3 - 3xy^2)\,dx = (y^3 - 3x^2y)\,dy⁠, a first order equation.
To show
That its general solution is x2−y2=c(x2+y2)2x^2 - y^2 = c(x^2 + y^2)^2⁠, with cc a parameter.
Plan
(1) Write it as dydx=F(x,y)\frac{dy}{dx} = F(x, y)⁠. (2) Show F(λx,λy)=F(x,y)F(\lambda x, \lambda y) = F(x, y)⁠. (3) Put y=vxy = vx⁠. (4) Simplify to xdvdx=…x\frac{dv}{dx} = \ldots⁠. (5) Separate. (6) Prepare the vv-integral with t=v2t = v^2 and partial fractions. (7) Integrate, with one constant. (8) Put v=yxv = \frac{y}{x} back. (9) Recover the lines set aside when dividing. (10) Check by differentiating back.

Basics you need

1Homogeneous equations

F(x,y)F(x, y) is homogeneous of degree nn when F(λx,λy)=λnF(x,y)F(\lambda x, \lambda y) = \lambda^nF(x, y)⁠; the equation dydx=F(x,y)\frac{dy}{dx} = F(x, y) is homogeneous when FF has degree zero, and y=vxy = vx turns it into a separable equation (Section 9.4.2). Basics: scale x and y together

2The substitution y=vxy = vx

By the product rule, dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx} (Section 9.4.2, equation (3)). Lesson: homogeneous equations, put y = vx

3Partial fractions and ∫dtt\int\frac{dt}{t}

A proper fraction with distinct linear factors below splits as A1−t+B1+t\frac{A}{1 - t} + \frac{B}{1 + t} (Section 7.5); ∫dt1+t=log⁡∣1+t∣\int\frac{dt}{1 + t} = \log|1 + t| and ∫−dt1−t=log⁡∣1−t∣\int\frac{-dt}{1 - t} = \log|1 - t| (Section 7.2, formula (xii)). Basics: every method ends with an integral

4Laws of logarithms

klog⁡∣u∣=log⁡∣u∣kk\log|u| = \log|u|^k⁠, log⁡∣u∣−log⁡∣w∣=log⁡∣uw∣\log|u| - \log|w| = \log\left|\frac{u}{w}\right|⁠, and log⁡∣U∣=log⁡∣W∣\log|U| = \log|W| gives U=±WU = \pm W⁠. Basics: e^{kt} and log

Solution

  1. Write the equation as dydx=F(x,y)\frac{dy}{dx} = F(x, y)

    Divide both sides by (y3−3x2y) dx(y^3 - 3x^2y)\,dx⁠, where y3−3x2y≠0y^3 - 3x^2y \ne 0⁠:

    dydx=x3−3xy2y3−3x2y=F(x,y).…(1)\frac{dy}{dx} = \frac{x^3 - 3xy^2}{y^3 - 3x^2y} = F(x, y).\quad\ldots(1)
    The methods of Section 9.4 start from dydx=F(x,y)\frac{dy}{dx} = F(x, y)⁠. Where y3−3x2y=y(y2−3x2)=0y^3 - 3x^2y = y(y^2 - 3x^2) = 0⁠, that is on the lines y=0y = 0 and y=±3 xy = \pm\sqrt3\,x⁠, the equation forces dx=0dx = 0 (unless x3−3xy2=0x^3 - 3xy^2 = 0 too): the solution curves cross those lines with vertical tangents.
    Section 9.4.2: the form dydx=F(x,y)\frac{dy}{dx} = F(x, y)⁠. Lesson: homogeneous equations
  2. Show that it is homogeneous: F(λx,λy)=F(x,y)F(\lambda x, \lambda y) = F(x, y)

    F(λx,λy)=λ3x3−3λx⋅λ2y2λ3y3−3λ2x2⋅λy=λ3(x3−3xy2)λ3(y3−3x2y)=λ0⋅F(x,y).\begin{aligned} &F(\lambda x, \lambda y) \\ &= \frac{\lambda^3x^3 - 3\lambda x\cdot\lambda^2y^2}{\lambda^3y^3 - 3\lambda^2x^2\cdot\lambda y} \\ &= \frac{\lambda^3(x^3 - 3xy^2)}{\lambda^3(y^3 - 3x^2y)} \\ &= \lambda^0\cdot F(x, y). \end{aligned}

    So FF is homogeneous of degree zero, and (1) is a homogeneous differential equation.

    Every term above and below has total degree 3, so the same λ3\lambda^3 comes out of each and cancels. Degree zero is exactly the condition for a homogeneous equation.
    Section 9.4.2: homogeneous function of degree nn⁠. Basics: scale x and y together
  3. Substitute y=vxy = vx

    Put y=vxy = vx⁠, so dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}⁠. In (1), x3x^3 cancels from top and bottom (x≠0x \ne 0⁠):

    v+xdvdx=x3−3x⋅v2x2v3x3−3x2⋅vx=1−3v2v3−3v.\begin{aligned} v + x\frac{dv}{dx} &= \frac{x^3 - 3x\cdot v^2x^2}{v^3x^3 - 3x^2\cdot vx} \\ &= \frac{1 - 3v^2}{v^3 - 3v}. \end{aligned}
    Because FF has degree zero, the right side becomes a function of vv alone. That is the whole point of the substitution.
    Section 9.4.2, equations (2) and (3). Lesson: put y = vx
  4. Simplify to xdvdx=…x\frac{dv}{dx} = \ldots

    xdvdx=1−3v2v3−3v−v=1−3v2−v4+3v2v3−3v=1−v4v3−3v.\begin{aligned} x\frac{dv}{dx} &= \frac{1 - 3v^2}{v^3 - 3v} - v \\ &= \frac{1 - 3v^2 - v^4 + 3v^2}{v^3 - 3v} = \frac{1 - v^4}{v^3 - 3v}. \end{aligned}
    Writing vv over the denominator v3−3vv^3 - 3v gives v4−3v2v^4 - 3v^2 to subtract; the 3v23v^2 terms cancel, leaving 1−v41 - v^4⁠.
    Section 9.4.2, equation (4). Lesson: Examples 10 to 13
  5. Separate vv and xx

    For v4≠1v^4 \ne 1 (that is y≠±xy \ne \pm x⁠),

    v3−3v1−v4 dv=dxx.…(2)\frac{v^3 - 3v}{1 - v^4}\,dv = \frac{dx}{x}.\quad\ldots(2)
    Multiply both sides by v3−3v1−v4\frac{v^3 - 3v}{1 - v^4} and by dxx\frac{dx}{x}⁠. Dividing by 1−v41 - v^4 sets aside the lines v=±1v = \pm 1⁠; Step 9 brings them back.
    Separating the variables, Section 9.4.1. Basics: dy = y′ dx
  6. Prepare the vv-integral: t=v2t = v^2 and partial fractions

    The top is v(v2−3)v(v^2 - 3) and the bottom 1−v4=(1−v2)(1+v2)1 - v^4 = (1 - v^2)(1 + v^2)⁠: everything except one factor vv is a function of v2v^2⁠. Put v2=tv^2 = t⁠, so 2v dv=dt2v\,dv = dt⁠:

    v(v2−3) dv(1−v2)(1+v2)=12⋅t−3(1−t)(1+t) dt.\begin{aligned} &\frac{v(v^2 - 3)\,dv}{(1 - v^2)(1 + v^2)} \\ &= \frac{1}{2}\cdot\frac{t - 3}{(1 - t)(1 + t)}\,dt. \end{aligned}

    Now split t−3(1−t)(1+t)=A1−t+B1+t\frac{t - 3}{(1 - t)(1 + t)} = \frac{A}{1 - t} + \frac{B}{1 + t}⁠, that is t−3=A(1+t)+B(1−t)t - 3 = A(1 + t) + B(1 - t)⁠. Putting t=1t = 1⁠: −2=2A-2 = 2A⁠, so A=−1A = -1⁠. Putting t=−1t = -1⁠: −4=2B-4 = 2B⁠, so B=−2B = -2⁠. Hence

    t−3(1−t)(1+t)=−11−t−21+t.\frac{t - 3}{(1 - t)(1 + t)} = \frac{-1}{1 - t} - \frac{2}{1 + t}.
    The factor v dvv\,dv is exactly half of d(v2)d(v^2)⁠, so t=v2t = v^2 turns a quartic denominator into a product of two linear ones. A third value checks the constants: at t=0t = 0 the left side is −3-3 and the right side is −1−2=−3-1 - 2 = -3⁠.
    Substitution and partial fractions, Sections 7.3.1 and 7.5. Basics: every method ends with an integral
  7. Integrate, with one constant

    12∫(−11−t−21+t)dt=∫dxx,12log⁡∣1−t∣−log⁡∣1+t∣=log⁡∣x∣+log⁡∣C1∣,\begin{aligned} &\frac{1}{2}\int\left(\frac{-1}{1 - t} - \frac{2}{1 + t}\right)dt \\ &= \int\frac{dx}{x}, \\ &\frac{1}{2}\log|1 - t| - \log|1 + t| \\ &= \log|x| + \log|C_1|, \end{aligned}

    where C1≠0C_1 \ne 0 is an arbitrary constant. Multiplying by 2 and combining the logarithms,

    log⁡∣1−t(1+t)2∣=log⁡(C12x2).\log\left|\frac{1 - t}{(1 + t)^2}\right| = \log\left(C_1^2x^2\right).
    ∫−dt1−t=log⁡∣1−t∣\int\frac{-dt}{1 - t} = \log|1 - t|⁠, because the derivative of 1−t1 - t is −1-1⁠. Writing the constant as log⁡∣C1∣\log|C_1| lets the logarithms merge into one; any real number is log⁡∣C1∣\log|C_1| for some C1≠0C_1 \ne 0⁠, so this is still just one arbitrary constant. Since 1+t=1+v2>01 + t = 1 + v^2 > 0⁠, ∣1+t∣2=(1+t)2|1 + t|^2 = (1 + t)^2⁠.
    Section 7.2, formula (xii); one constant for a first order equation. Basics: one constant for order 1
  8. Put v=yxv = \frac{y}{x} back

    Removing the logarithms, 1−t(1+t)2=±C12x2\frac{1 - t}{(1 + t)^2} = \pm C_1^2x^2⁠. Write c=±C12c = \pm C_1^2 and t=v2=y2x2t = v^2 = \frac{y^2}{x^2}⁠:

    1−y2x2(1+y2x2)2=cx2,(x2−y2)x2(x2+y2)2=cx2,x2−y2=c(x2+y2)2.\begin{aligned} \frac{1 - \frac{y^2}{x^2}}{\left(1 + \frac{y^2}{x^2}\right)^2} &= cx^2, \\ \frac{(x^2 - y^2)x^2}{(x^2 + y^2)^2} &= cx^2, \\ x^2 - y^2 &= c(x^2 + y^2)^2. \end{aligned}
    Multiply the top and the bottom by x4x^4⁠: the top becomes (x2−y2)x2(x^2 - y^2)x^2 and the bottom (x2+y2)2(x^2 + y^2)^2⁠. Then divide both sides by x2≠0x^2 \ne 0⁠. The constant c=±C12c = \pm C_1^2 can be any nonzero real number.
    Section 9.4.2: replace vv to get the general solution. Lesson: homogeneous equations
  9. The lines set aside: y=±xy = \pm x is the case c=0c = 0

    In Step 5 we divided by 1−v41 - v^4⁠, so v=±1v = \pm 1⁠, the lines y=xy = x and y=−xy = -x⁠, were set aside. On y=xy = x⁠: dy=dxdy = dx⁠, and both sides of the given equation equal −2x3 dx-2x^3\,dx⁠. On y=−xy = -x⁠: dy=−dxdy = -dx⁠, the left side is −2x3 dx-2x^3\,dx and the right side is (−x3+3x3)(−dx)=−2x3 dx(-x^3 + 3x^3)(-dx) = -2x^3\,dx⁠. So both lines are solutions, and they are exactly x2−y2=0x^2 - y^2 = 0⁠, the case c=0c = 0⁠.

    So x2−y2=c(x2+y2)2x^2 - y^2 = c(x^2 + y^2)^2 gives solutions for every real cc⁠, with one arbitrary constant: it is the general solution.

    A division can lose solutions, so we test the excluded case directly. Here nothing is lost in the end: the lost lines fill the one value, c=0c = 0⁠, that ±C12\pm C_1^2 could not reach.
    Section 9.4.1: separating needs a nonzero divisor, so the excluded lines are tested directly; chapter Summary: a general solution has as many arbitrary constants as the order (here 1). Lesson: general and particular solutions
  10. Check by substituting back, and see the curves

    Differentiate x2−y2=c(x2+y2)2x^2 - y^2 = c(x^2 + y^2)^2 with respect to xx⁠:

    2x−2yy′=2c(x2+y2)(2x+2yy′).2x - 2yy' = 2c(x^2 + y^2)(2x + 2yy').

    Remove cc with c=x2−y2(x2+y2)2c = \frac{x^2 - y^2}{(x^2 + y^2)^2} and multiply by x2+y22\frac{x^2 + y^2}{2}⁠:

    (x−yy′)(x2+y2)=2(x2−y2)(x+yy′),−x3+3xy2=(3x2y−y3) y′,x3−3xy2=(y3−3x2y) y′,\begin{aligned} &(x - yy')(x^2 + y^2) \\ &= 2(x^2 - y^2)(x + yy'), \\ &-x^3 + 3xy^2 = (3x^2y - y^3)\,y', \\ &x^3 - 3xy^2 = (y^3 - 3x^2y)\,y', \end{aligned}

    which is the given equation. So every member of the family satisfies it.

    X Y X′ Y′ c = 1 c = 2 c = −1 c = −2 c = 0 O
    Slope field of dydx=x3−3xy2y3−3x2y\frac{dy}{dx} = \frac{x^3 - 3xy^2}{y^3 - 3x^2y}⁠, with equal scales, and members of the family. In polar form r2=cos⁡2θcr^2 = \frac{\cos 2\theta}{c}⁠: for c>0c > 0 a figure of eight along the xx-axis (a lemniscate), for c<0c < 0 one along the yy-axis, and for c=0c = 0 the dashed lines y=±xy = \pm x⁠.
    Getting the equation back proves the family is a family of solutions, whatever cc is. The picture shows why one constant is enough: through each point (other than the origin) passes exactly one curve, the one with c=x2−y2(x2+y2)2c = \frac{x^2 - y^2}{(x^2 + y^2)^2}⁠.
    Implicit differentiation (Chapter 5, Section 5.3.2). Basics: a rule for slopes
Result

The equation is homogeneous, and y=vxy = vx leads to 1−v2(1+v2)2=cx2\frac{1 - v^2}{(1 + v^2)^2} = cx^2⁠, that is

x2−y2=c(x2+y2)2,x^2 - y^2 = c(x^2 + y^2)^2,

with the lines y=±xy = \pm x as the case c=0c = 0⁠. It has one arbitrary constant cc and satisfies the equation for every cc⁠, so it is the general solution. Hence proved. (Textbook answer: the answer key prints nothing for this question; it is a proof.)

Check it with numbers

Take the point (1,0.5)(1, 0.5)⁠. It lies on the member with c=1−0.25(1.25)2=0.751.5625=0.48c = \frac{1 - 0.25}{(1.25)^2} = \frac{0.75}{1.5625} = 0.48⁠. The equation gives the slope there:

dydx=1−0.750.125−1.5=−211≈−0.18182.\begin{aligned} \frac{dy}{dx} &= \frac{1 - 0.75}{0.125 - 1.5} \\ &= -\frac{2}{11} \approx -0.18182. \end{aligned}

On the curve x2−y2=0.48(x2+y2)2x^2 - y^2 = 0.48(x^2 + y^2)^2 itself, solving numerically near y=0.5y = 0.5 gives y(1.001)≈0.4998173361y(1.001) \approx 0.4998173361 and y(0.999)≈0.5001809734y(0.999) \approx 0.5001809734⁠. Their difference is

0.4998173361−0.5001809734=−0.0003636373,\begin{aligned} &0.4998173361 - 0.5001809734 \\ &= -0.0003636373, \end{aligned}

and −0.0003636373÷0.002≈−0.18182-0.0003636373 \div 0.002 \approx -0.18182⁠. The two slopes agree.

Common mistakes
  1. Only differentiating the answer. That shows the family solves the equation, but the question also says "general solution": solving the equation (or at least counting one constant for order 1) is what proves it.
  2. Sign slip in xdvdxx\frac{dv}{dx}⁠. 1−3v2v3−3v−v=1−v4v3−3v\frac{1 - 3v^2}{v^3 - 3v} - v = \frac{1 - v^4}{v^3 - 3v}⁠; forgetting to subtract vv leaves an equation that does not separate nicely.
  3. Wrong partial fractions. With t−3=A(1+t)+B(1−t)t - 3 = A(1 + t) + B(1 - t)⁠, the values are A=−1A = -1⁠, B=−2B = -2⁠; check them at t=0t = 0⁠.
  4. Dropping the lines y=±xy = \pm x and then claiming c≠0c \ne 0 only. They are solutions, and they are the case c=0c = 0⁠.
What to take away
  1. All terms of the same total degree means homogeneous: show F(λx,λy)=F(x,y)F(\lambda x, \lambda y) = F(x, y)⁠, then put y=vxy = vx⁠.
  2. When the vv-integral has an odd power of vv on top and powers of v2v^2 elsewhere, try t=v2t = v^2⁠.
  3. After dividing, test the excluded values; they may be the missing value of the constant.

Every fact used, and where it comes from

FactUsed inSource
Homogeneous function of degree zero; homogeneous equationSteps 1, 2Section 9.4.2 (Basics)
y=vxy = vx⁠, dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}Steps 3, 4Section 9.4.2, equations (2) to (4) (Lesson)
Separating the variablesStep 5Section 9.4.1 (Basics)
Substitution t=v2t = v^2⁠; partial fractions with distinct linear factorsStep 6Sections 7.3.1 and 7.5 (Basics)
∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + CStep 7Section 7.2, formula (xii) (Basics)
Number of arbitrary constants equals the orderSteps 7, 9Chapter Summary (Basics)
Separating needs a nonzero divisor; the excluded values are tested directlySteps 5, 9Section 9.4.1, equation (3) (Lesson)
Implicit differentiationStep 10Chapter 5, Section 5.3.2 (Basics)
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →