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

Exercise 9.4 · Q14: Particular solution of dydx−yx+cosecyx=0\frac{dy}{dx} - \frac{y}{x} + \text{cosec}\frac{y}{x} = 0⁠, y(1)=0y(1) = 0

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:

14. dydx−yx+cosec(yx)=0\dfrac{dy}{dx} - \dfrac{y}{x} + \text{cosec}\left(\dfrac{y}{x}\right) = 0⁠; y=0y = 0 when x=1x = 1

Exam answer

The equation can be written as

dydx=yx−cosecyx=F(x,y)\frac{dy}{dx} = \frac{y}{x} - \text{cosec}\frac{y}{x} = F(x, y)

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

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

Separating the variables,

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

Integrating both sides,

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

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

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

Putting x=1x = 1⁠, y=0y = 0 in (i),

cos⁡0=log⁡1+C  ⇒  C=1\cos 0 = \log 1 + C \;\Rightarrow\; C = 1

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

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

At y=0y = 0⁠, cosecyx\text{cosec}\frac{y}{x} is not defined, so the condition holds only as a limit: the curve tends to (1,0)(1, 0) as x→1x \to 1⁠.

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

The one idea this problem is built on

The slope yx−cosecyx\frac{y}{x} - \text{cosec}\frac{y}{x} is a function of yx\frac{y}{x} alone, so the equation is homogeneous and y=vxy = vx gives the simple separable equation sin⁡v dv=−dxx\sin v\,dv = -\frac{dx}{x}⁠. One point needs care: the given condition puts yx=0\frac{y}{x} = 0⁠, where cosecyx\text{cosec}\frac{y}{x} is not defined. So the condition cannot be a point on a solution in the usual sense; it is read as a limit, and that limit picks one curve of the family.

