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

Example 13: Curves with slope x2+y22xy\frac{x^2+y^2}{2xy} are x2−y2=cxx^2 - y^2 = cx

ExamplesHomogeneous differential equations · Section 9.4.2
The question

Show that the family of curves for which the slope of the tangent at any point (x,y)(x, y) on it is x2+y22xy\dfrac{x^2 + y^2}{2xy}⁠, is given by x2−y2=cxx^2 - y^2 = cx⁠.

Exam answer

The slope of the tangent is dydx\frac{dy}{dx}⁠, so

dydx=x2+y22xy=F(x,y)\frac{dy}{dx} = \frac{x^2 + y^2}{2xy} = F(x, y)

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

F(λx,λy)=λ2(x2+y2)λ2(2xy)=λ0⋅F(x,y)\begin{aligned} F(\lambda x, \lambda y) &= \frac{\lambda^2(x^2 + y^2)}{\lambda^2(2xy)} \\ &= \lambda^0\cdot F(x, y) \end{aligned}

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

v+xdvdx=1+v22vxdvdx=1+v22v−v=1−v22v\begin{aligned} v + x\frac{dv}{dx} &= \frac{1 + v^2}{2v} \\ x\frac{dv}{dx} &= \frac{1 + v^2}{2v} - v \\ &= \frac{1 - v^2}{2v} \end{aligned}

Separating the variables (v2≠1v^2 \ne 1⁠),

2vv2−1 dv=−dxx\frac{2v}{v^2 - 1}\,dv = -\frac{dx}{x}

Integrating both sides,

∫2vv2−1 dv=−∫dxxlog⁡∣v2−1∣=−log⁡∣x∣+log⁡∣C1∣log⁡∣(v2−1)x∣=log⁡∣C1∣(v2−1)x=±C1\begin{aligned} \int\frac{2v}{v^2 - 1}\,dv &= -\int\frac{dx}{x} \\ \log|v^2 - 1| &= -\log|x| \\ &\quad + \log|C_1| \\ \log|(v^2 - 1)x| &= \log|C_1| \\ (v^2 - 1)x &= \pm C_1 \end{aligned}

Putting v=yxv = \frac{y}{x}⁠,

(y2x2−1)x=±C1y2−x2=±C1x\begin{aligned} \left(\frac{y^2}{x^2} - 1\right)x &= \pm C_1 \\ y^2 - x^2 &= \pm C_1x \end{aligned}

Writing c=∓C1c = \mp C_1⁠, this is x2−y2=cxx^2 - y^2 = cx⁠. The lines y=±xy = \pm x (v2=1v^2 = 1⁠) also have this slope; they are the case c=0c = 0⁠.

∴\therefore The family of curves is x2−y2=cxx^2 - y^2 = cx⁠. Hence proved.

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

The one idea this problem is built on

"The slope of the tangent is …\ldots" is a differential equation: dydx=x2+y22xy\frac{dy}{dx} = \frac{x^2 + y^2}{2xy}⁠. Top and bottom both have degree 2, so the slope does not change when xx and yy are scaled together: the equation is homogeneous, and y=vxy = vx separates it. Solving it gives the whole family of curves, and we only have to recognise it as x2−y2=cxx^2 - y^2 = cx⁠.

Given, to find, and the plan
Given
At every point (x,y)(x, y) of a curve of the family, the slope of the tangent is x2+y22xy\frac{x^2 + y^2}{2xy} (so x≠0x \ne 0⁠, y≠0y \ne 0⁠).
To show
The curves are x2−y2=cxx^2 - y^2 = cx⁠, cc an arbitrary constant.
Plan
(1) Write the slope condition as a differential equation. (2) Show it is homogeneous. (3) Put y=vxy = vx and simplify. (4) Separate. (5) Integrate, with the constant as log⁡∣C1∣\log|C_1|⁠. (6) Remove the logs. (7) Put v=yxv = \frac{y}{x} back and rename the constant. (8) Deal with v2=1v^2 = 1⁠. (9) Check.

Basics you need

1Slope of a tangent

The slope of the tangent to a curve at (x,y)(x, y) is dydx\frac{dy}{dx} there, so a rule for the slope is a differential equation. Basics: a rule for slopes

2Homogeneous equations and y=vxy = vx

dydx=F(x,y)\frac{dy}{dx} = F(x, y) with F(λx,λy)=λ0F(x,y)F(\lambda x, \lambda y) = \lambda^0F(x, y) is homogeneous; y=vxy = vx gives dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx} and a separable equation (Section 9.4.2). Lesson: homogeneous equations, put y = vx

