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

Exercise 9.4 · Q8: Homogeneous: xdydx−y+xsin⁡yx=0x\frac{dy}{dx} - y + x\sin\frac{y}{x} = 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.

8. xdydx−y+xsin⁡(yx)=0x\dfrac{dy}{dx} - y + x\sin\left(\dfrac{y}{x}\right) = 0

Exam answer

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

dydx=y−xsin⁡yxx=F(x,y)\frac{dy}{dx} = \frac{y - x\sin\frac{y}{x}}{x} = F(x, y)

Replacing xx by λx\lambda x and yy by λy\lambda y leaves yx\frac{y}{x} unchanged, so

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

Separating the variables,

cosec⁡v dv=−dxx\operatorname{cosec}v\,dv = -\frac{dx}{x}

Integrating both sides,

log⁡∣cosec⁡v−cot⁡v∣=−log⁡∣x∣+log⁡∣C∣\begin{aligned} &\log|\operatorname{cosec}v - \cot v| \\ &= -\log|x| + \log|C| \end{aligned}

Combining the logs (the sign goes into CC⁠),

x(cosec⁡v−cot⁡v)=Cx⋅1−cos⁡vsin⁡v=C\begin{aligned} x(\operatorname{cosec}v - \cot v) &= C \\ x\cdot\frac{1 - \cos v}{\sin v} &= C \end{aligned}

Putting v=yxv = \frac{y}{x} and multiplying by sin⁡yx\sin\frac{y}{x}⁠,

∴\therefore x[1−cos⁡(yx)]x\left[1 - \cos\left(\dfrac{y}{x}\right)\right] =Csin⁡(yx)= C\sin\left(\dfrac{y}{x}\right) is the general solution.

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

The one idea this problem is built on

Divide by xx⁠: the slope yx−sin⁡yx\frac{y}{x} - \sin\frac{y}{x} depends only on yx\frac{y}{x}⁠, so the equation is homogeneous. After y=vxy = vx the vv cancels and xdvdx=−sin⁡vx\frac{dv}{dx} = -\sin v separates into cosec⁡v dv=−dxx\operatorname{cosec}v\,dv = -\frac{dx}{x}⁠, whose integral is the standard log⁡∣cosec⁡v−cot⁡v∣\log|\operatorname{cosec}v - \cot v|⁠.

Given, to find, and the plan
Given
xdydx−y+xsin⁡yx=0x\frac{dy}{dx} - y + x\sin\frac{y}{x} = 0⁠, with x≠0x \ne 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=−sin⁡vx\frac{dv}{dx} = -\sin v⁠. (5) Separate, noting what is set aside. (6) Integrate. (7) Put v=yxv = \frac{y}{x} back. (8) Check.

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). Lesson: homogeneous equations, put y = vx

3The cosec integral

∫cosec⁡v dv=log⁡∣cosec⁡v−cot⁡v∣+C\int\operatorname{cosec}v\,dv = \log|\operatorname{cosec}v - \cot v| + C (Section 7.3.1). Also cosec⁡v−cot⁡v=1−cos⁡vsin⁡v=tan⁡v2\operatorname{cosec}v - \cot v = \frac{1 - \cos v}{\sin v} = \tan\frac{v}{2}⁠. Basics: every method ends with an integral

