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

Exercise 9.4 · Q4: Homogeneous: (x2−y2) dx+2xy dy=0(x^2 - y^2)\,dx + 2xy\,dy = 0

Exercise 9.4Homogeneous differential equations · Section 9.4.2
The question

In each of the Exercises 1 to 10, show that the given differential equation is homogeneous and solve each of them.

4. (x2−y2) dx+2xy dy=0(x^2 - y^2)\,dx + 2xy\,dy = 0

Exam answer

For x≠0x \ne 0 and y≠0y \ne 0⁠, the equation can be written as

dydx=y2−x22xy=F(x,y)\frac{dy}{dx} = \frac{y^2 - x^2}{2xy} = F(x, y)

Then

F(λx,λy)=λ2(y2−x2)λ2(2xy)=λ0⋅F(x,y)\begin{aligned} F(\lambda x, \lambda y) &= \frac{\lambda^2(y^2 - x^2)}{\lambda^2(2xy)} \\ &= \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=v2−12vxdvdx=v2−12v−v=−1+v22v\begin{aligned} v + x\frac{dv}{dx} &= \frac{v^2 - 1}{2v} \\ x\frac{dv}{dx} &= \frac{v^2 - 1}{2v} - v \\ &= -\frac{1 + v^2}{2v} \end{aligned}

Separating the variables,

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

Integrating both sides,

∫2v dv1+v2=−∫dxx\int\frac{2v\,dv}{1 + v^2} = -\int\frac{dx}{x} log⁡(1+v2)=−log⁡∣x∣+log⁡∣C∣\log(1 + v^2) = -\log|x| + \log|C| log⁡[(1+v2)∣x∣]=log⁡∣C∣(1+v2)∣x∣=∣C∣\begin{aligned} \log\left[(1 + v^2)|x|\right] &= \log|C| \\ (1 + v^2)|x| &= |C| \end{aligned}

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

x2+y2x2 ∣x∣=∣C∣x2+y2∣x∣=∣C∣\begin{aligned} \frac{x^2 + y^2}{x^2}\,|x| &= |C| \\ \frac{x^2 + y^2}{|x|} &= |C| \end{aligned}

Removing the modulus signs (the sign goes into the constant),

∴\therefore x2+y2=Cxx^2 + y^2 = Cx is the general solution.

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

The one idea this problem is built on

Every term of x2−y2x^2 - y^2 and of 2xy2xy has degree 2, so the slope depends only on yx\frac{y}{x}⁠: the equation is homogeneous. After y=vxy = vx the vv-side is 2v1+v2\frac{2v}{1 + v^2}⁠, whose top is the derivative of its bottom, so it integrates to a log. Writing the constant as log⁡∣C∣\log|C| lets everything combine, and the answer is a family of circles.

Given, to find, and the plan
Given
(x2−y2) dx+2xy dy=0(x^2 - y^2)\,dx + 2xy\,dy = 0⁠.
To show and find
That the equation is homogeneous; then its general solution.
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) Integrate, with the constant as log⁡∣C∣\log|C|⁠. (7) Put v=yxv = \frac{y}{x} back. (8) Check, and draw the circles.

Basics you need

1Homogeneous functions and equations

F(x,y)F(x, y) is homogeneous of degree nn if F(λx,λy)=λnF(x,y)F(\lambda x, \lambda y) = \lambda^nF(x, y) for every nonzero λ\lambda⁠. The equation dydx=F(x,y)\frac{dy}{dx} = F(x, y) is homogeneous when FF has degree zero (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}⁠; the equation becomes xdvdx=g(v)−vx\frac{dv}{dx} = g(v) - v⁠, which separates (Section 9.4.2, equations (2) to (6)). Lesson: homogeneous equations, put y = vx

3A log integral