3∫f′(v)f(v) dv=log⁡∣f(v)∣\int\frac{f'(v)}{f(v)}\,dv = \log|f(v)|

With f(v)=v2−1f(v) = v^2 - 1⁠, the top 2v2v is exactly f′(v)f'(v) (substitution t=v2−1t = v^2 - 1⁠, Section 7.3.1). Basics: every method ends with an integral

4The constant as log⁡∣C1∣\log|C_1|

Every real number is log⁡∣C1∣\log|C_1| for some C1≠0C_1 \ne 0⁠, so this is still one arbitrary constant, and it lets the logs combine. Basics: one constant for order 1

Solution

  1. Turn the slope condition into an equation

    dydx=x2+y22xy=F(x,y).…(1)\frac{dy}{dx} = \frac{x^2 + y^2}{2xy} = F(x, y).\quad\ldots(1)
    The slope of the tangent at (x,y)(x, y) is dydx\frac{dy}{dx}⁠. The given expression needs xy≠0xy \ne 0⁠, so every curve of the family stays off both axes.
    The slope of the tangent is dydx\frac{dy}{dx}⁠, as used in Section 9.4.1, Example 8. Basics: a rule for slopes
  2. Show that it is homogeneous: F(λx,λy)=F(x,y)F(\lambda x, \lambda y) = F(x, y)

    For any λ≠0\lambda \ne 0⁠:

    F(λx,λy)=λ2x2+λ2y22λx⋅λy=λ2(x2+y2)λ2(2xy)=λ0⋅F(x,y).\begin{aligned} F(\lambda x, \lambda y) &= \frac{\lambda^2x^2 + \lambda^2y^2}{2\lambda x\cdot\lambda y} \\ &= \frac{\lambda^2(x^2 + y^2)}{\lambda^2(2xy)} \\ &= \lambda^0\cdot F(x, y). \end{aligned}

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

    Top and bottom both have degree 2, so the same λ2\lambda^2 comes out of each and cancels. The book says this is "clear"; the line above is the actual reason. Dividing top and bottom by x2x^2 shows the same thing: F=1+(y/x)22(y/x)F = \frac{1 + (y/x)^2}{2(y/x)}⁠, a function of yx\frac{y}{x} alone.
    Section 9.4.2: homogeneous function of degree nn⁠. Basics: scale x and y together
  3. Substitute y=vxy = vx and simplify

    Put y=vxy = vx⁠; then dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}⁠, and (1) becomes

    v+xdvdx=x2+v2x22vx2=1+v22vxdvdx=1+v22v−v=1+v2−2v22v=1−v22v.\begin{aligned} v + x\frac{dv}{dx} &= \frac{x^2 + v^2x^2}{2vx^2} = \frac{1 + v^2}{2v} \\ x\frac{dv}{dx} &= \frac{1 + v^2}{2v} - v = \frac{1 + v^2 - 2v^2}{2v} \\ &= \frac{1 - v^2}{2v}. \end{aligned}
    The x2x^2 cancels because FF has degree zero. Subtracting vv over the common denominator 2v2v leaves 1−v21 - v^2 on top.
    Section 9.4.2, equations (2) to (4). Lesson: put y = vx
  4. Separate vv and xx (for v2≠1v^2 \ne 1⁠)

    2v1−v2 dv=dxx,or2vv2−1 dv=−dxx.\begin{aligned} \frac{2v}{1 - v^2}\,dv &= \frac{dx}{x}, \quad\text{or} \\ \frac{2v}{v^2 - 1}\,dv &= -\frac{dx}{x}. \end{aligned}
    Dividing by 1−v22v\frac{1 - v^2}{2v} needs v2≠1v^2 \ne 1⁠; the case v2=1v^2 = 1 is handled in Step 8. Changing the sign of top and bottom on the left (and moving the minus to the right) makes the top 2v2v the derivative of the bottom v2−1v^2 - 1⁠.
    Separating, as in Section 9.4.1. Basics: dy = y′ dx
  5. Integrate, writing the constant as log⁡∣C1∣\log|C_1|

    ∫2vv2−1 dv=−∫1x dxlog⁡∣v2−1∣=−log⁡∣x∣+log⁡∣C1∣,\begin{aligned} \int\frac{2v}{v^2 - 1}\,dv &= -\int\frac{1}{x}\,dx \\ \log|v^2 - 1| &= -\log|x| + \log|C_1|, \end{aligned}

    where C1≠0C_1 \ne 0 is an arbitrary constant.

    The left integral is ∫f′(v)f(v) dv=log⁡∣f(v)∣\int\frac{f'(v)}{f(v)}\,dv = \log|f(v)| with f(v)=v2−1f(v) = v^2 - 1⁠. Any real constant can be written log⁡∣C1∣\log|C_1|⁠, and this form lets the logs combine in the next step. Still one arbitrary constant.
    Section 7.3.1 (substitution) and Section 7.2, formula (xii). Basics: every method ends with an integral
  6. Remove the logs

    log⁡∣v2−1∣+log⁡∣x∣=log⁡∣C1∣log⁡∣(v2−1)x∣=log⁡∣C1∣∣(v2−1)x∣=∣C1∣(v2−1)x=±C1.\begin{aligned} \log|v^2 - 1| + \log|x| &= \log|C_1| \\ \log|(v^2 - 1)x| &= \log|C_1| \\ |(v^2 - 1)x| &= |C_1| \\ (v^2 - 1)x &= \pm C_1. \end{aligned}
    log⁡a+log⁡b=log⁡ab\log a + \log b = \log ab for positive a,ba, b⁠, and log⁡\log is one-one, so equal logs mean equal arguments. Two numbers with equal absolute values are equal or opposite, hence the ±\pm⁠.
    Laws of logarithms; log⁡\log is one-one (Chapter 5, Section 5.4). Basics: one constant for order 1
  7. Put v=yxv = \frac{y}{x} back and rename the constant

    (y2x2−1)x=±C1y2−x2x=±C1y2−x2=±C1xx2−y2=cx,where c=∓C1.\begin{aligned} \left(\frac{y^2}{x^2} - 1\right)x &= \pm C_1 \\ \frac{y^2 - x^2}{x} &= \pm C_1 \\ y^2 - x^2 &= \pm C_1x \\ x^2 - y^2 &= cx, \quad\text{where } c = \mp C_1. \end{aligned}
    Multiply by x≠0x \ne 0⁠, then multiply both sides by −1-1⁠. The new letter c=∓C1c = \mp C_1 is again one arbitrary nonzero constant; calling it cc gives exactly the family in the question.
    Section 9.4.2: replace vv to get the general solution. Lesson: Examples 10 to 13
  8. The case v2=1v^2 = 1⁠: the lines y=±xy = \pm x

    Step 4 set aside v=±1v = \pm 1⁠, the lines y=xy = x and y=−xy = -x (without the origin). On y=xy = x the slope rule gives x2+x22x⋅x=1\frac{x^2 + x^2}{2x\cdot x} = 1⁠, and the line has slope 1; on y=−xy = -x it gives 2x2−2x2=−1\frac{2x^2}{-2x^2} = -1⁠, the slope of that line. So both lines belong to the family, and they are x2−y2=0⋅xx^2 - y^2 = 0\cdot x⁠, the case c=0c = 0⁠.

    Dividing by an expression can lose solutions on which it is zero, so they must be checked separately. Here nothing is lost from the final answer: allowing c=0c = 0 in x2−y2=cxx^2 - y^2 = cx brings them back. The book does not mention this case.
    Every solution, including those set aside when dividing. Lesson: general and particular solutions
  9. Check by differentiating back

    Differentiate x2−y2=cxx^2 - y^2 = cx with respect to xx⁠: 2x−2y y′=c2x - 2y\,y' = c⁠. Put c=x2−y2xc = \frac{x^2 - y^2}{x} (from the curve itself):

    2y y′=2x−x2−y2x=x2+y2xy′=x2+y22xy,\begin{aligned} 2y\,y' &= 2x - \frac{x^2 - y^2}{x} = \frac{x^2 + y^2}{x} \\ y' &= \frac{x^2 + y^2}{2xy}, \end{aligned}

    which is (1), for every cc⁠.

    X Y X′ Y′ c = 2 c = −2 c = 0 (2, 0) (−2, 0)
    Direction field of dydx=x2+y22xy\frac{dy}{dx} = \frac{x^2 + y^2}{2xy}⁠, with equal scales, and members of the family x2−y2=cxx^2 - y^2 = cx⁠: the hyperbolas for c=2c = 2 and c=−2c = -2 (each is (x−c2)2−y2=c24\left(x - \frac{c}{2}\right)^2 - y^2 = \frac{c^2}{4}⁠, with vertices (0,0)(0, 0) and (c,0)(c, 0)⁠) and the lines y=±xy = \pm x for c=0c = 0⁠. The origin and the vertices (±2,0)(\pm 2, 0) are hollow: there x=0x = 0 or y=0y = 0⁠, where the slope is not defined, so each hyperbola branch splits at its vertex into an upper and a lower solution curve.
    Eliminating cc between the curve and its derivative recovers the slope rule, so every curve of the family has the given slope. The picture shows each curve following the little slope marks.
    Implicit differentiation (Chapter 5, Section 5.3.2). Basics: a rule for slopes
Result

The slope condition is the homogeneous equation dydx=x2+y22xy\frac{dy}{dx} = \frac{x^2 + y^2}{2xy}⁠, and its solution curves are x2−y2=cxx^2 - y^2 = cx⁠, cc an arbitrary constant (x≠0x \ne 0⁠, y≠0y \ne 0⁠); c=0c = 0 gives the lines y=±xy = \pm x⁠. Hence the family is given by x2−y2=cxx^2 - y^2 = cx⁠. (Textbook answer: x2−y2=Cxx^2 - y^2 = Cx⁠.)

Check it with numbers

Take c=2c = 2 and x=3x = 3⁠: the curve gives y2=9−6=3y^2 = 9 - 6 = 3⁠, so y=3≈1.7320508y = \sqrt3 \approx 1.7320508 on the upper branch. The slope rule gives 9+32⋅33=23≈1.1547005\frac{9 + 3}{2\cdot3\sqrt3} = \frac{2}{\sqrt3} \approx 1.1547005⁠.

The curve itself, y=x2−2xy = \sqrt{x^2 - 2x}⁠: y(3.001)≈1.7332054119y(3.001) \approx 1.7332054119 and y(2.999)≈1.7308960107y(2.999) \approx 1.7308960107⁠, so

1.7332054119−1.73089601070.002≈1.15470.\begin{aligned} &\frac{1.7332054119 - 1.7308960107}{0.002} \\ &\approx 1.15470. \end{aligned}
Common mistakes
  1. Sign slip when separating: xdvdx=1−v22vx\frac{dv}{dx} = \frac{1 - v^2}{2v}⁠, not v2−12v\frac{v^2 - 1}{2v}⁠; this decides whether you get x2−y2x^2 - y^2 or y2−x2y^2 - x^2⁠.
  2. Writing ∫2vv2−1 dv=log⁡(v2−1)\int\frac{2v}{v^2 - 1}\,dv = \log(v^2 - 1) without the absolute value; v2−1v^2 - 1 can be negative.
  3. Dropping the ±\pm when removing the logs, or not saying why the constant may be renamed cc⁠.
  4. Forgetting the lines y=±xy = \pm x set aside by the division; they are the member c=0c = 0⁠.
What to take away
  1. A rule for the slope of the tangent is a differential equation in disguise.
  2. Top and bottom of the same degree: homogeneous, put y=vxy = vx⁠.
  3. When dividing by an expression in vv⁠, check its zeros separately; they may still be solutions.
  4. With logs on both sides, write the constant as log⁡∣C1∣\log|C_1|⁠, remove the logs, and rename ±C1\pm C_1 as one constant.

Every fact used, and where it comes from

FactUsed inSource
Slope of the tangent is dydx\frac{dy}{dx}Step 1Section 9.4.1, Example 8 (Basics)
Homogeneous function of degree zero; homogeneous equationStep 2Section 9.4.2 (Basics)
y=vxy = vx⁠, dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}⁠; xdvdx=g(v)−vx\frac{dv}{dx} = g(v) - vStep 3Section 9.4.2, equations (2) to (4) (Lesson)
Separating the variablesStep 4Section 9.4.1 (Basics)
∫f′(v)f(v) dv=log⁡∣f(v)∣+C\int\frac{f'(v)}{f(v)}\,dv = \log|f(v)| + C⁠; ∫dxx=log⁡∣x∣+C\int\frac{dx}{x} = \log|x| + CStep 5Section 7.3.1; Section 7.2, formula (xii) (Basics)
log⁡a+log⁡b=log⁡ab\log a + \log b = \log ab⁠; log⁡\log is one-oneStep 6Chapter 5, Section 5.4 (Basics)
Solutions lost by a division are checked separatelyStep 8Section 9.4.1 (separating needs h(y)≠0h(y) \ne 0⁠); Section 9.3, what a solution is (Lesson)
Implicit differentiationStep 9Chapter 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 →