Solution

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

    Divide by x≠0x \ne 0⁠:

    dydx=y−xsin⁡yxx=F(x,y).…(1)\frac{dy}{dx} = \frac{y - x\sin\frac{y}{x}}{x} = F(x, y).\quad\ldots(1)
    The question itself needs x≠0x \ne 0⁠, because of yx\frac{y}{x}⁠. So dividing by xx loses nothing: 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⁠, λyλx=yx\frac{\lambda y}{\lambda x} = \frac{y}{x}⁠, so

    F(λx,λy)=λy−λxsin⁡yxλx=λ(y−xsin⁡yx)λx=λ0⋅F(x,y).\begin{aligned} F(\lambda x, \lambda y) &= \frac{\lambda y - \lambda x\sin\frac{y}{x}}{\lambda x} \\ &= \frac{\lambda\left(y - x\sin\frac{y}{x}\right)}{\lambda x} \\ &= \lambda^0\cdot F(x, y). \end{aligned}

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

    The sine does not change under scaling; the top and the bottom each pick up one λ\lambda⁠. Equivalently, F=yx−sin⁡yxF = \frac{y}{x} - \sin\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⁠. Then dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}⁠, and (1) becomes

    v+xdvdx=vx−xsin⁡vx=v−sin⁡v.v + x\frac{dv}{dx} = \frac{vx - x\sin v}{x} = v - \sin v.
    Cancel x≠0x \ne 0⁠: the right side is a function of vv only.
    Section 9.4.2, equations (2) and (3). Lesson: put y = vx
  4. Simplify to xdvdx=−sin⁡vx\frac{dv}{dx} = -\sin v

    xdvdx=v−sin⁡v−v=−sin⁡v.x\frac{dv}{dx} = v - \sin v - v = -\sin v.
    Subtract vv from both sides; the vv terms cancel.
    Section 9.4.2, equation (4). Lesson: homogeneous equations
  5. Separate vv and xx⁠, and see what is set aside

    dvsin⁡v=−dxx, that iscosec⁡v dv=−dxx.\begin{aligned} \frac{dv}{\sin v} &= -\frac{dx}{x},\ \text{that is} \\ \operatorname{cosec}v\,dv &= -\frac{dx}{x}. \end{aligned}
    Dividing by sin⁡v\sin v needs sin⁡v≠0\sin v \ne 0⁠. Each excluded constant v=kπv = k\pi (kk an integer) makes −sin⁡v=0-\sin v = 0⁠, so the lines y=kπxy = k\pi x are solutions. (Check: x⋅kπ−kπx+xsin⁡kπ=0x\cdot k\pi - k\pi x + x\sin k\pi = 0⁠.) Step 7 shows which of them the final answer contains.
    Section 9.4.2, equation (5); separating as in Section 9.4.1, which needs the divisor to be nonzero, so its zeros are checked separately. Basics: dy = y′ dx
  6. Integrate, with the constant as log⁡∣C∣\log|C|

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

    Check by differentiating the left side:

    −cosec⁡vcot⁡v+cosec⁡2vcosec⁡v−cot⁡v=cosec⁡v(cosec⁡v−cot⁡v)cosec⁡v−cot⁡v=cosec⁡v.\begin{aligned} &\frac{-\operatorname{cosec}v\cot v + \operatorname{cosec}^2v}{\operatorname{cosec}v - \cot v} \\ &= \frac{\operatorname{cosec}v(\operatorname{cosec}v - \cot v)}{\operatorname{cosec}v - \cot v} = \operatorname{cosec}v. \end{aligned}
    The constant is written as log⁡∣C∣\log|C| (C≠0C \ne 0⁠) so that the logs combine. The check uses ddvcosec⁡v=−cosec⁡vcot⁡v\frac{d}{dv}\operatorname{cosec}v = -\operatorname{cosec}v\cot v and ddvcot⁡v=−cosec⁡2v\frac{d}{dv}\cot v = -\operatorname{cosec}^2v⁠.
    Section 7.3.1, standard integral (iv); Section 7.2, formula (xii). Basics: every method ends with an integral
  7. Combine the logs and put v=yxv = \frac{y}{x} back

    From (2), log⁡∣x(cosec⁡v−cot⁡v)∣=log⁡∣C∣\log|x(\operatorname{cosec}v - \cot v)| = \log|C|⁠, so x(cosec⁡v−cot⁡v)=Cx(\operatorname{cosec}v - \cot v) = C (the sign goes into CC⁠). Since cosec⁡v−cot⁡v=1−cos⁡vsin⁡v\operatorname{cosec}v - \cot v = \frac{1 - \cos v}{\sin v}⁠, multiplying by sin⁡v\sin v and putting v=yxv = \frac{y}{x}⁠:

    x[1−cos⁡(yx)]=Csin⁡(yx).x\left[1 - \cos\left(\frac{y}{x}\right)\right] = C\sin\left(\frac{y}{x}\right).
    Because 1−cos⁡vsin⁡v=2sin⁡2v22sin⁡v2cos⁡v2=tan⁡v2\frac{1 - \cos v}{\sin v} = \frac{2\sin^2\frac{v}{2}}{2\sin\frac{v}{2}\cos\frac{v}{2}} = \tan\frac{v}{2}⁠, the answer is also xtan⁡y2x=Cx\tan\frac{y}{2x} = C⁠. In that form C=0C = 0 gives tan⁡y2x=0\tan\frac{y}{2x} = 0⁠, the lines y=2mπxy = 2m\pi x (mm an integer) of Step 5. (In the multiplied form above, those lines satisfy the relation for every CC⁠, since both sides are 0 there.) The other lines of Step 5, y=(2m+1)πxy = (2m + 1)\pi x⁠, are not given by any CC⁠: there the left side is 2x≠02x \ne 0 and the right side is 0. They are extra solutions set aside by the division by sin⁡v\sin v⁠; the book's answer does not list them either.
    1−cos⁡v=2sin⁡2v21 - \cos v = 2\sin^2\frac{v}{2}⁠, sin⁡v=2sin⁡v2cos⁡v2\sin v = 2\sin\frac{v}{2}\cos\frac{v}{2}⁠. Basics: one constant for order 1
  8. Check: differentiate the answer back

    Use the form xtan⁡v2=Cx\tan\frac{v}{2} = C with v=yxv = \frac{y}{x}⁠, dvdx=xy′−yx2\frac{dv}{dx} = \frac{xy' - y}{x^2}⁠:

    tan⁡v2+x⋅12sec⁡2v2⋅xy′−yx2=0.\tan\frac{v}{2} + x\cdot\frac12\sec^2\frac{v}{2}\cdot\frac{xy' - y}{x^2} = 0.

    Multiply by 2xcos⁡2v22x\cos^2\frac{v}{2}⁠:

    2xsin⁡v2cos⁡v2+(xy′−y)=0xsin⁡v+xy′−y=0,\begin{aligned} 2x\sin\frac{v}{2}\cos\frac{v}{2} + (xy' - y) &= 0 \\ x\sin v + xy' - y &= 0, \end{aligned}

    that is xdydx−y+xsin⁡yx=0x\frac{dy}{dx} - y + x\sin\frac{y}{x} = 0⁠, the given equation.

    We recover the equation for every CC⁠, so the relation is the general solution. 2sin⁡v2cos⁡v2=sin⁡v2\sin\frac{v}{2}\cos\frac{v}{2} = \sin v⁠.
    Implicit differentiation; ddutan⁡u=sec⁡2u\frac{d}{du}\tan u = \sec^2u (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 x[1−cos⁡(yx)]=Csin⁡(yx)x\left[1 - \cos\left(\frac{y}{x}\right)\right] = C\sin\left(\frac{y}{x}\right)⁠, where CC is an arbitrary constant (x≠0x \ne 0⁠); equivalently xtan⁡y2x=Cx\tan\frac{y}{2x} = C⁠. The lines y=(2m+1)πxy = (2m + 1)\pi x are also solutions, not contained in this family. (Textbook answer: x[1−cos⁡(yx)]=Csin⁡(yx)x\left[1 - \cos\left(\frac{y}{x}\right)\right] = C\sin\left(\frac{y}{x}\right)⁠.)

Check it with numbers

Take the curve through (1,π2)\left(1, \frac{\pi}{2}\right)⁠: 1⋅(1−0)=C⋅11\cdot(1 - 0) = C\cdot1⁠, so C=1C = 1⁠, and xtan⁡y2x=1x\tan\frac{y}{2x} = 1 gives y=2xtan⁡−11xy = 2x\tan^{-1}\frac1x⁠. At x=2x = 2⁠: y=4tan⁡−10.5≈1.854590y = 4\tan^{-1}0.5 \approx 1.854590⁠, so v=yx≈0.927295v = \frac{y}{x} \approx 0.927295⁠, with sin⁡v=0.8\sin v = 0.8 and cos⁡v=0.6\cos v = 0.6 exactly (since tan⁡v2=12\tan\frac{v}{2} = \frac12⁠). Then x(1−cos⁡v)=2×0.4=0.8=Csin⁡vx(1 - \cos v) = 2\times0.4 = 0.8 = C\sin v⁠.

Slope from the equation: yx−sin⁡yx≈0.927295−0.8=0.127295\frac{y}{x} - \sin\frac{y}{x} \approx 0.927295 - 0.8 = 0.127295⁠. Slope of y=2xtan⁡−11xy = 2x\tan^{-1}\frac1x⁠: y′=2tan⁡−11x−2xx2+1y' = 2\tan^{-1}\frac1x - \frac{2x}{x^2 + 1} ≈0.927295−0.8=0.127295\approx 0.927295 - 0.8 = 0.127295⁠. They agree.

Common mistakes
  1. Sign slips: xdydx=y−xsin⁡yxx\frac{dy}{dx} = y - x\sin\frac{y}{x}⁠, so xdvdx=−sin⁡vx\frac{dv}{dx} = -\sin v⁠, and the right side becomes −log⁡∣x∣-\log|x|⁠.
  2. ∫cosec⁡v dv=log⁡∣cosec⁡v+cot⁡v∣\int\operatorname{cosec}v\,dv = \log|\operatorname{cosec}v + \cot v|⁠. That has the wrong sign; it is log⁡∣cosec⁡v−cot⁡v∣\log|\operatorname{cosec}v - \cot v|⁠.
  3. Thinking every solution is in the family. The lines y=(2m+1)πxy = (2m + 1)\pi x are solutions that no CC gives.
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. ∫cosec⁡v dv=log⁡∣cosec⁡v−cot⁡v∣\int\operatorname{cosec}v\,dv = \log|\operatorname{cosec}v - \cot v|⁠, which is log⁡∣tan⁡v2∣\log\left|\tan\frac{v}{2}\right|⁠.
  3. Zeros of g(v)−vg(v) - v give straight-line solutions; check which ones the final formula keeps.

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)
Solutions set aside by a division are checked separatelySteps 5, 7Section 9.4.1 (separating needs h(y)≠0h(y) \ne 0⁠); Section 9.3, what a solution is (Lesson)
∫cosec⁡x dx=log⁡∣cosec⁡x−cot⁡x∣+C\int\operatorname{cosec}x\,dx = \log|\operatorname{cosec}x - \cot x| + CStep 6Section 7.3.1, standard integral (iv) (Basics)
∫dxx=log⁡∣x∣+C\int\frac{dx}{x} = \log|x| + CStep 6Section 7.2, formula (xii)
1−cos⁡v=2sin⁡2v21 - \cos v = 2\sin^2\frac{v}{2}⁠, sin⁡v=2sin⁡v2cos⁡v2\sin v = 2\sin\frac{v}{2}\cos\frac{v}{2}Steps 7, 8Class 11, Trigonometric Functions
Implicit differentiation; chain ruleStep 8Chapter 5, Sections 5.3.1 and 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 →