∫f′(v)f(v) dv=log⁡∣f(v)∣+C\int\frac{f'(v)}{f(v)}\,dv = \log|f(v)| + C (substitution t=f(v)t = f(v)⁠); here f(v)=1+v2f(v) = 1 + v^2⁠. Also ∫dxx=log⁡∣x∣+C\int\frac{dx}{x} = \log|x| + C⁠. Basics: every method ends with an integral

4Circles

x2+y2=Cxx^2 + y^2 = Cx is (x−C2)2+y2=C24\left(x - \frac{C}{2}\right)^2 + y^2 = \frac{C^2}{4}⁠: a circle with centre (C2,0)\left(\frac{C}{2}, 0\right) and radius ∣C∣2\frac{|C|}{2}⁠.

Solution

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

    For x≠0x \ne 0⁠, y≠0y \ne 0⁠, move (x2−y2) dx(x^2 - y^2)\,dx across and divide by 2xy dx2xy\,dx⁠:

    dydx=y2−x22xy=F(x,y).…(1)\frac{dy}{dx} = \frac{y^2 - x^2}{2xy} = F(x, y).\quad\ldots(1)
    We need x≠0x \ne 0 for v=yxv = \frac{y}{x}⁠. Dividing by yy loses no solution: at a point (x0,0)(x_0, 0) with x0≠0x_0 \ne 0 the given equation reads x02 dx=0x_0^2\,dx = 0⁠, which forces dx=0dx = 0⁠, a vertical tangent. So a solution curve can only cross the xx-axis vertically, and no solution y(x)y(x) with a finite slope passes through it. (The yy-axis x=0x = 0 also satisfies the equation written with differentials, since there dx=0dx = 0 and 2xy=02xy = 0⁠; it is not a graph y(x)y(x)⁠, and it lies outside the domain x≠0x \ne 0 of v=yxv = \frac{y}{x}⁠.)
    Section 9.4.2: a homogeneous equation has 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)

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

    F(λx,λy)=λ2y2−λ2x22λx⋅λy=λ2(y2−x2)λ2(2xy)=λ0⋅F(x,y).\begin{aligned} F(\lambda x, \lambda y) &= \frac{\lambda^2y^2 - \lambda^2x^2}{2\lambda x\cdot\lambda y} \\ &= \frac{\lambda^2(y^2 - x^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 λ2\lambda^2 cancels. Dividing top and bottom by x2x^2 gives F=(y/x)2−12(y/x)F = \frac{(y/x)^2 - 1}{2(y/x)}⁠, a function of yx\frac{y}{x} alone.
    Section 9.4.2: definition of a homogeneous function of degree nn⁠. Basics: scale x and y together
  3. Substitute y=vxy = vx

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

    v+xdvdx=v2x2−x22vx2=v2−12v.v + x\frac{dv}{dx} = \frac{v^2x^2 - x^2}{2vx^2} = \frac{v^2 - 1}{2v}.
    Cancel x2≠0x^2 \ne 0⁠: the right side is a function of vv only. Here v≠0v \ne 0⁠, since y≠0y \ne 0⁠.
    Section 9.4.2, equations (2) and (3). Lesson: put y = vx
  4. Simplify to xdvdx=…x\frac{dv}{dx} = \ldots

    xdvdx=v2−12v−v=v2−1−2v22v=−1+v22v.\begin{aligned} x\frac{dv}{dx} &= \frac{v^2 - 1}{2v} - v = \frac{v^2 - 1 - 2v^2}{2v} \\ &= -\frac{1 + v^2}{2v}. \end{aligned}
    Write vv as 2v22v\frac{2v^2}{2v} and subtract: v2−1−2v2=−(1+v2)v^2 - 1 - 2v^2 = -(1 + v^2)⁠.
    Section 9.4.2, equation (4). Lesson: homogeneous equations
  5. Separate vv and xx

    2v1+v2 dv=−dxx.\frac{2v}{1 + v^2}\,dv = -\frac{dx}{x}.
    Multiply by 2v1+v2\frac{2v}{1 + v^2} and divide by xx⁠. Since 1+v2≥11 + v^2 \ge 1⁠, dividing by it loses nothing; x≠0x \ne 0 and v≠0v \ne 0 were assumed already.
    Section 9.4.2, equation (5). Basics: dy = y′ dx
  6. Integrate, with the constant as log⁡∣C∣\log|C|

    The top 2v2v is the derivative of 1+v21 + v^2⁠, so (put t=1+v2t = 1 + v^2⁠, dt=2v dvdt = 2v\,dv⁠)

    ∫2v1+v2 dv=log⁡(1+v2).\int\frac{2v}{1 + v^2}\,dv = \log(1 + v^2).

    Hence, writing the one arbitrary constant as log⁡∣C∣\log|C| (C≠0C \ne 0⁠),

    log⁡(1+v2)=−log⁡∣x∣+log⁡∣C∣.…(2)\begin{aligned} &\log(1 + v^2) \\ &= -\log|x| + \log|C|.\quad\ldots(2) \end{aligned}

    Check: ddvlog⁡(1+v2)=2v1+v2\frac{d}{dv}\log(1 + v^2) = \frac{2v}{1 + v^2}⁠, the integrand.

    log⁡∣C∣\log|C| runs over all real numbers as CC runs over the nonzero reals, so it is just as arbitrary as any other constant; this form lets the logs combine. No bars are needed on 1+v2>01 + v^2 > 0⁠.
    ∫f′f=log⁡∣f∣\int\frac{f'}{f} = \log|f| by substitution (Section 7.3.1); Section 7.2, formula (xii). Basics: every method ends with an integral
  7. Put v=yxv = \frac{y}{x} back

    Combine the logs: log⁡[(1+v2)∣x∣]=log⁡∣C∣\log\left[(1 + v^2)|x|\right] = \log|C|⁠, so (1+v2)∣x∣=∣C∣(1 + v^2)|x| = |C|⁠. With v=yxv = \frac{y}{x}⁠:

    x2+y2x2⋅∣x∣=∣C∣, that isx2+y2∣x∣=∣C∣.\begin{aligned} \frac{x^2 + y^2}{x^2}\cdot|x| &= |C|,\ \text{that is} \\ \frac{x^2 + y^2}{|x|} &= |C|. \end{aligned}

    Removing the bars, x2+y2x=±C\frac{x^2 + y^2}{x} = \pm C⁠; naming the constant CC again,

    x2+y2=Cx.x^2 + y^2 = Cx.
    Since x2+y2>0x^2 + y^2 > 0⁠, CC has the sign of xx⁠: curves with C>0C > 0 lie in x>0x > 0⁠, curves with C<0C < 0 in x<0x < 0⁠. Completing the square, (x−C2)2+y2=C24\left(x - \frac{C}{2}\right)^2 + y^2 = \frac{C^2}{4}⁠: circles through the origin with centres on the xx-axis, touching the yy-axis at OO⁠. Each circle gives two solutions y(x)y(x)⁠, its upper and lower halves, which meet the xx-axis vertically, as Step 1 predicted.
    log⁡a+log⁡b=log⁡ab\log a + \log b = \log ab⁠; log⁡A=log⁡B⇒A=B\log A = \log B \Rightarrow A = B⁠. Basics: one constant for order 1
  8. Check, and see the circles

    Differentiate x2+y2=Cxx^2 + y^2 = Cx with respect to xx⁠: 2x+2yy′=C2x + 2yy' = C⁠. Put C=x2+y2xC = \frac{x^2 + y^2}{x} and multiply by xx⁠:

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

    which is (x2−y2) dx+2xy dy=0(x^2 - y^2)\,dx + 2xy\,dy = 0⁠.

    X Y X′ Y′ (1, 1) C = 1 C = 2 C = 3 C = −2 O
    Slope field of dydx=y2−x22xy\frac{dy}{dx} = \frac{y^2 - x^2}{2xy} with equal scales, and the solution circles x2+y2=Cxx^2 + y^2 = Cx for C=1,2,3C = 1, 2, 3 and C=−2C = -2⁠. Every circle passes through the origin, has its centre (C2,0)\left(\frac{C}{2}, 0\right) on the xx-axis, and crosses the xx-axis vertically.
    We recover the given equation for every CC⁠, so x2+y2=Cxx^2 + y^2 = Cx is the general solution. With equal scales the circles look round and the slope marks lie along them.
    Implicit differentiation (Chapter 5). Basics: a rule for slopes
Result

The equation is homogeneous, since F(λx,λy)=λ0F(x,y)F(\lambda x, \lambda y) = \lambda^0F(x, y)⁠. Its general solution is x2+y2=Cxx^2 + y^2 = Cx⁠, where CC is an arbitrary constant (x≠0x \ne 0⁠, y≠0y \ne 0⁠): circles through the origin with centres on the xx-axis. (Textbook answer: x2+y2=Cxx^2 + y^2 = Cx⁠.)

Check it with numbers

Take the circle through (1,1)(1, 1)⁠: 1+1=C⋅11 + 1 = C\cdot1⁠, so C=2C = 2⁠, the circle (x−1)2+y2=1(x - 1)^2 + y^2 = 1⁠. At x=1.5x = 1.5 its upper half has y=3−2.25=0.75≈0.866025y = \sqrt{3 - 2.25} = \sqrt{0.75} \approx 0.866025⁠.

Slope from the equation: y2−x22xy≈0.75−2.252.598076≈−0.577350\frac{y^2 - x^2}{2xy} \approx \frac{0.75 - 2.25}{2.598076} \approx -0.577350⁠. Slope of the circle: −x−1y≈−0.50.866025≈−0.577350-\frac{x - 1}{y} \approx -\frac{0.5}{0.866025} \approx -0.577350⁠. They agree.

Common mistakes
  1. A sign slip in dydx\frac{dy}{dx}⁠: moving (x2−y2) dx(x^2 - y^2)\,dx across gives y2−x22xy\frac{y^2 - x^2}{2xy}⁠, not x2−y22xy\frac{x^2 - y^2}{2xy}⁠.
  2. Forgetting to subtract vv when moving it across: xdvdx=v2−12v−vx\frac{dv}{dx} = \frac{v^2 - 1}{2v} - v⁠.
  3. Writing the constant as + C+\,C and then struggling to combine: log⁡∣C∣\log|C| is the neat choice here.
What to take away
  1. Homogeneous: F(λx,λy)=λ0F(x,y)F(\lambda x, \lambda y) = \lambda^0F(x, y)⁠; then y=vxy = vx and separate.
  2. When the top is the derivative of the bottom, the integral is a log; a log⁡∣C∣\log|C| constant then combines everything.
  3. x2+y2=Cxx^2 + y^2 = Cx is a family of circles through the origin, centres on the xx-axis.

Every fact used, and where it comes from

FactUsed inSource
Homogeneous function of degree nn⁠; homogeneous equation when FF has degree zeroSteps 1, 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) - v⁠; separate and integrateSteps 3, 4, 5, 6Section 9.4.2, equations (1) to (6) (Lesson)
∫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 6Section 7.3.1; Section 7.2, formula (xii) (Basics)
log⁡a+log⁡b=log⁡ab\log a + \log b = \log abStep 7Chapter 5, Section 5.4 (Basics)
Circle (x−h)2+y2=r2(x - h)^2 + y^2 = r^2Steps 7, 8Class 11, Conic Sections
Implicit differentiationStep 8Chapter 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 →