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

Exercise 9.4 · Q13: Particular solution of [xsin⁡2yx−y]dx+x dy=0\left[x\sin^2\frac{y}{x} - y\right]dx + x\,dy = 0⁠, y(1)=π4y(1) = \frac{\pi}{4}

Exercise 9.4Homogeneous differential equations, particular solution · Section 9.4.2
The question

For each of the differential equations in Exercises from 11 to 15, find the particular solution satisfying the given condition:

13. [xsin⁡2(yx)−y]dx+x dy=0\left[x\sin^2\left(\dfrac{y}{x}\right) - y\right]dx + x\,dy = 0⁠; y=π4y = \dfrac{\pi}{4} when x=1x = 1

Exam answer

The equation can be written as

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

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

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

Separating the variables,

cosec2v dv=−dxx\text{cosec}^2v\,dv = -\frac{dx}{x}

Integrating both sides,

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

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

cot⁡yx=log⁡∣x∣+C…(i)\cot\frac{y}{x} = \log|x| + C\quad\ldots(\text{i})

Putting x=1x = 1⁠, y=π4y = \frac{\pi}{4} in (i),

cot⁡π4=log⁡1+C  ⇒  C=1\cot\frac{\pi}{4} = \log 1 + C \;\Rightarrow\; C = 1

So cot⁡yx=log⁡∣x∣+log⁡e\cot\frac{y}{x} = \log|x| + \log e⁠.

∴\therefore The particular solution is cot⁡(yx)=log⁡∣ex∣\cot\left(\dfrac{y}{x}\right) = \log|ex|⁠.

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

The one idea this problem is built on

Inside the sine, yy and xx appear only as yx\frac{y}{x}⁠, and the other terms xsin⁡2yxx\sin^2\frac{y}{x}⁠, yy and xx all have degree 1. So the slope is a function of yx\frac{y}{x} alone: homogeneous, put y=vxy = vx⁠. The vv terms cancel, leaving xdvdx=−sin⁡2vx\frac{dv}{dx} = -\sin^2v⁠, and 1sin⁡2v=cosec2v\frac{1}{\sin^2v} = \text{cosec}^2v is a standard integral.

Given, to find, and the plan
Given
[xsin⁡2yx−y]dx+x dy=0\left[x\sin^2\frac{y}{x} - y\right]dx + x\,dy = 0⁠, and y=π4y = \frac{\pi}{4} when x=1x = 1⁠.
To find
The particular solution: no arbitrary constant, passing through (1,π4)\left(1, \frac{\pi}{4}\right)⁠.
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⁡2vx\frac{dv}{dx} = -\sin^2v⁠. (5) Separate. (6) Integrate. (7) Put v=yxv = \frac{y}{x} back. (8) Use the condition. (9) Check, and see the curve.

Basics you need

1Homogeneous functions and equations

dydx=F(x,y)\frac{dy}{dx} = F(x, y) is homogeneous when F(λx,λy)=λ0F(x,y)F(\lambda x, \lambda y) = \lambda^0F(x, y) for every nonzero λ\lambda⁠; any function of yx\frac{y}{x} alone passes, since λyλx=yx\frac{\lambda y}{\lambda x} = \frac{y}{x} (Section 9.4.2). Basics: scale x and y together

2The substitution y=vxy = vx

dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}⁠; the equation becomes xdvdx=g(v)−vx\frac{dv}{dx} = g(v) - v (Section 9.4.2). Lesson: homogeneous equations, put y = vx

3Two standard integrals

∫cosec2v dv=−cot⁡v+C\int\text{cosec}^2v\,dv = -\cot v + C and ∫dxx=log⁡∣x∣+C\int\frac{dx}{x} = \log|x| + C (Section 7.2, formulas (v) and (xii)). Basics: every method ends with an integral

4Two values

cot⁡π4=1\cot\frac{\pi}{4} = 1⁠, and 1=log⁡e1 = \log e⁠, so log⁡∣x∣+1=log⁡∣ex∣\log|x| + 1 = \log|ex|⁠. Lesson: general and particular solutions

