Skip to content
NCERT Exemplar · Q21

Q.Solve the differential equation dy=cos⁡x (2−ycsc⁡x) dxdy=\cos x\,(2-y\csc x)\,dx given that y=2y=2 when x=π2x=\frac{\pi}{2}.

Dnh Dd CbseShort· 3mImportance★★★★★
64% · 141/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. Rewriting it in standard form and using an integrating factor sin⁡x\sin x leads to the solution y=sin⁡x+csc⁡xy = \sin x + \csc x, and at x=π2x = \frac{\pi}{2} the value is y=2y = 2.

The problem gives us dy=cos⁡x (2−ycsc⁡x) dxdy = \cos x \, (2 - y \csc x) \, dx, with the condition y=2y = 2 when x=π2x = \frac{\pi}{2}. At first glance, this looks like a separable equation might work, but the yy term is tangled inside the parentheses. Let's rewrite it to see its true nature.

Divide both sides by dxdx (treating it as a differential form, which is valid here):

dydx=cos⁡x (2−ycsc⁡x)\frac{dy}{dx} = \cos x \, (2 - y \csc x)

Expand the right-hand side:

dydx=2cos⁡x−ycos⁡xcsc⁡x\frac{dy}{dx} = 2\cos x - y \cos x \csc x

Since csc⁡x=1sin⁡x\csc x = \frac{1}{\sin x}, we have cos⁡xcsc⁡x=cot⁡x\cos x \csc x = \cot x. So:

dydx=2cos⁡x−ycot⁡x\frac{dy}{dx} = 2\cos x - y \cot x

Now bring the term involving yy to the left side:

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

This is a first-order linear differential equation in the standard form dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x) y = Q(x), where P(x)=cot⁡xP(x) = \cot x and Q(x)=2cos⁡xQ(x) = 2\cos x.

For dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x) y = Q(x), the integrating factor is μ(x)=e∫P(x) dx\mu(x) = e^{\int P(x) \, dx}.

  1. Find the integrating factor.

    Compute ∫cot⁡x dx=∫cos⁡xsin⁡xdx=log⁡∣sin⁡x∣\int \cot x \, dx = \int \frac{\cos x}{\sin x} dx = \log|\sin x|.

    So μ(x)=elog⁡∣sin⁡x∣=∣sin⁡x∣\mu(x) = e^{\log|\sin x|} = |\sin x|. Since we are near x=π2x = \frac{\pi}{2} where sin⁡x>0\sin x > 0, we can drop the absolute value and take μ(x)=sin⁡x\mu(x) = \sin x.

  2. Multiply the entire equation by sin⁡x\sin x.

sin⁡xdydx+ysin⁡xcot⁡x=2cos⁡xsin⁡x\sin x \frac{dy}{dx} + y \sin x \cot x = 2 \cos x \sin x

But sin⁡xcot⁡x=cos⁡x\sin x \cot x = \cos x, so the left side becomes:

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

Notice that this is exactly the derivative of ysin⁡xy \sin x with respect to xx (by the product rule: ddx(ysin⁡x)=dydxsin⁡x+ycos⁡x\frac{d}{dx}(y \sin x) = \frac{dy}{dx} \sin x + y \cos x).

The right side simplifies: 2cos⁡xsin⁡x=sin⁡2x2 \cos x \sin x = \sin 2x.

So the equation becomes:

ddx(ysin⁡x)=sin⁡2x\frac{d}{dx} (y \sin x) = \sin 2x

  1. Integrate both sides.

ysin⁡x=∫sin⁡2x dx=−12cos⁡2x+Cy \sin x = \int \sin 2x \, dx = -\frac{1}{2} \cos 2x + C

Tip

You can also integrate sin⁡2x\sin 2x using the identity sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x \cos x, but the direct antiderivative −12cos⁡2x-\frac{1}{2}\cos 2x is faster.

  1. Solve for yy. …

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.