Skip to content
Exercise 9.3 · Q3

Q.Solve the following differential equation: dydx+y=1(y≠1)\frac{dy}{dx} + y = 1 (y \neq 1)

CBSENCERTSubjective· 3mImportance★★★★★
14% · 30/222 Questions
✓ Free question

This is a first-order linear ODE solved using the integrating factor method. The general solution is y=1+Ce−xy = 1 + Ce^{-x}, where CC is an arbitrary constant.

The equation dydx+y=1\frac{dy}{dx} + y = 1 is a classic first-order linear differential equation. The key idea is that we can multiply both sides by a cleverly chosen function — the integrating factor — which turns the left-hand side into the derivative of a product. This lets us integrate directly.

Why does this work? Because the left side already looks like the derivative of yy plus something times yy. If we can make that "something" match the derivative of the multiplying factor, we get a perfect derivative. Here, the coefficient of yy is 11, so the integrating factor is e∫1 dx=exe^{\int 1\,dx} = e^x.

Let’s walk through it step by step.

  1. Identify the standard form.

    The equation is already in the form dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x)y = Q(x), with P(x)=1P(x) = 1 and Q(x)=1Q(x) = 1.

  2. Compute the integrating factor.

    The integrating factor μ(x)\mu(x) is given by μ(x)=e∫P(x) dx=e∫1 dx=ex\mu(x) = e^{\int P(x)\,dx} = e^{\int 1\,dx} = e^x.

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

exdydx+exy=exe^x \frac{dy}{dx} + e^x y = e^x

  1. Recognize the left side as a derivative. Notice that ddx(exy)=exdydx+exy\frac{d}{dx}(e^x y) = e^x \frac{dy}{dx} + e^x y. So the equation becomes:

ddx(exy)=ex\frac{d}{dx}(e^x y) = e^x

  1. Integrate both sides with respect to xx.

∫ddx(exy) dx=∫ex dx\int \frac{d}{dx}(e^x y)\,dx = \int e^x\,dx

This gives:

exy=ex+Ce^x y = e^x + C

where CC is the constant of integration.

  1. Solve for yy. Divide both sides by exe^x (which is never zero):

y=1+Ce−xy = 1 + Ce^{-x}

Watch out

A common mistake is forgetting the constant of integration or incorrectly handling the condition y≠1y \neq 1. The condition y≠1y \neq 1 simply means we exclude the constant solution y=1y=1 (which corresponds to C=0C=0), but the general formula still holds for all C≠0C \neq 0.

Tip

You can verify the solution quickly: if y=1+Ce−xy = 1 + Ce^{-x}, then dydx=−Ce−x\frac{dy}{dx} = -Ce^{-x}, and dydx+y=−Ce−x+1+Ce−x=1\frac{dy}{dx} + y = -Ce^{-x} + 1 + Ce^{-x} = 1. It works.

✓Final answer

The general solution is y=1+Ce−xy = 1 + Ce^{-x}, where CC is an arbitrary constant (and C≠0C \neq 0 to satisfy y≠1y \neq 1).

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.