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

Exercise 9.5 · Q15: dydx−3ycot⁡x=sin⁡2x\frac{dy}{dx} - 3y\cot x = \sin 2x⁠, y(π2)=2y(\frac{\pi}{2}) = 2

Exercise 9.5Linear differential equations, particular solution · Section 9.4.3
The question

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

15. dydx−3ycot⁡x=sin⁡2x\dfrac{dy}{dx} - 3y\cot x = \sin 2x⁠; y=2y = 2 when x=π2x = \dfrac{\pi}{2}

Exam answer

This is of the form dydx+Py=Q\frac{dy}{dx} + Py = Q⁠, where P=−3cot⁡xP = -3\cot x and Q=sin⁡2xQ = \sin 2x⁠.

I.F.=e−3∫cot⁡x dx=e−3log⁡sin⁡x=elog⁡(sin⁡x)−3=1sin⁡3x\begin{aligned} \text{I.F.} &= e^{-3\int\cot x\,dx} \\ &= e^{-3\log\sin x} \\ &= e^{\log(\sin x)^{-3}} = \frac{1}{\sin^3x} \end{aligned}

So the solution is given by

ysin⁡3x=∫sin⁡2xsin⁡3x dx+C=∫2sin⁡xcos⁡xsin⁡3x dx+C\begin{aligned} \frac{y}{\sin^3x} &= \int\frac{\sin 2x}{\sin^3x}\,dx + C \\ &= \int\frac{2\sin x\cos x}{\sin^3x}\,dx + C \end{aligned}

Since 2cos⁡xsin⁡2x=2cosec⁡xcot⁡x\frac{2\cos x}{\sin^2x} = 2\operatorname{cosec}x\cot x⁠,

ysin⁡3x=2∫cosec⁡xcot⁡x dx+C=−2cosec⁡x+C\begin{aligned} \frac{y}{\sin^3x} &= 2\int\operatorname{cosec}x\cot x\,dx + C \\ &= -2\operatorname{cosec}x + C \end{aligned}

Multiplying by sin⁡3x\sin^3x⁠,

y=−2sin⁡2x+Csin⁡3x…(i)y = -2\sin^2x + C\sin^3x\quad\ldots(\text{i})

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

2=−2sin⁡2π2+Csin⁡3π22=−2+CC=4\begin{aligned} 2 &= -2\sin^2\frac{\pi}{2} + C\sin^3\frac{\pi}{2} \\ 2 &= -2 + C \\ C &= 4 \end{aligned}

Putting C=4C = 4 in (i),

∴\therefore The particular solution is y=4sin⁡3x−2sin⁡2xy = 4\sin^3x - 2\sin^2x⁠.

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

The one idea this problem is built on

The equation is linear with P=−3cot⁡xP = -3\cot x⁠. Since ∫cot⁡x dx=log⁡∣sin⁡x∣\int\cot x\,dx = \log|\sin x|⁠, the integrating factor is e−3log⁡∣sin⁡x∣=1∣sin⁡x∣3e^{-3\log|\sin x|} = \frac{1}{|\sin x|^3}⁠, which is 1sin⁡3x\frac{1}{\sin^3x} on the interval 0<x<π0 < x < \pi that contains the given point x=π2x = \frac{\pi}{2}⁠. Writing sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos x⁠, the integrand becomes 2cosec⁡xcot⁡x2\operatorname{cosec}x\cot x⁠, a standard form. The point (π2,2)\left(\frac{\pi}{2}, 2\right) then fixes the constant.

Given, to find, and the plan
Given
dydx−3ycot⁡x=sin⁡2x\frac{dy}{dx} - 3y\cot x = \sin 2x⁠, and y=2y = 2 when x=π2x = \frac{\pi}{2}⁠.
To find
The particular solution through (π2,2)\left(\frac{\pi}{2}, 2\right)⁠.
Plan
(1) Read off PP and QQ⁠; note where they are defined. (2) I.F. =e∫P dx= e^{\int P\,dx}⁠. (3) Multiply and see the product rule. (4) Integrate, with one constant. (5) Solve for yy⁠. (6) Use the condition. (7) Write the particular solution. (8) Check, and see the curve.

Basics you need

1First order linear equations