Given, to find, and the plan
Given
dydx−yx+cosecyx=0\frac{dy}{dx} - \frac{y}{x} + \text{cosec}\frac{y}{x} = 0⁠, defined where x≠0x \ne 0 and sin⁡yx≠0\sin\frac{y}{x} \ne 0⁠; and y=0y = 0 when x=1x = 1⁠.
To find
The particular solution satisfying the condition.
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=−cosec vx\frac{dv}{dx} = -\text{cosec}\,v⁠. (5) Separate. (6) Integrate. (7) Put v=yxv = \frac{y}{x} back. (8) Use the condition, with care. (9) Check by substituting back. (10) See where the curve lives.

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 (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

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

4Where an equation is defined

cosec u=1sin⁡u\text{cosec}\,u = \frac{1}{\sin u} exists only when sin⁡u≠0\sin u \ne 0⁠; a solution must stay where the equation makes sense. Basics: a rule for slopes

Solution

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

    dydx=yx−cosecyx=F(x,y).…(1)\frac{dy}{dx} = \frac{y}{x} - \text{cosec}\frac{y}{x} = F(x, y).\quad\ldots(1)
    Only a move of two terms across; nothing is divided. The equation makes sense only where x≠0x \ne 0 and sin⁡yx≠0\sin\frac{y}{x} \ne 0⁠, so every solution must stay in that region.
    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λx−cosecλyλx=yx−cosecyx=λ0⋅F(x,y).\begin{aligned} F(\lambda x, \lambda y) &= \frac{\lambda y}{\lambda x} - \text{cosec}\frac{\lambda y}{\lambda x} \\ &= \frac{y}{x} - \text{cosec}\frac{y}{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.

    FF is built from the ratio yx\frac{y}{x} alone, and the ratio does not change when xx and yy are scaled together.
    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=v−cosec v.v + x\frac{dv}{dx} = v - \text{cosec}\,v.
    With yx=v\frac{y}{x} = v⁠, 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=−cosec vx\frac{dv}{dx} = -\text{cosec}\,v

    xdvdx=−cosec v=−1sin⁡v.x\frac{dv}{dx} = -\text{cosec}\,v = -\frac{1}{\sin v}.
    The vv on each side cancels: g(v)−v=−cosec vg(v) - v = -\text{cosec}\,v⁠.
    Section 9.4.2, equation (4). Lesson: homogeneous equations
  5. Separate vv and xx

    sin⁡v dv=−dxx.\sin v\,dv = -\frac{dx}{x}.
    Multiply by sin⁡v\sin v and by dxx\frac{dx}{x} (x≠0x \ne 0⁠). This divides by nothing that can vanish: sin⁡v≠0\sin v \ne 0 wherever the equation is defined. So no solution is lost here.
    Section 9.4.2, equation (5); separating as in Section 9.4.1. Basics: dy = y′ dx
  6. Integrate both sides

    ∫sin⁡v dv=−∫dxx−cos⁡v=−log⁡∣x∣−C,\begin{aligned} \int\sin v\,dv &= -\int\frac{dx}{x} \\ -\cos v &= -\log|x| - C, \end{aligned}

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

    Naming the constant −C-C only tidies the signs. The equation has order 1 (degree 1), so one arbitrary constant is enough. Check: ddv(−cos⁡v)=sin⁡v\frac{d}{dv}(-\cos v) = \sin v⁠.
    Section 7.2, formulas (iii) and (xii). Basics: every method ends with an integral
  7. Put v=yxv = \frac{y}{x} back: the general solution

    cos⁡yx=log⁡∣x∣+C.…(2)\cos\frac{y}{x} = \log|x| + C.\quad\ldots(2)
    The answer in the original variables, valid where x≠0x \ne 0 and sin⁡yx≠0\sin\frac{y}{x} \ne 0⁠.
    Section 9.4.2: replace vv to get the general solution. Lesson: Examples 10 to 13
  8. Use the condition, with care: y=0y = 0 when x=1x = 1

    At x=1x = 1⁠, y=0y = 0 we have yx=0\frac{y}{x} = 0⁠, and cosec 0\text{cosec}\,0 is not defined. So the point (1,0)(1, 0) lies where the equation itself has no meaning, and no solution can pass through it in the usual sense. The condition is read as a limit: we look for a solution curve that tends to (1,0)(1, 0)⁠.

    Both sides of (2) are continuous at (1,0)(1, 0)⁠. So if a curve of the family (2) tends to (1,0)(1, 0)⁠, putting x=1x = 1⁠, y=0y = 0 in (2) gives

    cos⁡0=log⁡1+C1=0+C  ⇒  C=1.\begin{aligned} \cos 0 &= \log 1 + C \\ 1 &= 0 + C \;\Rightarrow\; C = 1. \end{aligned}

    With 1=log⁡e1 = \log e⁠, the curve is

    cos⁡(yx)=log⁡∣x∣+1=log⁡∣ex∣.\cos\left(\frac{y}{x}\right) = \log|x| + 1 = \log|ex|.
    This is the answer the textbook's key gives. It is the only curve of the family that approaches (1,0)(1, 0)⁠: any other CC would give cos⁡0≠log⁡1+C\cos 0 \ne \log 1 + C in the limit. Step 10 shows that the curve really does approach (1,0)(1, 0)⁠, and how.
    Section 9.3: a particular solution from the general one. Lesson: general and particular solutions
  9. Check by substituting back

    Differentiate (2) with respect to xx⁠, with ddxyx=xy′−yx2\frac{d}{dx}\frac{y}{x} = \frac{xy' - y}{x^2}⁠:

    −sin⁡yx⋅xy′−yx2=1xxy′−y=−xsin⁡yxy′=yx−cosecyx,\begin{aligned} -\sin\frac{y}{x}\cdot\frac{xy' - y}{x^2} &= \frac{1}{x} \\ xy' - y &= -\frac{x}{\sin\frac{y}{x}} \\ y' &= \frac{y}{x} - \text{cosec}\frac{y}{x}, \end{aligned}

    which is the given equation, for every CC⁠.

    Dividing by sin⁡yx\sin\frac{y}{x} in the second line is allowed exactly where the equation is defined. Getting the equation back proves the answer.
    Implicit differentiation and the chain rule (Chapter 5). Basics: a rule for slopes
  10. See where the curve lives

    Near x=1x = 1 we have x>0x > 0⁠, so the curve is cos⁡yx=1+log⁡x\cos\frac{y}{x} = 1 + \log x⁠. A cosine lies between −1-1 and 1, so −1≤1+log⁡x≤1-1 \le 1 + \log x \le 1⁠, that is e−2≤x≤1e^{-2} \le x \le 1⁠: the curve lies to the left of x=1x = 1⁠. Keeping sin⁡yx≠0\sin\frac{y}{x} \ne 0⁠, the ratio yx\frac{y}{x} lies in (0,π)(0, \pi) or in (−π,0)(-\pi, 0)⁠, which gives two branches:

    y=±xcos⁡−1(1+log⁡x),y = \pm x\cos^{-1}(1 + \log x),

    for e−2<x<1e^{-2} < x < 1⁠.

    Each branch solves the equation (Step 9), and each tends to 0 as x→1x \to 1⁠, so each tends to (1,0)(1, 0)⁠. There they meet with a vertical tangent: on the upper branch the slope yx−cosecyx\frac{y}{x} - \text{cosec}\frac{y}{x} tends to −∞-\infty⁠, on the lower one to +∞+\infty⁠. So the curve reaches (1,0)(1, 0) but no solution y(x)y(x) can be continued to x=1x = 1⁠.

    X Y Y′ (1, 0) y = πx y = −πx y = x cos⁻¹(1 + log x) y = −x cos⁻¹(1 + log x) O
    Slope field of dydx=yx−cosecyx\frac{dy}{dx} = \frac{y}{x} - \text{cosec}\frac{y}{x} for x>0x > 0⁠, with equal scales, and the curve cos⁡yx=log⁡∣ex∣\cos\frac{y}{x} = \log|ex|⁠: its two branches y=±xcos⁡−1(1+log⁡x)y = \pm x\cos^{-1}(1 + \log x) for e−2<x<1e^{-2} < x < 1⁠. They meet at (1,0)(1, 0) with a vertical tangent; the hollow dots mark points where sin⁡yx=0\sin\frac{y}{x} = 0 and the equation is not defined (the dashed rays are y=±πxy = \pm\pi x⁠).
    The picture shows why the condition needs care: (1,0)(1, 0) is an end point of the curve, not a point inside a solution. Reading the condition as a limit is the only sensible meaning, and it gives the textbook's answer.
    Principal value of cos⁡−1\cos^{-1}⁠, in [0,π][0, \pi] (Chapter 2). 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 cos⁡yx=log⁡∣x∣+C\cos\frac{y}{x} = \log|x| + C⁠. The condition y=0y = 0 when x=1x = 1 lies where cosecyx\text{cosec}\frac{y}{x} is not defined, so it holds as a limit; it gives C=1C = 1 and the particular solution cos⁡(yx)=log⁡∣ex∣\cos\left(\frac{y}{x}\right) = \log|ex|⁠, whose branches y=±xcos⁡−1(1+log⁡x)y = \pm x\cos^{-1}(1 + \log x) solve the equation for e−2<x<1e^{-2} < x < 1 and tend to (1,0)(1, 0)⁠. (Textbook answer: cos⁡(yx)=log⁡∣ex∣\cos\left(\frac{y}{x}\right) = \log|ex|⁠.)

Check it with numbers

Take x=0.5x = 0.5 on the upper branch: 1+log⁡0.5≈0.30685281 + \log 0.5 \approx 0.3068528⁠, and y=0.5cos⁡−1(0.3068528)y = 0.5\cos^{-1}(0.3068528) ≈0.6294559\approx 0.6294559⁠. So yx≈1.2589118\frac{y}{x} \approx 1.2589118 and cos⁡yx≈0.3068528=log⁡(0.5e)\cos\frac{y}{x} \approx 0.3068528 = \log(0.5e)⁠.

With sin⁡yx≈0.9517570\sin\frac{y}{x} \approx 0.9517570⁠, the equation gives the slope yx−cosecyx≈0.20822\frac{y}{x} - \text{cosec}\frac{y}{x} \approx 0.20822 there. The curve itself: y(0.501)≈0.6296627020y(0.501) \approx 0.6296627020 and y(0.499)≈0.6292462558y(0.499) \approx 0.6292462558⁠, a difference of 0.00041644620.0004164462⁠, so

0.00041644620.002≈0.20822.\frac{0.0004164462}{0.002} \approx 0.20822.

Near (1,0)(1, 0) the slope blows up: at x=0.999x = 0.999⁠, y≈0.04469y \approx 0.04469 and the slope is about −22.3-22.3⁠; at x=0.9999x = 0.9999⁠, y≈0.01414y \approx 0.01414 and the slope is about −70.7-70.7⁠.

Common mistakes
  1. Sign of the integral. ∫sin⁡v dv=−cos⁡v\int\sin v\,dv = -\cos v⁠; with −∫dxx=−log⁡∣x∣-\int\frac{dx}{x} = -\log|x| the minus signs cancel to cos⁡v=log⁡∣x∣+C\cos v = \log|x| + C⁠.
  2. Treating (1,0)(1, 0) as an ordinary point. cosec 0\text{cosec}\,0 is not defined; the condition only makes sense as a limit.
  3. Expecting a solution on both sides of x=1x = 1⁠. Since cos⁡yx≤1\cos\frac{y}{x} \le 1⁠, the curve needs log⁡x≤0\log x \le 0⁠, so it lives only on x≤1x \le 1⁠.
  4. Leaving log⁡∣x∣+1\log|x| + 1 when the book's form is wanted: 1=log⁡e1 = \log e gives log⁡∣ex∣\log|ex|⁠.
What to take away
  1. A function of yx\frac{y}{x} alone is homogeneous of degree zero: put y=vxy = vx⁠.
  2. Before using a condition, check that the equation is defined at the given point.
  3. If it is not, the condition can still pick a curve as a limit, but say so, and see what the curve does there.

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 variablesStep 5Section 9.4.1 (Basics)
∫sin⁡v dv=−cos⁡v+C\int\sin v\,dv = -\cos v + C⁠; ∫dxx=log⁡∣x∣+C\int\frac{dx}{x} = \log|x| + CStep 6Section 7.2, formulas (iii) and (xii) (Basics)
Particular solution from a condition; cos⁡0=1\cos 0 = 1⁠, log⁡1=0\log 1 = 0⁠, log⁡e=1\log e = 1Step 8Section 9.3 (Lesson)
Implicit differentiation; (cos⁡u)′=−sin⁡u⋅u′(\cos u)' = -\sin u\cdot u'Step 9Chapter 5, Sections 5.3.1 and 5.3.2 (Basics)
Principal value of cos⁡−1\cos^{-1} lies in [0,π][0, \pi]Step 10Chapter 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 →