Skip to content
NCERT Exemplar · Q42

Q.(ix) General solution of dydx+y=sin⁡x\frac{dy}{dx}+y=\sin x is ______.

Sikkim CbseShort· 1mImportance★★★★★
73% · 162/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 →

The given first-order linear ODE is solved using the Integrating Factor method. The integrating factor is exe^x, leading to the general solution y=12sin⁡x−12cos⁡x+Ce−xy = \frac{1}{2} \sin x - \frac{1}{2} \cos x + C e^{-x}.

The equation dydx+y=sin⁡x\frac{dy}{dx} + y = \sin x is a classic first-order linear ordinary differential equation. The standard form is dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x) y = Q(x), where here P(x)=1P(x) = 1 and Q(x)=sin⁡xQ(x) = \sin x.

Why does the Integrating Factor method work? The left side dydx+y\frac{dy}{dx} + y is almost the derivative of a product — but not quite. If we multiply the whole equation by a cleverly chosen function μ(x)\mu(x), the left side becomes exactly ddx(μy)\frac{d}{dx}(\mu y). That function is the integrating factor, given by μ(x)=e∫P(x)dx\mu(x) = e^{\int P(x) dx}.

  1. Find the integrating factor. Since P(x)=1P(x) = 1, we have ∫P(x)dx=∫1dx=x\int P(x) dx = \int 1 dx = x. So the integrating factor is:

μ(x)=e∫1dx=ex.\mu(x) = e^{\int 1 dx} = e^x.

  1. Multiply the ODE by μ(x)\mu(x). Multiplying both sides of dydx+y=sin⁡x\frac{dy}{dx} + y = \sin x by exe^x gives:

exdydx+exy=exsin⁡x.e^x \frac{dy}{dx} + e^x y = e^x \sin x.

The left side is now exactly ddx(exy)\frac{d}{dx}(e^x y), because by the product rule:

ddx(exy)=exdydx+exy.\frac{d}{dx}(e^x y) = e^x \frac{dy}{dx} + e^x y.

  1. Rewrite and integrate. The equation becomes:

ddx(exy)=exsin⁡x.\frac{d}{dx}(e^x y) = e^x \sin x.

Integrate both sides with respect to xx:

exy=∫exsin⁡x dx+C,e^x y = \int e^x \sin x \, dx + C,

where CC is the constant of integration.

  1. Evaluate the integral ∫exsin⁡x dx\int e^x \sin x \, dx. This is a standard cyclic integral. Use integration by parts twice, or recall the formula:

∫eaxsin⁡(bx)dx=eaxa2+b2(asin⁡(bx)−bcos⁡(bx))+constant.\int e^{ax} \sin(bx) dx = \frac{e^{ax}}{a^2 + b^2} (a \sin(bx) - b \cos(bx)) + \text{constant}.

Here a=1a = 1, b=1b = 1, so:

∫exsin⁡x dx=ex12+12(1⋅sin⁡x−1⋅cos⁡x)=ex2(sin⁡x−cos⁡x).\int e^x \sin x \, dx = \frac{e^x}{1^2 + 1^2} (1 \cdot \sin x - 1 \cdot \cos x) = \frac{e^x}{2} (\sin x - \cos x). …

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.