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

Exercise 9.4 · Q2: Homogeneous: y′=x+yxy' = \frac{x + y}{x}

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.

2. y′=x+yxy' = \dfrac{x + y}{x}

Exam answer

For x≠0x \ne 0⁠, the equation is

dydx=x+yx=F(x,y)\frac{dy}{dx} = \frac{x + y}{x} = F(x, y)

Then

F(λx,λy)=λ(x+y)λx=λ0⋅F(x,y)\begin{aligned} F(\lambda x, \lambda y) &= \frac{\lambda(x + y)}{\lambda x} \\ &= \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+vxdvdx=1\begin{aligned} v + x\frac{dv}{dx} &= 1 + v \\ x\frac{dv}{dx} &= 1 \end{aligned}

Separating the variables,

dv=dxxdv = \frac{dx}{x}

Integrating both sides,

∫dv=∫dxxv=log⁡∣x∣+C\begin{aligned} \int dv &= \int\frac{dx}{x} \\ v &= \log|x| + C \end{aligned}

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

yx=log⁡∣x∣+C\frac{y}{x} = \log|x| + C

∴\therefore y=xlog⁡∣x∣+Cxy = x\log|x| + Cx is the general solution.

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

The one idea this problem is built on

The slope x+yx=1+yx\frac{x + y}{x} = 1 + \frac{y}{x} depends only on the ratio yx\frac{y}{x}⁠, so the equation is homogeneous. After y=vxy = vx the vv on both sides cancels and we are left with xdvdx=1x\frac{dv}{dx} = 1⁠, the simplest separable equation there is.

Given, to find, and the plan
Given
y′=x+yxy' = \frac{x + y}{x}⁠, so x≠0x \ne 0⁠.
To show and find
That the equation is homogeneous; then its general solution.
Plan
(1) Name F(x,y)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=1x\frac{dv}{dx} = 1⁠. (5) Separate and integrate. (6) Put v=yxv = \frac{y}{x} back. (7) Check by differentiating.

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

3The log integral

∫dxx=log⁡∣x∣+C\int\frac{dx}{x} = \log|x| + C for x≠0x \ne 0 (Section 7.2). The bars make it work for negative xx too. Basics: every method ends with an integral