dydx+Py=Q\frac{dy}{dx} + Py = Q⁠; I.F. =e∫P dx= e^{\int P\,dx}⁠; y (I.F.)=∫(Q×I.F.) dx+Cy\,(\text{I.F.}) = \int(Q\times\text{I.F.})\,dx + C (Section 9.4.3). Lesson: linear equations, the integrating factor

2∫cot⁡x dx=log⁡∣sin⁡x∣\int\cot x\,dx = \log|\sin x|

A standard result of Section 7.3.1; then −3log⁡sin⁡x=log⁡(sin⁡x)−3-3\log\sin x = \log(\sin x)^{-3} and elog⁡t=te^{\log t} = t⁠. Basics: exponentials

3∫cosec⁡xcot⁡x dx=−cosec⁡x+C\int\operatorname{cosec}x\cot x\,dx = -\operatorname{cosec}x + C

Section 7.2, formula (vii); also sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos x⁠. Basics: every method ends with an integral

4Particular solutions

Put the given point into the general solution to find the constant (Section 9.3). Lesson: general and particular solutions

Solution

  1. Recognise the linear form: P=−3cot⁡xP = -3\cot x⁠, Q=sin⁡2xQ = \sin 2x

    The equation has the form dydx+Py=Q\frac{dy}{dx} + Py = Q with

    P=−3cot⁡x,Q=sin⁡2x.P = -3\cot x, \qquad Q = \sin 2x.
    The equation has order 1 and degree 1, and PP⁠, QQ depend on xx only. Keep the minus sign with PP⁠. cot⁡x=cos⁡xsin⁡x\cot x = \frac{\cos x}{\sin x} needs sin⁡x≠0\sin x \ne 0⁠, that is x≠nπx \ne n\pi⁠. The given point x=π2x = \frac{\pi}{2} lies in 0<x<π0 < x < \pi⁠, and we work there; on it sin⁡x>0\sin x > 0⁠.
    Section 9.4.3, step (i). Lesson: linear equations
  2. The integrating factor: 1sin⁡3x\frac{1}{\sin^3x}

    I.F.=e−3∫cot⁡x dx=e−3log⁡∣sin⁡x∣=elog⁡(sin⁡x)−3=1sin⁡3x.\begin{aligned} \text{I.F.} &= e^{-3\int\cot x\,dx} = e^{-3\log|\sin x|} \\ &= e^{\log(\sin x)^{-3}} = \frac{1}{\sin^3x}. \end{aligned}
    On 0<x<π0 < x < \pi⁠, ∣sin⁡x∣=sin⁡x|\sin x| = \sin x⁠, so −3log⁡∣sin⁡x∣=log⁡(sin⁡x)−3-3\log|\sin x| = \log(\sin x)^{-3}⁠. (On an interval where sin⁡x<0\sin x < 0⁠, 1∣sin⁡x∣3=−1sin⁡3x\frac{1}{|\sin x|^3} = -\frac{1}{\sin^3x}⁠, a constant multiple, so 1sin⁡3x\frac{1}{\sin^3x} works there too.)
    Section 9.4.3, step (ii); Section 7.3.1, ∫cot⁡x dx\int\cot x\,dx⁠. Basics: exponentials
  3. Multiply by 1sin⁡3x\frac{1}{\sin^3x}⁠: the left side is one derivative

    1sin⁡3xdydx−3cos⁡xsin⁡4x y=sin⁡2xsin⁡3xddx(ysin⁡3x)=2cos⁡xsin⁡2x.\begin{aligned} \frac{1}{\sin^3x}\frac{dy}{dx} - \frac{3\cos x}{\sin^4x}\,y &= \frac{\sin 2x}{\sin^3x} \\ \frac{d}{dx}\left(\frac{y}{\sin^3x}\right) &= \frac{2\cos x}{\sin^2x}. \end{aligned}
    By the chain rule, ddx(sin⁡x)−3=−3(sin⁡x)−4cos⁡x\frac{d}{dx}(\sin x)^{-3} = -3(\sin x)^{-4}\cos x⁠, so the product rule gives exactly the left side. On the right, sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos x⁠, and one sin⁡x\sin x cancels.
    Product and chain rules (Chapter 5, Sections 5.3 and 5.3.1). Basics: (y · g)′ = g(y′ + Py)
  4. Integrate, with one constant

    ysin⁡3x=∫2cos⁡xsin⁡2x dx+C=2∫cosec⁡xcot⁡x dx+C=−2cosec⁡x+C.\begin{aligned} \frac{y}{\sin^3x} &= \int\frac{2\cos x}{\sin^2x}\,dx + C \\ &= 2\int\operatorname{cosec}x\cot x\,dx + C \\ &= -2\operatorname{cosec}x + C. \end{aligned}
    cos⁡xsin⁡2x=1sin⁡x⋅cos⁡xsin⁡x=cosec⁡xcot⁡x\frac{\cos x}{\sin^2x} = \frac{1}{\sin x}\cdot\frac{\cos x}{\sin x} = \operatorname{cosec}x\cot x⁠. This is y (I.F.)=∫(Q×I.F.) dx+Cy\,(\text{I.F.}) = \int(Q\times\text{I.F.})\,dx + C⁠, and the CC is the one arbitrary constant.
    Section 9.4.3, step (iii); Section 7.2, formula (vii). Basics: one constant for order 1
  5. Solve for yy⁠: the general solution

    y=−2sin⁡2x+Csin⁡3x.…(1)y = -2\sin^2x + C\sin^3x.\quad\ldots(1)
    Multiply by sin⁡3x\sin^3x⁠: cosec⁡x⋅sin⁡3x=sin⁡2x\operatorname{cosec}x\cdot\sin^3x = \sin^2x⁠, and CC becomes Csin⁡3xC\sin^3x⁠.
    Section 9.4.3: the general solution. Lesson: Exercise 9.5 player
  6. Use the condition: y=2y = 2 when x=π2x = \frac{\pi}{2}

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

    2=−2sin⁡2π2+Csin⁡3π2=−2+CC=4.\begin{aligned} 2 &= -2\sin^2\frac{\pi}{2} + C\sin^3\frac{\pi}{2} = -2 + C \\ C &= 4. \end{aligned}
    sin⁡π2=1\sin\frac{\pi}{2} = 1⁠, so every power of it is 1.
    Section 9.3: a particular solution. Lesson: general and particular solutions
  7. The particular solution

    y=4sin⁡3x−2sin⁡2x.y = 4\sin^3x - 2\sin^2x.
    Put C=4C = 4 in (1). The formula is defined for every xx⁠, but the equation is not defined where sin⁡x=0\sin x = 0⁠; the solution through (π2,2)\left(\frac{\pi}{2}, 2\right) lives on 0<x<π0 < x < \pi⁠.
    Section 9.3: a particular solution. Lesson: Examples 14 to 18
  8. Check by substituting back, and see the curve

    From y=4sin⁡3x−2sin⁡2xy = 4\sin^3x - 2\sin^2x⁠: dydx=12sin⁡2xcos⁡x−4sin⁡xcos⁡x\frac{dy}{dx} = 12\sin^2x\cos x - 4\sin x\cos x⁠. And

    3ycot⁡x=3(4sin⁡3x−2sin⁡2x)cos⁡xsin⁡x=12sin⁡2xcos⁡x−6sin⁡xcos⁡x.\begin{aligned} &3y\cot x \\ &= 3(4\sin^3x - 2\sin^2x)\frac{\cos x}{\sin x} \\ &= 12\sin^2x\cos x - 6\sin x\cos x. \end{aligned}

    Subtracting, dydx−3ycot⁡x=2sin⁡xcos⁡x=sin⁡2x\frac{dy}{dx} - 3y\cot x = 2\sin x\cos x = \sin 2x⁠, the given equation. At x=π2x = \frac{\pi}{2}⁠: y=4−2=2y = 4 - 2 = 2⁠.

    X Y X′ Y′ (π/2, 2) x = π O
    Slope field of dydx=sin⁡2x+3ycot⁡x\frac{dy}{dx} = \sin 2x + 3y\cot x for 0<x<π0 < x < \pi⁠, with equal scales, and the particular solution y=4sin⁡3x−2sin⁡2xy = 4\sin^3x - 2\sin^2x through (π2,2)\left(\frac{\pi}{2}, 2\right)⁠. The yy-axis and the dashed line x=πx = \pi⁠, where sin⁡x=0\sin x = 0⁠, bound the interval on which it lives.
    The 12sin⁡2xcos⁡x12\sin^2x\cos x terms cancel, leaving −4sin⁡xcos⁡x+6sin⁡xcos⁡x=2sin⁡xcos⁡x-4\sin x\cos x + 6\sin x\cos x = 2\sin x\cos x⁠. So the formula satisfies the equation wherever sin⁡x≠0\sin x \ne 0⁠, and it passes through the given point.
    A solution makes L.H.S. = R.H.S. (Section 9.3). Basics: a rule for slopes
