limx→∞x \to \inftyx→∞erse
Watch introIntroBooks
CCh10
01020304050607
Calculus10Differential Equations
01Introduction to Differential Equations02Slope Fields03Tangent Lines and Euler's Method04Separable Differential Equations05Exponential Growth and Decay06Logistic Growth07Linear First-Order Equations
Review Guide
limx→∞x \to \inftyx→∞erse
AboutFeedbackTermsPrivacy

Limerse remembers your sign-in, preferences, and progress in this browser. No ads or tracking.

  • YouTube
  • Discord
  • LinkedIn

Lesson 07

How did you like this lesson?
← Previous · Lesson 06Logistic GrowthNext →Review Guide: Differential Equations

Linear First-Order Equations

Most first-order equations are not separable. But a large, important family, the linear ones, all yield to a single method: the integrating factor.

Key Idea

A first-order equation is linear if it can be written in standard form y′+P(x) y=Q(x),y' + P(x)\,y = Q(x),y′+P(x)y=Q(x), with yyy and y′y'y′ appearing only to the first power, never multiplied together. Always rearrange into this form first.


Which method? Separable, linear, or neither

Before reaching for any tool, run three quick tests on a new equation. They decide whether you get an exact formula or must fall back to a slope field or Euler.

Separable means the right side factors as g(x) h(y)g(x)\,h(y)g(x)h(y): try it first, since it is the shortest path to a closed form. Linear means the equation fits y′+P(x)y=Q(x)y' + P(x)y = Q(x)y′+P(x)y=Q(x) with yyy to the first power; the factor μ=e∫P dx\mu = e^{\int P\,dx}μ=e∫Pdx always works when separation fails. Some equations are both (like y′=kyy' = kyy′=ky): use separation, it is fewer steps. And some are neither (like y′=y2−xy' = y^2 - xy′=y2−x): no closed form exists, so a slope field gives the shape and Euler's method gives a number.

Watch out

Standard form requires coefficient 111 on y′y'y′: divide through before reading PPP. The separable test fails when yyy and xxx cannot be factored apart; the linear test fails when yyy appears to any power other than 111.


The integrating factor: where it comes from

Key Idea

Multiply the standard form by the integrating factor μ(x)=e∫P(x) dx.\mu(x) = e^{\int P(x)\,dx}.μ(x)=e∫P(x)dx. Then by the product rule the left side becomes exactly ddx(μ y)\dfrac{d}{dx}\big(\mu\,y\big)dxd​(μy). That collapse is the entire point: it turns the equation into something you can integrate directly.


Solving it all the way

Once the left side is a single derivative, the rest is integration.

Key Idea

The recipe, in order: standard form y′+P(x)y=Q(x)y' + P(x)y = Q(x)y′+P(x)y=Q(x); factor μ=e∫P dx\mu = e^{\int P\,dx}μ=e∫Pdx; multiply through so the left side is ddx(μy)\frac{d}{dx}(\mu y)dxd​(μy); integrate to μy=∫μQ dx+C\mu y = \int \mu Q\,dx + Cμy=∫μQdx+C; divide by μ\muμ and apply any initial condition.


Mixing tanks: the flagship application

A tank of brine has salt flowing in and well-mixed solution draining out. The salt amount obeys a linear ODE, with one subtle catch: what drains out carries the tank's current concentration, not the inflow's.

Key Idea

dydt=cin rin−yV rout\frac{dy}{dt} = c_{in}\,r_{in} - \frac{y}{V}\,r_{out}dtdy​=cin​rin​−Vy​rout​ The outflow carries the current concentration y/Vy/Vy/V, which makes this first-order linear. Solve with μ=e∫(rout/V) dt\mu = e^{\int (r_{out}/V)\,dt}μ=e∫(rout​/V)dt. Steady state is y→cinVy \to c_{in}Vy→cin​V (when y/V=ciny/V = c_{in}y/V=cin​).

Watch out

Never use the inflow concentration for the outflow. And if rin≠routr_{in} \ne r_{out}rin​=rout​, the volume changes: V(t)=V0+(rin−rout)tV(t) = V_0 + (r_{in} - r_{out})tV(t)=V0​+(rin​−rout​)t.


How to solve any linear first-order equation

Here is the full method, step by step. Click each step for the memory hook.


Practice

Problem 1.

Problem 2.

Problem 3.

Problem 4.

Problem 5.

Problem 6.

Problem 7.

Problem 8.

Key Idea

If you remember one thing: divide to standard form before reading PPP. Then μ=e∫P dx\mu = e^{\int P\,dx}μ=e∫Pdx collapses the left side into (μy)′(\mu y)'(μy)′, and the rest is one integral and a divide-back.