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

Exercise 9.4 · Q7: Homogeneous: {xcos⁡yx+ysin⁡yx}y dx\{x\cos\frac{y}{x} + y\sin\frac{y}{x}\}y\,dx ={ysin⁡yx−xcos⁡yx}x dy= \{y\sin\frac{y}{x} - x\cos\frac{y}{x}\}x\,dy

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.

7. {xcos⁡(yx)+ysin⁡(yx)}y dx\left\{x\cos\left(\dfrac{y}{x}\right) + y\sin\left(\dfrac{y}{x}\right)\right\}y\,dx ={ysin⁡(yx)−xcos⁡(yx)}x dy= \left\{y\sin\left(\dfrac{y}{x}\right) - x\cos\left(\dfrac{y}{x}\right)\right\}x\,dy

Exam answer

For x≠0x \ne 0 and ysin⁡yx≠xcos⁡yxy\sin\frac{y}{x} \ne x\cos\frac{y}{x}⁠, the equation can be written as

dydx=(xcos⁡yx+ysin⁡yx)y(ysin⁡yx−xcos⁡yx)x=F(x,y)\begin{aligned} \frac{dy}{dx} &= \frac{\left(x\cos\frac{y}{x} + y\sin\frac{y}{x}\right)y}{\left(y\sin\frac{y}{x} - x\cos\frac{y}{x}\right)x} \\ &= F(x, y) \end{aligned}

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

F(λx,λy)=λ2(xcos⁡yx+ysin⁡yx)yλ2(ysin⁡yx−xcos⁡yx)x=λ0⋅F(x,y)\begin{aligned} &F(\lambda x, \lambda y) \\ &= \frac{\lambda^2\left(x\cos\frac{y}{x} + y\sin\frac{y}{x}\right)y}{\lambda^2\left(y\sin\frac{y}{x} - x\cos\frac{y}{x}\right)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(cos⁡v+vsin⁡v)vsin⁡v−cos⁡vxdvdx=vcos⁡v+v2sin⁡vvsin⁡v−cos⁡v−v=2vcos⁡vvsin⁡v−cos⁡v\begin{aligned} v + x\frac{dv}{dx} &= \frac{v(\cos v + v\sin v)}{v\sin v - \cos v} \\ x\frac{dv}{dx} &= \frac{v\cos v + v^2\sin v}{v\sin v - \cos v} - v \\ &= \frac{2v\cos v}{v\sin v - \cos v} \end{aligned}

Separating the variables,

vsin⁡v−cos⁡vvcos⁡v dv=2 dxx(tan⁡v−1v)dv=2 dxx\begin{aligned} \frac{v\sin v - \cos v}{v\cos v}\,dv &= \frac{2\,dx}{x} \\ \left(\tan v - \frac1v\right)dv &= \frac{2\,dx}{x} \end{aligned}

Integrating both sides,

log⁡∣sec⁡v∣−log⁡∣v∣=2log⁡∣x∣+log⁡∣C1∣\begin{aligned} &\log|\sec v| - \log|v| \\ &= 2\log|x| + \log|C_1| \end{aligned} log⁡∣sec⁡vv∣=log⁡∣C1x2∣\log\left|\frac{\sec v}{v}\right| = \log\left|C_1x^2\right|

So 1vcos⁡v=±C1x2\frac{1}{v\cos v} = \pm C_1x^2⁠, that is, x2vcos⁡v=Cx^2v\cos v = C⁠, where C=±1C1C = \pm\frac{1}{C_1}⁠. Putting v=yxv = \frac{y}{x}⁠,

∴\therefore xycos⁡(yx)=Cxy\cos\left(\dfrac{y}{x}\right) = C is the general solution.

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

The one idea this problem is built on

Inside the cosine and sine, xx and yy appear only as yx\frac{y}{x}⁠; outside, both brackets have degree 1 and are multiplied by yy and by xx⁠. So both sides have degree 2 and the slope depends only on yx\frac{y}{x}⁠: homogeneous. After y=vxy = vx the vv-integral is tan⁡v−1v\tan v - \frac1v⁠, two standard logs, and the constant written as log⁡∣C1∣\log|C_1| makes the answer a single product.

Given, to find, and the plan
Given
{xcos⁡yx+ysin⁡yx}y dx\left\{x\cos\frac{y}{x} + y\sin\frac{y}{x}\right\}y\,dx ={ysin⁡yx−xcos⁡yx}x dy= \left\{y\sin\frac{y}{x} - x\cos\frac{y}{x}\right\}x\,dy⁠, 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. (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). Any function of yx\frac{y}{x} has degree zero, since λyλx=yx\frac{\lambda y}{\lambda x} = \frac{y}{x}⁠. 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). Compare Example 11, which has the same kind of trigonometric terms. Lesson: homogeneous equations, put y = vx