Result

The general solution is y=−2sin⁡2x+Csin⁡3xy = -2\sin^2x + C\sin^3x⁠, and the particular solution with y=2y = 2 when x=π2x = \frac{\pi}{2} is y=4sin⁡3x−2sin⁡2xy = 4\sin^3x - 2\sin^2x (on 0<x<π0 < x < \pi⁠). (Textbook answer: y=4sin⁡3x−2sin⁡2xy = 4\sin^3x - 2\sin^2x⁠.)

Check it with numbers

Take x=1x = 1⁠: sin⁡1≈0.8414710\sin 1 \approx 0.8414710⁠, so y(1)≈0.9671461y(1) \approx 0.9671461⁠. With sin⁡2≈0.9092974\sin 2 \approx 0.9092974 and cot⁡1≈0.6420926\cot 1 \approx 0.6420926⁠, the equation gives dydx=sin⁡2x+3ycot⁡x≈2.77229\frac{dy}{dx} = \sin 2x + 3y\cot x \approx 2.77229⁠.

The curve itself: y(1.001)≈0.9699186010y(1.001) \approx 0.9699186010 and y(0.999)≈0.9643740289y(0.999) \approx 0.9643740289⁠. They differ by 0.00554457210.0055445721⁠, so

0.00554457210.002≈2.77229.\frac{0.0055445721}{0.002} \approx 2.77229.
Common mistakes
  1. Dropping the minus sign: P=−3cot⁡xP = -3\cot x⁠, so the I.F. is 1sin⁡3x\frac{1}{\sin^3x}⁠, not sin⁡3x\sin^3x⁠.
  2. Writing ∫cot⁡x dx=log⁡∣cos⁡x∣\int\cot x\,dx = \log|\cos x|; it is log⁡∣sin⁡x∣\log|\sin x|⁠.
  3. Leaving sin⁡2x\sin 2x as it is. Write sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos x so that the integrand simplifies.
  4. Forgetting to multiply CC by sin⁡3x\sin^3x when solving for yy⁠.