Solution

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

    Move the dxdx term across and divide by x dxx\,dx⁠:

    dydx=y−xsin⁡2yxx=F(x,y).…(1)\frac{dy}{dx} = \frac{y - x\sin^2\frac{y}{x}}{x} = F(x, y).\quad\ldots(1)
    This needs x≠0x \ne 0⁠, which yx\frac{y}{x} in the equation needs anyway, so dividing by xx 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⁠, sin⁡2λyλx=sin⁡2yx\sin^2\frac{\lambda y}{\lambda x} = \sin^2\frac{y}{x}⁠, so

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

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

    Outside the sine, top and bottom both have degree 1, so one λ\lambda cancels. In fact F=yx−sin⁡2yxF = \frac{y}{x} - \sin^2\frac{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

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

    v+xdvdx=vx−xsin⁡2vx=v−sin⁡2v.v + x\frac{dv}{dx} = \frac{vx - x\sin^2v}{x} = v - \sin^2v.
    With yx=v\frac{y}{x} = v⁠, the sine becomes sin⁡2v\sin^2v⁠, and xx cancels from top and bottom.
    Section 9.4.2, equations (2) and (3). Lesson: put y = vx
  4. Simplify to xdvdx=−sin⁡2vx\frac{dv}{dx} = -\sin^2v

    xdvdx=v−sin⁡2v−v=−sin⁡2v.x\frac{dv}{dx} = v - \sin^2v - v = -\sin^2v.
    The vv on each side cancels: this is the step xdvdx=g(v)−vx\frac{dv}{dx} = g(v) - v of the method.
    Section 9.4.2, equation (4). Lesson: homogeneous equations
  5. Separate vv and xx

    dvsin⁡2v=−dxx,\frac{dv}{\sin^2v} = -\frac{dx}{x},

    that is,

    cosec2v dv=−dxx.\text{cosec}^2v\,dv = -\frac{dx}{x}.
    This divides by sin⁡2v\sin^2v⁠, which is 0 when v=kπv = k\pi (kk an integer). Each constant v=kπv = k\pi makes both sides of Step 4 zero, so the lines y=kπxy = k\pi x are solutions (on them the given equation reads −kπx dx+kπx dx=0-k\pi x\,dx + k\pi x\,dx = 0⁠). They are set aside here, but none passes through (1,π4)\left(1, \frac{\pi}{4}\right)⁠, because π4\frac{\pi}{4} is not a multiple of π\pi⁠. So the particular solution loses nothing.
    Section 9.4.2, equation (5); separating as in Section 9.4.1. Basics: dy = y′ dx
  6. Integrate both sides

    ∫cosec2v dv=−∫dxx−cot⁡v=−log⁡∣x∣−C,\begin{aligned} \int\text{cosec}^2v\,dv &= -\int\frac{dx}{x} \\ -\cot v &= -\log|x| - C, \end{aligned}

    where the arbitrary constant is written as −C-C⁠. Multiplying by −1-1⁠: cot⁡v=log⁡∣x∣+C\cot v = \log|x| + C⁠.

    Writing the constant as −C-C is just a choice of name; it makes the signs come out cleanly after multiplying by −1-1⁠. The equation has order 1 (degree 1), so one arbitrary constant is enough. Check: ddv(−cot⁡v)=cosec2v\frac{d}{dv}(-\cot v) = \text{cosec}^2v⁠.
    Section 7.2, formulas (v) and (xii). Basics: every method ends with an integral
  7. Put v=yxv = \frac{y}{x} back: the general solution

    cot⁡yx=log⁡∣x∣+C.…(2)\cot\frac{y}{x} = \log|x| + C.\quad\ldots(2)
    The answer must be in the original variables. It holds for x≠0x \ne 0 and sin⁡yx≠0\sin\frac{y}{x} \ne 0 (where the cotangent is defined). So the lines y=kπxy = k\pi x of Step 5 are not given by any CC⁠: they are extra solutions, set aside by the division by sin⁡2v\sin^2v⁠.
    Section 9.4.2: replace vv to get the general solution. Lesson: Examples 10 to 13
  8. Use the condition: y=π4y = \frac{\pi}{4} when x=1x = 1

    Putting x=1x = 1⁠, y=π4y = \frac{\pi}{4} in (2):

    cot⁡π4=log⁡1+C1=0+C  ⇒  C=1.\begin{aligned} \cot\frac{\pi}{4} &= \log 1 + C \\ 1 &= 0 + C \;\Rightarrow\; C = 1. \end{aligned}

    Since 1=log⁡e1 = \log e⁠, log⁡∣x∣+1=log⁡∣x∣+log⁡e=log⁡∣ex∣\log|x| + 1 = \log|x| + \log e = \log|ex|⁠. So the particular solution is

    cot⁡(yx)=log⁡∣ex∣.\cot\left(\frac{y}{x}\right) = \log|ex|.
    At x=1x = 1 the ratio is yx=π4\frac{y}{x} = \frac{\pi}{4}⁠, and cot⁡π4=1\cot\frac{\pi}{4} = 1⁠. Writing 1 as log⁡e\log e combines the two logs into the book's form.
    Section 9.3: a particular solution from the general one. Lesson: general and particular solutions
  9. Check by substituting back, and see the curve

    Check: differentiate (2) with respect to xx⁠, using ddxcot⁡u=−cosec2u⋅u′\frac{d}{dx}\cot u = -\text{cosec}^2u\cdot u' and ddxyx=xy′−yx2\frac{d}{dx}\frac{y}{x} = \frac{xy' - y}{x^2}⁠:

    −cosec2yx⋅xy′−yx2=1x−(xy′−y)=xsin⁡2yxx y′+xsin⁡2yx−y=0,\begin{aligned} -\text{cosec}^2\frac{y}{x}\cdot\frac{xy' - y}{x^2} &= \frac{1}{x} \\ -(xy' - y) &= x\sin^2\frac{y}{x} \\ x\,y' + x\sin^2\frac{y}{x} - y &= 0, \end{aligned}

    which is [xsin⁡2yx−y]dx+x dy=0\left[x\sin^2\frac{y}{x} - y\right]dx + x\,dy = 0⁠, for every CC⁠. The point: cot⁡π4=1=log⁡∣e⋅1∣\cot\frac{\pi}{4} = 1 = \log|e\cdot1|⁠.

    Where it lives. The given point has x=1>0x = 1 > 0⁠, so we work on x>0x > 0⁠, where the answer reads cot⁡yx=1+log⁡x\cot\frac{y}{x} = 1 + \log x⁠. Along the curve cot⁡yx\cot\frac{y}{x} is finite, so yx\frac{y}{x} never reaches a multiple of π\pi⁠; starting from π4\frac{\pi}{4}⁠, it stays between 0 and π\pi⁠. So yx\frac{y}{x} is the principal value cot⁡−1(1+log⁡x)\cot^{-1}(1 + \log x)⁠, and

    y=xcot⁡−1(1+log⁡x),x>0.y = x\cot^{-1}(1 + \log x),\quad x > 0.
    X Y (1, π/4) y = πx cot(y/x) = log|ex| O
    Slope field of dydx=yx−sin⁡2yx\frac{dy}{dx} = \frac{y}{x} - \sin^2\frac{y}{x} for x>0x > 0⁠, with equal scales, and the particular solution y=xcot⁡−1(1+log⁡x)y = x\cot^{-1}(1 + \log x) through (1,π4)\left(1, \frac{\pi}{4}\right)⁠. It stays between the solutions y=0y = 0 (the xx-axis) and y=πxy = \pi x (dashed), which the division in Step 5 set aside.
    Getting the equation back proves the answer. The explicit form shows the curve exists for every x>0x > 0⁠: 1+log⁡x1 + \log x takes every real value, and cot⁡−1\cot^{-1} is defined for all of them.
    Implicit differentiation and the chain rule (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 cot⁡yx=log⁡∣x∣+C\cot\frac{y}{x} = \log|x| + C⁠, and the particular solution with y=π4y = \frac{\pi}{4} when x=1x = 1 is cot⁡(yx)=log⁡∣ex∣\cot\left(\frac{y}{x}\right) = \log|ex|⁠, that is y=xcot⁡−1(1+log⁡x)y = x\cot^{-1}(1 + \log x) for x>0x > 0⁠. (Textbook answer: cot⁡(yx)=log⁡∣ex∣\cot\left(\frac{y}{x}\right) = \log|ex|⁠.)

Check it with numbers

Take x=2x = 2⁠: 1+log⁡2≈1.69314721 + \log 2 \approx 1.6931472⁠, and y=2cot⁡−1(1.6931472)≈1.0669820y = 2\cot^{-1}(1.6931472) \approx 1.0669820⁠. So yx≈0.5334910\frac{y}{x} \approx 0.5334910 and cot⁡yx≈1.6931472=log⁡2e\cot\frac{y}{x} \approx 1.6931472 = \log 2e⁠.

With sin⁡yx≈0.5085423\sin\frac{y}{x} \approx 0.5085423⁠, the equation gives the slope yx−sin⁡2yx≈0.27488\frac{y}{x} - \sin^2\frac{y}{x} \approx 0.27488 there. The curve itself: y(2.001)≈1.0672568823y(2.001) \approx 1.0672568823 and y(1.999)≈1.0667071309y(1.999) \approx 1.0667071309⁠, a difference of 0.00054975140.0005497514⁠, so

0.00054975140.002≈0.27488.\frac{0.0005497514}{0.002} \approx 0.27488.
Common mistakes
  1. Scaling the inside of the sine. sin⁡2λyλx=sin⁡2yx\sin^2\frac{\lambda y}{\lambda x} = \sin^2\frac{y}{x}⁠; no λ\lambda comes out of it.
  2. Sign of the integral. ∫cosec2v dv=−cot⁡v\int\text{cosec}^2v\,dv = -\cot v⁠, not +cot⁡v+\cot v⁠.
  3. Taking cot⁡π4\cot\frac{\pi}{4} as 0. It is 1, so C=1C = 1⁠.
  4. Leaving log⁡∣x∣+1\log|x| + 1 when the book's form is wanted: write 1=log⁡e1 = \log e⁠, giving log⁡∣ex∣\log|ex|⁠.
What to take away
  1. A trig function of yx\frac{y}{x} plus terms of one degree means homogeneous: put y=vxy = vx⁠.
  2. 1sin⁡2v=cosec2v\frac{1}{\sin^2v} = \text{cosec}^2v integrates to −cot⁡v-\cot v⁠.
  3. Put the given values in on their own line to find CC⁠, then tidy with 1=log⁡e1 = \log e⁠.

Every fact used, and where it comes from

FactUsed inSource
Homogeneous function of degree zero; homogeneous equationSteps 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) - vSteps 3, 4Section 9.4.2, equations (2) to (4) (Lesson)
Separating the variables; solutions set aside by the division are checked separatelySteps 5, 7Section 9.4.1 (separating needs h(y)≠0h(y) \ne 0⁠) (Basics)
∫cosec2v dv=−cot⁡v+C\int\text{cosec}^2v\,dv = -\cot v + C⁠; ∫dxx=log⁡∣x∣+C\int\frac{dx}{x} = \log|x| + CStep 6Section 7.2, formulas (v) and (xii) (Basics)
Particular solution from a given point; cot⁡π4=1\cot\frac{\pi}{4} = 1⁠; log⁡e=1\log e = 1Step 8Section 9.3 (Lesson)
Implicit differentiation; (cot⁡u)′=−cosec2u⋅u′(\cot u)' = -\text{cosec}^2u\cdot u'Step 9Chapter 5, Sections 5.3.1 and 5.3.2 (Basics)
Principal value of cot⁡−1\cot^{-1} lies in (0,π)(0, \pi)Step 9Chapter 2, Section 2.2
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 →