Skip to content
Worked Examples · Example 17

Q.Find the particular solution of the differential equation dydx+ycot⁡x=2x+x2cot⁡x\frac{dy}{dx} + y\cot x = 2x + x^2 \cot x (x≠0)(x \neq 0) given that y=0y = 0 when x=π2x = \frac{\pi}{2}.

Uttarakhand UbseTextbookSubjective· 3mImportance★★★★★
29% · 64/222 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

This is a first-order linear differential equation solved using the integrating factor method. The particular solution satisfying y(π/2)=0y(\pi/2)=0 is y=x2−π24csc⁡xy = x^2 - \frac{\pi^2}{4}\csc x.

The problem gives us a differential equation of the form dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x)y = Q(x), which is a classic first-order linear ODE. The key idea: we can multiply both sides by an integrating factor that turns the left-hand side into the derivative of a product, making it directly integrable.

Let’s see why this works. If we have dydx+Py=Q\frac{dy}{dx} + Py = Q, we want to find a function μ(x)\mu(x) such that μdydx+μPy=ddx(μy)\mu \frac{dy}{dx} + \mu P y = \frac{d}{dx}(\mu y). Expanding the right side gives μdydx+dμdxy\mu \frac{dy}{dx} + \frac{d\mu}{dx} y, so we need dμdx=μP\frac{d\mu}{dx} = \mu P. This is a separable equation: dμμ=P dx\frac{d\mu}{\mu} = P\,dx, so μ=e∫P dx\mu = e^{\int P\,dx}.

Once we have μ\mu, the equation becomes ddx(μy)=μQ\frac{d}{dx}(\mu y) = \mu Q, and we integrate both sides.


Step 1: Identify P(x)P(x) and Q(x)Q(x)

The given equation is:

dydx+ycot⁡x=2x+x2cot⁡x\frac{dy}{dx} + y\cot x = 2x + x^2 \cot x

So P(x)=cot⁡xP(x) = \cot x and Q(x)=2x+x2cot⁡xQ(x) = 2x + x^2 \cot x.

Step 2: Compute the integrating factor μ(x)\mu(x)

μ=e∫cot⁡x dx=elog⁡∣sin⁡x∣=∣sin⁡x∣\mu = e^{\int \cot x \, dx} = e^{\log|\sin x|} = |\sin x|

Since x≠0x \neq 0 and we are given x=π/2x = \pi/2 (where sin⁡x>0\sin x > 0), we can take μ=sin⁡x\mu = \sin x for the interval containing this point.

The integrating factor is μ(x)=sin⁡x\mu(x) = \sin x.

Step 3: Multiply the differential equation by μ\mu

sin⁡xdydx+ysin⁡xcot⁡x=sin⁡x(2x+x2cot⁡x)\sin x \frac{dy}{dx} + y \sin x \cot x = \sin x (2x + x^2 \cot x)

Notice sin⁡xcot⁡x=sin⁡x⋅cos⁡xsin⁡x=cos⁡x\sin x \cot x = \sin x \cdot \frac{\cos x}{\sin x} = \cos x. So the left side becomes:

sin⁡xdydx+ycos⁡x\sin x \frac{dy}{dx} + y \cos x

And the right side simplifies:

sin⁡x⋅2x+sin⁡x⋅x2cot⁡x=2xsin⁡x+x2cos⁡x\sin x \cdot 2x + \sin x \cdot x^2 \cot x = 2x \sin x + x^2 \cos x

So we have:

sin⁡xdydx+ycos⁡x=2xsin⁡x+x2cos⁡x\sin x \frac{dy}{dx} + y \cos x = 2x \sin x + x^2 \cos x

Step 4: Recognize the left side as a derivative

The left side is exactly ddx(ysin⁡x)\frac{d}{dx}(y \sin x), because:

ddx(ysin⁡x)=dydxsin⁡x+ycos⁡x\frac{d}{dx}(y \sin x) = \frac{dy}{dx} \sin x + y \cos x

So the equation becomes:

ddx(ysin⁡x)=2xsin⁡x+x2cos⁡x\frac{d}{dx}(y \sin x) = 2x \sin x + x^2 \cos x

Step 5: Integrate both sides

ysin⁡x=∫(2xsin⁡x+x2cos⁡x) dxy \sin x = \int (2x \sin x + x^2 \cos x) \, dx …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.