What to take away
  1. P=kcot⁡xP = k\cot x gives I.F. sin⁡kx\sin^kx (here k=−3k = -3⁠), up to a constant sign.
  2. Use double-angle formulas to make Q×I.F.Q\times\text{I.F.} a standard integral.
  3. The interval of a particular solution is the one, between the points where the equation breaks down, that contains the given point.

Every fact used, and where it comes from

FactUsed inSource
Linear equation; I.F. =e∫P dx= e^{\int P\,dx}⁠; y (I.F.)=∫(Q×I.F.) dx+Cy\,(\text{I.F.}) = \int(Q\times\text{I.F.})\,dx + CSteps 1, 2, 4Section 9.4.3, steps (i) to (iii) (Lesson)
Order and degreeStep 1Sections 9.2.1 and 9.2.2 (Lesson)
∫cot⁡x dx=log⁡∣sin⁡x∣+C\int\cot x\,dx = \log|\sin x| + CStep 2Section 7.3.1 (Basics)
Product and chain rulesSteps 3, 8Chapter 5, Sections 5.3 and 5.3.1 (Basics)
sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos xSteps 3, 8Class XI trigonometry (Basics)
∫cosec⁡xcot⁡x dx=−cosec⁡x+C\int\operatorname{cosec}x\cot x\,dx = -\operatorname{cosec}x + CStep 4Section 7.2, formula (vii) (Basics)
Particular solution from a given point; sin⁡π2=1\sin\frac{\pi}{2} = 1Step 6Section 9.3 (Lesson)
Substituting back into the equationStep 8Section 9.3 (Lesson)
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 →