Solution

  1. Name the right side F(x,y)F(x, y)

    dydx=x+yx=F(x,y).…(1)\frac{dy}{dx} = \frac{x + y}{x} = F(x, y).\quad\ldots(1)
    The equation is already in the form dydx=F(x,y)\frac{dy}{dx} = F(x, y)⁠, so nothing is divided and nothing is lost. The only restriction is the one the question itself carries: x≠0x \ne 0⁠, because xx is in the denominator. So the solutions live on x>0x > 0 or on x<0x < 0⁠.
    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)=λx+λyλx=λ(x+y)λx=λ0⋅F(x,y).\begin{aligned} F(\lambda x, \lambda y) &= \frac{\lambda x + \lambda y}{\lambda x} = \frac{\lambda(x + y)}{\lambda x} \\ &= \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 1, so λ\lambda cancels. In the other form, F=1+yxF = 1 + \frac{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⁠, with vv a function of xx⁠. Then dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}⁠, and (1) becomes

    v+xdvdx=x+vxx=1+v.v + x\frac{dv}{dx} = \frac{x + vx}{x} = 1 + v.
    The product rule differentiates v⋅xv\cdot x⁠. Dividing x+vxx + vx by x≠0x \ne 0 leaves 1+v1 + v⁠, a function of vv only.
    Section 9.4.2, equations (2) and (3). Lesson: put y = vx
  4. Simplify to xdvdx=1x\frac{dv}{dx} = 1

    xdvdx=(1+v)−v=1.x\frac{dv}{dx} = (1 + v) - v = 1.
    Subtract vv from both sides. Here g(v)−v=1g(v) - v = 1 is never zero, so the next division (by g(v)−vg(v) - v⁠) cannot lose any solution.
    Section 9.4.2, equation (4): xdvdx=g(v)−vx\frac{dv}{dx} = g(v) - v⁠. Lesson: homogeneous equations
  5. Separate and integrate

    dv=dxx,so∫dv=∫dxx,dv = \frac{dx}{x},\quad\text{so}\quad \int dv = \int\frac{dx}{x}, v=log⁡∣x∣+C.…(2)v = \log|x| + C.\quad\ldots(2)
    Divide by x≠0x \ne 0 and multiply by dxdx⁠. Both integrals are standard; one arbitrary constant CC is enough for a first order equation. Check: ddxlog⁡∣x∣=1x\frac{d}{dx}\log|x| = \frac1x on both x>0x > 0 and x<0x < 0⁠.
    Section 9.4.2, equations (5) and (6); ∫dxx=log⁡∣x∣+C\int\frac{dx}{x} = \log|x| + C⁠. Basics: every method ends with an integral
  6. Put v=yxv = \frac{y}{x} back

    yx=log⁡∣x∣+C, soy=xlog⁡∣x∣+Cx.\begin{aligned} \frac{y}{x} &= \log|x| + C,\ \text{so} \\ y &= x\log|x| + Cx. \end{aligned}
    Multiply by xx⁠. This is an explicit formula for yy⁠, valid on x>0x > 0 and on x<0x < 0⁠; CC is any real number.
    Section 9.4.2: replace vv by yx\frac{y}{x} in (6). Basics: one constant for order 1
  7. Check: substitute the answer back

    For y=xlog⁡∣x∣+Cxy = x\log|x| + Cx⁠, the product rule gives

    y′=log⁡∣x∣+x⋅1x+C=log⁡∣x∣+1+C,\begin{aligned} y' &= \log|x| + x\cdot\frac1x + C \\ &= \log|x| + 1 + C, \end{aligned}

    and the right side of the equation is

    x+yx=x+xlog⁡∣x∣+Cxx=1+log⁡∣x∣+C.\begin{aligned} \frac{x + y}{x} &= \frac{x + x\log|x| + Cx}{x} \\ &= 1 + \log|x| + C. \end{aligned}
    The two agree for every x≠0x \ne 0 and every CC⁠, so y=xlog⁡∣x∣+Cxy = x\log|x| + Cx is the general solution.
    Product rule (Chapter 5, Section 5.3); ddxlog⁡∣x∣=1x\frac{d}{dx}\log|x| = \frac1x (Section 7.2, formula (xii)). Basics: y′ is the slope
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 y=xlog⁡∣x∣+Cxy = x\log|x| + Cx⁠, where CC is an arbitrary constant (x≠0x \ne 0⁠). (Textbook answer: y=xlog⁡∣x∣+Cxy = x\log|x| + Cx⁠.)

Check it with numbers

Take the solution through (1,2)(1, 2)⁠: 2=1⋅log⁡1+C2 = 1\cdot\log 1 + C⁠, so C=2C = 2 and y=xlog⁡∣x∣+2xy = x\log|x| + 2x⁠. At x=2x = 2⁠: y=2log⁡2+4≈5.386294y = 2\log 2 + 4 \approx 5.386294⁠.

Slope from the formula: y′=log⁡2+1+2≈3.693147y' = \log 2 + 1 + 2 \approx 3.693147⁠. Slope from the equation: x+yx≈7.3862942=3.693147\frac{x + y}{x} \approx \frac{7.386294}{2} = 3.693147⁠. They agree.

Common mistakes
  1. Writing dydx=xdvdx\frac{dy}{dx} = x\frac{dv}{dx} after putting y=vxy = vx⁠. The product rule gives v+xdvdxv + x\frac{dv}{dx}⁠.
  2. Dropping the bars: log⁡x\log x alone covers only x>0x > 0⁠; log⁡∣x∣\log|x| covers both sides of the yy-axis.
  3. Multiplying only log⁡∣x∣\log|x| by xx at the end: the constant term becomes CxCx⁠, not CC⁠.
What to take away
  1. If FF can be written as a function of yx\frac{y}{x} (here 1+yx1 + \frac{y}{x}⁠), the equation is homogeneous.
  2. After y=vxy = vx⁠, the vv terms often cancel and leave xdvdx=g(v)−vx\frac{dv}{dx} = g(v) - v⁠, which separates at once.
  3. Always check by substituting back: y′=log⁡∣x∣+1+C=x+yxy' = \log|x| + 1 + C = \frac{x + y}{x}⁠.

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)
∫dxx=log⁡∣x∣+C\int\frac{dx}{x} = \log|x| + CStep 5Section 7.2, formula (xii) (Basics)
Product rule; ddxlog⁡∣x∣=1x\frac{d}{dx}\log|x| = \frac1xStep 7Chapter 5, Section 5.3; Section 7.2, formula (xii) (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 →