3Two standard integrals

∫tan⁡v dv=log⁡∣sec⁡v∣+C\int\tan v\,dv = \log|\sec v| + C (Section 7.3.1) and ∫dvv=log⁡∣v∣+C\int\frac{dv}{v} = \log|v| + C (Section 7.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 {ysin⁡yx−xcos⁡yx}x dx\left\{y\sin\frac{y}{x} - x\cos\frac{y}{x}\right\}x\,dx⁠, assuming it is not zero:

    dydx=(xcos⁡yx+ysin⁡yx)y(ysin⁡yx−xcos⁡yx)x=F(x,y).…(1)\begin{aligned} \frac{dy}{dx} &= \frac{\left(x\cos\frac{y}{x} + y\sin\frac{y}{x}\right)y}{\left(y\sin\frac{y}{x} - x\cos\frac{y}{x}\right)x} \\ &= F(x, y).\quad\ldots(1) \end{aligned}
    x≠0x \ne 0 is needed for yx\frac{y}{x}⁠. Where ysin⁡yx=xcos⁡yxy\sin\frac{y}{x} = x\cos\frac{y}{x} (with v=yxv = \frac{y}{x}⁠: vsin⁡v=cos⁡vv\sin v = \cos v⁠), the coefficient of dydy is 0, and the equation reads x(cos⁡v+vsin⁡v) y dx=0x(\cos v + v\sin v)\,y\,dx = 0⁠. There cos⁡v+vsin⁡v=2cos⁡v≠0\cos v + v\sin v = 2\cos v \ne 0 (if cos⁡v=0\cos v = 0⁠, then vsin⁡v=0v\sin v = 0 would force v=0v = 0⁠, but cos⁡0≠0\cos 0 \ne 0⁠), and y=vx≠0y = vx \ne 0 (since v=0v = 0 gives 0≠cos⁡00 \ne \cos 0⁠). So dx=0dx = 0⁠: a vertical tangent, and no solution y(x)y(x) with a finite slope passes through such a point. The division loses nothing.
    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 the cosines and sines do not change, while the outside factors each pick up λ2\lambda^2⁠:

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

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

    For instance λxcos⁡λyλx⋅λy=λ2 xycos⁡yx\lambda x\cos\frac{\lambda y}{\lambda x}\cdot\lambda y = \lambda^2\,xy\cos\frac{y}{x}⁠. Each term on top and on the bottom has one factor from the bracket (degree 1) and one outside (degree 1).
    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 yx=v\frac{y}{x} = v and dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}⁠. The top of (1) is (xcos⁡v+vxsin⁡v)vx=vx2(cos⁡v+vsin⁡v)(x\cos v + vx\sin v)vx = vx^2(\cos v + v\sin v)⁠, the bottom is (vxsin⁡v−xcos⁡v)x=x2(vsin⁡v−cos⁡v)(vx\sin v - x\cos v)x = x^2(v\sin v - \cos v)⁠, so

    v+xdvdx=v(cos⁡v+vsin⁡v)vsin⁡v−cos⁡v.v + x\frac{dv}{dx} = \frac{v(\cos v + v\sin v)}{v\sin v - \cos v}.
    The factor x2≠0x^2 \ne 0 cancels, leaving a function of vv only.
    Section 9.4.2, equations (2) and (3). Lesson: put y = vx
  4. Simplify to xdvdx=…x\frac{dv}{dx} = \ldots

    xdvdx=vcos⁡v+v2sin⁡vvsin⁡v−cos⁡v−v=2vcos⁡vvsin⁡v−cos⁡v.\begin{aligned} x\frac{dv}{dx} &= \frac{v\cos v + v^2\sin v}{v\sin v - \cos v} - v \\ &= \frac{2v\cos v}{v\sin v - \cos v}. \end{aligned}
    Subtract vv over the common denominator: the top becomes vcos⁡v+v2sin⁡v−v(vsin⁡v−cos⁡v)v\cos v + v^2\sin v - v(v\sin v - \cos v)⁠. The v2sin⁡vv^2\sin v terms cancel and the two vcos⁡vv\cos v terms add, giving 2vcos⁡v2v\cos v⁠.
    Section 9.4.2, equation (4). Lesson: homogeneous equations
  5. Separate vv and xx⁠, and see what is set aside

    vsin⁡v−cos⁡vvcos⁡v dv=2 dxx, that is(tan⁡v−1v)dv=2 dxx.\begin{aligned} \frac{v\sin v - \cos v}{v\cos v}\,dv &= \frac{2\,dx}{x},\ \text{that is} \\ \left(\tan v - \frac1v\right)dv &= \frac{2\,dx}{x}. \end{aligned}
    Dividing by vcos⁡vv\cos v needs v≠0v \ne 0 and cos⁡v≠0\cos v \ne 0⁠. Each excluded constant vv makes 2vcos⁡v=02v\cos v = 0⁠, so it is a solution: y=0y = 0 (from v=0v = 0⁠) and the lines y=kxy = kx with cos⁡k=0\cos k = 0⁠, that is k=π2,−π2,3π2,…k = \frac{\pi}{2}, -\frac{\pi}{2}, \frac{3\pi}{2}, \ldots We will see in Step 7 that they all come back with C=0C = 0⁠. Splitting: vsin⁡vvcos⁡v=tan⁡v\frac{v\sin v}{v\cos v} = \tan v and cos⁡vvcos⁡v=1v\frac{\cos v}{v\cos v} = \frac1v⁠.
    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⁡∣C1∣\log|C_1|

    log⁡∣sec⁡v∣−log⁡∣v∣=2log⁡∣x∣+log⁡∣C1∣.…(2)\begin{aligned} &\log|\sec v| - \log|v| \\ &= 2\log|x| + \log|C_1|.\quad\ldots(2) \end{aligned}

    Check by differentiating the left side: sec⁡vtan⁡vsec⁡v−1v=tan⁡v−1v\frac{\sec v\tan v}{\sec v} - \frac1v = \tan v - \frac1v⁠, the integrand.

    ∫tan⁡v dv=log⁡∣sec⁡v∣\int\tan v\,dv = \log|\sec v| and ∫dvv=log⁡∣v∣\int\frac{dv}{v} = \log|v|⁠; on the right, ∫2 dxx=2log⁡∣x∣\int\frac{2\,dx}{x} = 2\log|x|⁠. Writing the one constant as log⁡∣C1∣\log|C_1| (C1≠0C_1 \ne 0⁠) lets all the logs combine.
    Section 7.3.1, ∫tan⁡x dx=log⁡∣sec⁡x∣+C\int\tan x\,dx = \log|\sec x| + C⁠; Section 7.2, formula (xii). Basics: every method ends with an integral
  7. Combine the logs and put v=yxv = \frac{y}{x} back

    Combine: log⁡∣sec⁡vv∣=log⁡∣C1x2∣\log\left|\frac{\sec v}{v}\right| = \log\left|C_1x^2\right|⁠, so 1vcos⁡v=±C1x2\frac{1}{v\cos v} = \pm C_1x^2⁠. Turning it over, x2vcos⁡v=Cx^2v\cos v = C with C=±1C1C = \pm\frac{1}{C_1}⁠. With v=yxv = \frac{y}{x}⁠, x2v=xyx^2v = xy⁠:

    xycos⁡(yx)=C.xy\cos\left(\frac{y}{x}\right) = C.
    CC so far is any nonzero number. The value C=0C = 0 gives xycos⁡yx=0xy\cos\frac{y}{x} = 0⁠, that is y=0y = 0 or cos⁡yx=0\cos\frac{y}{x} = 0⁠: exactly the solutions set aside in Step 5. So with CC any real number the one relation contains every solution. It holds for x≠0x \ne 0⁠. (The book's key prints xycos⁡∣yx∣=Cxy\cos\left|\frac{y}{x}\right| = C⁠; since cosine is even, cos⁡∣yx∣=cos⁡yx\cos\left|\frac{y}{x}\right| = \cos\frac{y}{x}⁠, so it is the same answer.)
    log⁡a−log⁡b=log⁡ab\log a - \log b = \log\frac{a}{b}⁠; log⁡∣A∣=log⁡∣B∣⇒A=±B\log|A| = \log|B| \Rightarrow A = \pm B⁠. Basics: one constant for order 1
  8. Check: differentiate the answer back

    Write v=yxv = \frac{y}{x}⁠, so dvdx=xy′−yx2\frac{dv}{dx} = \frac{xy' - y}{x^2}⁠. Differentiating xycos⁡v=Cxy\cos v = C with respect to xx (product rule):

    (y+xy′)cos⁡v−xysin⁡v⋅xy′−yx2=0.(y + xy')\cos v - xy\sin v\cdot\frac{xy' - y}{x^2} = 0.

    Multiply by xx and collect the y′y' terms:

    xycos⁡v+x2y′cos⁡v−xyy′sin⁡v+y2sin⁡v=0,y′ x(ysin⁡v−xcos⁡v)=y(xcos⁡v+ysin⁡v),\begin{aligned} &xy\cos v + x^2y'\cos v \\ &\quad - xyy'\sin v + y^2\sin v = 0, \\ &y'\,x(y\sin v - x\cos v) \\ &\quad = y(x\cos v + y\sin v), \end{aligned}

    which is the given equation. (The lines of Step 5 were checked there.)

    We recover the equation for every CC⁠, so xycos⁡yx=Cxy\cos\frac{y}{x} = C is the general solution.
    Implicit differentiation, product and chain rules (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 xycos⁡(yx)=Cxy\cos\left(\frac{y}{x}\right) = C⁠, where CC is an arbitrary constant (x≠0x \ne 0⁠); C=0C = 0 gives the solutions y=0y = 0 and cos⁡yx=0\cos\frac{y}{x} = 0⁠. (Textbook answer: xycos⁡∣yx∣=Cxy\cos\left|\frac{y}{x}\right| = C⁠, the same, because cos⁡∣yx∣=cos⁡yx\cos\left|\frac{y}{x}\right| = \cos\frac{y}{x}⁠.)

Check it with numbers

Take the curve through (1,π4)\left(1, \frac{\pi}{4}\right)⁠: C=1⋅π4cos⁡π4=π28≈0.555360C = 1\cdot\frac{\pi}{4}\cos\frac{\pi}{4} = \frac{\pi\sqrt2}{8} \approx 0.555360⁠. Solving 1.5 ycos⁡y1.5=C1.5\,y\cos\frac{y}{1.5} = C numerically, the curve passes through (1.5, 0.3826207)(1.5,\ 0.3826207)⁠, and there xycos⁡yx≈0.555360xy\cos\frac{y}{x} \approx 0.555360⁠.

The equation gives the slope ≈−0.2914\approx -0.2914 there. The curve itself: y(1.501)≈0.3823295382y(1.501) \approx 0.3823295382 and y(1.499)≈0.3829124022y(1.499) \approx 0.3829124022⁠, so

0.3823295382−0.38291240220.002≈−0.2914.\begin{aligned} &\frac{0.3823295382 - 0.3829124022}{0.002} \\ &\approx -0.2914. \end{aligned}
Common mistakes
  1. Losing a vv when substituting: the top is vx2(cos⁡v+vsin⁡v)vx^2(\cos v + v\sin v)⁠; the factor vv comes from the outside y=vxy = vx⁠.
  2. Forgetting the 2 in 2vcos⁡v2v\cos v⁠: the two vcos⁡vv\cos v terms add.
  3. ∫tan⁡v dv=log⁡∣cos⁡v∣\int\tan v\,dv = \log|\cos v|⁠. It is −log⁡∣cos⁡v∣=log⁡∣sec⁡v∣-\log|\cos v| = \log|\sec v|⁠.
  4. Requiring C≠0C \ne 0 and so losing the line solutions y=0y = 0 and cos⁡yx=0\cos\frac{y}{x} = 0⁠.
What to take away
  1. Functions of yx\frac{y}{x} are unchanged by scaling; count the degree of everything outside them.
  2. vsin⁡v−cos⁡vvcos⁡v=tan⁡v−1v\frac{v\sin v - \cos v}{v\cos v} = \tan v - \frac1v⁠: split a fraction before integrating.
  3. A log⁡∣C1∣\log|C_1| constant turns a sum of logs into one product, here xycos⁡yx=Cxy\cos\frac{y}{x} = C⁠.

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)
∫tan⁡x dx=log⁡∣sec⁡x∣+C\int\tan x\,dx = \log|\sec x| + CStep 6Section 7.3.1, standard integral (i) (Basics)
∫dxx=log⁡∣x∣+C\int\frac{dx}{x} = \log|x| + CStep 6Section 7.2, formula (xii)
log⁡a−log⁡b=log⁡ab\log a - \log b = \log\frac{a}{b}⁠; cos⁡(−θ)=cos⁡θ\cos(-\theta) = \cos\thetaStep 7Chapter 5, Section 5.4 (Basics); Class 11, Trigonometric Functions
Implicit differentiation; product and chain rulesStep 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 →