Skip to content
NCERT Exemplar · Q6

Q.Find the general solution of dydx+ay=emx\frac{dy}{dx}+ay=e^{mx}.

Kerala DhseShort· 3mImportance★★★★★
57% · 126/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 ODE solved using the integrating factor method. The general solution is y=emxa+m+Ce−axy = \frac{e^{mx}}{a+m} + Ce^{-ax} when a≠−ma \neq -m, and y=xe−ax+Ce−axy = x e^{-ax} + Ce^{-ax} when a=−ma = -m.

The equation dydx+ay=emx\frac{dy}{dx} + a y = e^{mx} is a classic first-order linear ordinary differential equation. The structure is: derivative of yy plus a constant times yy equals an exponential. The key idea is to multiply both sides by an integrating factor — a function that turns the left-hand side into the derivative of a product. This works because the left side already looks like the result of a product rule if we choose the right factor.

Why does this work? For any linear ODE of the form 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}. Here P(x)=aP(x) = a (constant), so μ(x)=e∫a dx=eax\mu(x) = e^{\int a \, dx} = e^{ax}. Multiplying through gives ddx(yeax)=e(a+m)x\frac{d}{dx}(y e^{ax}) = e^{(a+m)x}, which is straightforward to integrate.

Let’s go step by step.

  1. Identify the standard form and find the integrating factor.

    The equation is already in the form dydx+ay=emx\frac{dy}{dx} + a y = e^{mx}, with P(x)=aP(x) = a and Q(x)=emxQ(x) = e^{mx}.

    The integrating factor is μ(x)=e∫a dx=eax\mu(x) = e^{\int a \, dx} = e^{ax}.

  2. Multiply the entire equation by μ(x)\mu(x).

eaxdydx+aeaxy=eax⋅emx=e(a+m)x.e^{ax} \frac{dy}{dx} + a e^{ax} y = e^{ax} \cdot e^{mx} = e^{(a+m)x}.

  1. Recognize the left-hand side as a derivative. Notice that ddx(yeax)=eaxdydx+aeaxy\frac{d}{dx} \left( y e^{ax} \right) = e^{ax} \frac{dy}{dx} + a e^{ax} y. So the equation becomes:

ddx(yeax)=e(a+m)x.\frac{d}{dx} \left( y e^{ax} \right) = e^{(a+m)x}.

  1. Integrate both sides with respect to xx.

yeax=∫e(a+m)x dx+C.y e^{ax} = \int e^{(a+m)x} \, dx + C.

The integral depends on whether a+m=0a+m = 0 or not — this is the critical branching point.

  • Case 1: a+m≠0a + m \neq 0

∫e(a+m)x dx=e(a+m)xa+m+C.\int e^{(a+m)x} \, dx = \frac{e^{(a+m)x}}{a+m} + C.

 So $y e^{ax} = \frac{e^{(a+m)x}}{a+m} + C$.
  • Case 2: a+m=0a + m = 0 (i.e., m=−am = -a) Then e(a+m)x=e0=1e^{(a+m)x} = e^{0} = 1, so

∫1 dx=x+C.\int 1 \, dx = x + C.

 So $y e^{ax} = x + C$.

5. Solve for yy in each case.

  • For a+m≠0a+m \neq 0: …

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.