MGU Mathematics Series — Differential Equations
Part II: First-Order Differential Equations
Standard Form · Integrating Factors · Mixing · Circuits · Motion
Chapter 4 of 14
MGU Mathematics Series  ·  Differential Equations  ·  Library Textbook Edition

Chapter 4:
Linear First-Order
Differential Equations

Standard form, integrating factors, homogeneous and nonhomogeneous equations, mixing problems, RC circuits, motion with resistance, and financial models — the systematic theory of the most tractable class of first-order equations

■ Part II: First-Order Differential Equations ■

■ 14 Sections  •  Chapter 4 of 14 ■

Follows Chapter 3: Separable Differential Equations  ·  Prepares students for Chapter 5: Modeling with First-Order Equations

Purpose and Overview

Chapter 3 introduced separable differential equations, a method built on reorganizing a rate relationship so that integration can recover the unknown function. Separable equations are powerful, but they require a specific structural feature: the right-hand side of the equation must be expressible as a product of a function of x alone and a function of y alone. Many important differential equations do not have this form.

This chapter introduces a broader and equally important class: linear first-order differential equations. These equations involve y and y' appearing only to the first power, with no products of y and y', and with no nonlinear operations applied to y. The linearity of these equations gives them a reliable algebraic structure, and that structure makes a systematic solution method possible.

The method is called the integrating factor method. Rather than separating variables, this method multiplies both sides of the equation by a carefully chosen function that converts the left side into the derivative of a product. Once the equation takes that form, a single integration recovers the solution.

By the end of this chapter, students should understand not only how to apply this method but why it works. The integrating factor is not a formula to be memorized blindly. It is a function that makes a particular algebraic transformation possible, and understanding that transformation is the key to using the method reliably.

Opening Question

A tank initially contains 200 liters of fresh water. A salt solution with concentration 5 grams per liter flows into the tank at a rate of 4 liters per minute. The well-mixed solution drains from the tank at the same rate of 4 liters per minute. How much salt is in the tank at time t? How much salt is in the tank after 10 minutes? What happens to the salt content over a very long time?

This question asks for a function, not just a number. The salt content of the tank changes continuously, and the rate of change depends on both how much salt is flowing in and how much salt is leaving at each moment. Writing that relationship carefully leads to a linear first-order differential equation.

14Sections
10Objectives
14Key Terms
12+Worked Examples

Why This Chapter Matters

Linear first-order differential equations appear in nearly every scientific and technical field. The charge on a capacitor, the velocity of an object falling through air, the concentration of a drug in the bloodstream, the temperature of a room being heated or cooled, the amount of a pollutant in a lake, and the value of a continuously compounded investment all satisfy linear first-order equations.

What makes these equations especially useful is their structure. Because they are linear, there is a systematic method that works for all of them. The integrating factor method transforms any linear first-order equation into a form that can be solved by a single integration. This reliability makes linear first-order equations both mathematically tractable and practically indispensable.

Learning Objectives

  1. 1Recognize and classify a linear first-order differential equation.
  2. 2Write a linear first-order equation in standard form.
  3. 3Distinguish homogeneous from nonhomogeneous linear first-order equations.
  4. 4Understand why integrating factors work algebraically.
  5. 5Find the integrating factor for a given equation.
  6. 6Apply the integrating factor method to solve linear first-order equations.
  7. 7Apply initial conditions to find particular solutions.
  8. 8Set up and solve mixing problems, RC circuit problems, and motion with resistance problems.
  9. 9Interpret solutions in context, including units, initial conditions, and long-term behavior.
  10. 10Recognize and avoid common mistakes in linear first-order equation solving.

Sections at a Glance

Sections 4.1 – 4.4
Linearity, Standard Form, and Structure
What Linear Means · Standard Form · Homogeneous · Nonhomogeneous

What Linear First-Order Means

The word linear in the context of differential equations refers not to the shape of a graph but to a structural property of the equation. A differential equation is linear if the unknown function and all of its derivatives appear only to the first power and are never multiplied together or composed with nonlinear functions.

For a first-order equation involving an unknown function y that depends on the variable x, linearity means the term y' appears to the first power; the term y appears to the first power; there are no products of y and y'; there are no expressions like y², √y, e^y, or sin(y); and the coefficients multiplying y' and y may be functions of x but not of y.

A general linear first-order differential equation takes the form a(x)y' + b(x)y = c(x), where a(x), b(x), and c(x) are functions of x alone. Provided a(x) ≠ 0, dividing through by a(x) puts the equation into standard form.

Linear First-Order ExamplesNonlinear First-Order ExamplesReason Nonlinear
y' + 3y = 6y' = y²y appears squared
y' − (2/x)y = x²y' = √yy appears under a root
y' + (sin x)y = cos xyy' = xy and y' are multiplied
y' = 5yy' = e^yy appears as an exponent
Important Distinction

The equation y' = ky is linear even though its solution y = Ce^(kx) is an exponential function. Do not confuse the linearity of the equation with the shape of the solution curve. Linearity is a property of the equation, not the solution.

Standard Form y' + p(x)y = q(x)

Before applying the integrating factor method, the equation must be written in standard form. Standard form requires: the coefficient of y' is exactly 1; all terms involving y are on the left side; everything else is on the right side.

Standard Form y' + p(x) y = q(x)

p(x) and q(x) are continuous functions of x. The coefficient of y' is 1.

Example 4.2.1
Writing an Equation in Standard Form
  • ProblemWrite 3y' − 6y = 9x in standard form.
  • ThinkThe coefficient of y' is 3, not 1. Divide both sides by 3.
  • Solve3y' − 6y = 9x ÷3: y' − 2y = 3x
  • AnswerStandard form is y' − 2y = 3x. Here p(x) = −2 and q(x) = 3x.
Example 4.2.2
Identifying p(x) and q(x)
  • ProblemIdentify p(x) and q(x) for y' = 4y + sin x.
  • ThinkThe term 4y must move to the left side.
  • Solvey' − 4y = sin x
  • Answerp(x) = −4 and q(x) = sin x.
Student Warning — Signs in Standard Form

Pay careful attention to signs. If the equation reads y' − 2y = 3x, then p(x) = −2, not +2. Using the wrong sign for p(x) leads to an incorrect integrating factor and a wrong solution.

Homogeneous Linear First-Order Equations

A linear first-order equation is called homogeneous when q(x) = 0. The standard form is y' + p(x)y = 0. This equation is always separable.

General Solution — Homogeneous Case

Separating variables and integrating:

dy/y = −p(x) dx → ln|y| = −∫p(x) dx + C₁

y = C e^(−∫p(x) dx)

where C is an arbitrary constant that can take any real value, including zero.

Example 4.3.1
Solving a Homogeneous Linear First-Order Equation
  • ProblemSolve y' − 3y = 0.
  • ThinkHomogeneous with p(x) = −3. Separate variables and integrate.
  • Solvedy/y = 3 dx ln|y| = 3x + C₁ y = Ce^(3x)
  • CheckDifferentiate: y' = 3Ce^(3x). Substitute into y' − 3y: 3Ce^(3x) − 3(Ce^(3x)) = 0 ✓
  • InterpretThe solution is a family of exponential functions. Each C gives a different curve. The solution grows if C > 0, decays if C < 0, and is identically zero if C = 0.
Answer: y = Ce^(3x)
Example 4.3.2
Homogeneous Equation with Non-Constant Coefficient
  • ProblemSolve y' + (2/x)y = 0 for x > 0.
  • Thinkp(x) = 2/x. Separate variables.
  • Solvedy/y = −(2/x) dx ln|y| = −2 ln x + C₁ = ln(x^(−2)) + C₁ y = C/x²
  • Checky' = −2C/x³. Then y' + (2/x)y = −2C/x³ + (2/x)(C/x²) = −2C/x³ + 2C/x³ = 0 ✓
Answer: y = C/x² for x > 0

Nonhomogeneous Linear First-Order Equations

When q(x) ≠ 0, the equation y' + p(x)y = q(x) is called nonhomogeneous. The right side q(x) is called the forcing function or input function, because it represents an external influence driving the system away from its natural unforced behavior.

Nonhomogeneous equations cannot be solved by simple separation of variables in general. The left side y' + p(x)y is not the derivative of just y, so integrating both sides directly does not work. The approach that does work exploits the product rule from calculus. If there were a function µ(x) such that

Key Observation µ(x)y' + µ(x)p(x)y = d/dx [µ(x)y]

Multiplying by the right µ(x) converts the left side into a recognizable product derivative — enabling a single integration to solve the equation.

The next two sections show how to find such a function µ(x) and how to use it.

Sections 4.5 – 4.8
The Integrating Factor Method
Why It Works · Finding µ(x) · Solving the Equation · Initial Value Problems

Why Integrating Factors Work

The product rule states: d/dx[µ(x)y] = µ(x)y' + µ'(x)y. Compare this to the left side of the equation after multiplying by µ(x): µ(x)y' + µ(x)p(x)y. For these to be equal, we need µ'(x) = µ(x)p(x). This is itself a separable differential equation for µ(x).

Derivation of the Integrating Factor

Separating variables in µ'(x) = µ(x)p(x):

dµ/µ = p(x) dx → ln|µ| = ∫p(x) dx

µ(x) = e^(∫p(x) dx)

We choose the simplest integrating factor by setting the constant of integration to zero — any valid integrating factor produces the same final result.

Once the integrating factor is found, multiplying both sides by µ(x) and integrating gives the general solution:

General Solution µ(x)y = ∫µ(x)q(x) dx + C y = (1/µ(x)) [ ∫µ(x)q(x) dx + C ]

where µ(x) = e^(∫p(x) dx) is the integrating factor.

Insight

The integrating factor does not create a new equation. It transforms the original equation into one whose left side is recognizable as a product derivative. The transformation is entirely justified by the product rule — no new assumptions are introduced.

Finding an Integrating Factor

The integrating factor µ(x) = e^(∫p(x)dx) requires computing an antiderivative of p(x). When computing this antiderivative, do not include a constant of integration. The integrating factor is always a function of x alone, never of y. If p(x) is a constant k, then µ(x) = e^(kx).

Standard Formp(x)∫p(x) dxµ(x)
y' + 3y = 633xe^(3x)
y' − 2y = x−2−2xe^(−2x)
y' + (1/x)y = x1/xln xx (for x > 0)
y' + 2xy = x2xx²e^(x²)
Simplification Reminder

Always simplify e^(∫p(x)dx) as much as possible. In the third row above, e^(ln x) = x. Leaving the integrating factor as e^(ln x) rather than simplifying to x makes subsequent integration harder and more error-prone.

Solving with Integrating Factors

Eight-Step Procedure
  1. 1Write the equation in standard form: y' + p(x)y = q(x).
  2. 2Identify p(x) and q(x) carefully, including signs.
  3. 3Compute µ(x) = e^(∫p(x)dx) with no constant of integration.
  4. 4Multiply both sides by µ(x): µy' + µpy = µq.
  5. 5Recognize the left side as d/dx[µ(x)y].
  6. 6Integrate both sides: µ(x)y = ∫µ(x)q(x) dx + C.
  7. 7Solve for y: y = (1/µ(x))[∫µq dx + C].
  8. 8If an initial condition is given, substitute to find C.
Example 4.7.1
Solving a Linear First-Order Equation (Constant Coefficients)
  • ProblemSolve y' + 3y = 6.
  • ThinkAlready in standard form. p(x) = 3, q(x) = 6. Find µ and proceed.
  • Solveµ(x) = e^(∫3 dx) = e^(3x) Multiply: e^(3x)y' + 3e^(3x)y = 6e^(3x) Recognize: d/dx[e^(3x)y] = 6e^(3x) Integrate: e^(3x)y = ∫6e^(3x) dx = 2e^(3x) + C Divide: y = 2 + Ce^(−3x)
  • Checky' = −3Ce^(−3x). Then y' + 3y = −3Ce^(−3x) + 3(2 + Ce^(−3x)) = 6 ✓
  • InterpretThe general solution y = 2 + Ce^(−3x) consists of a steady-state value of 2 and a transient decay term Ce^(−3x). As x → ∞, the exponential term vanishes and y → 2 regardless of C. The value y = 2 is the equilibrium of this system.
Answer: y = 2 + Ce^(−3x)
Example 4.7.2
Equation with a Non-Constant Coefficient
  • ProblemSolve y' − (2/x)y = x² for x > 0.
  • Thinkp(x) = −2/x and q(x) = x². The integrating factor involves ln x.
  • Solveµ(x) = e^(∫−2/x dx) = e^(−2 ln x) = x^(−2) = 1/x² Multiply both sides by 1/x²: (1/x²)y' − (2/x³)y = 1 Recognize: d/dx[y/x²] = 1 Integrate: y/x² = x + C Solve: y = x³ + Cx²
  • Checky' = 3x² + 2Cx. Then y' − (2/x)y = 3x² + 2Cx − (2/x)(x³ + Cx²) = 3x² + 2Cx − 2x² − 2Cx = x² ✓
Answer: y = x³ + Cx² for x > 0
Example 4.7.3
Equation with Exponential Integrating Factor
  • ProblemSolve y' + 2xy = x.
  • Thinkp(x) = 2x, q(x) = x. The integrating factor is e^(x²).
  • Solveµ(x) = e^(∫2x dx) = e^(x²) d/dx[e^(x²)y] = xe^(x²) Integrate (substitution u = x², du = 2x dx): e^(x²)y = (1/2)e^(x²) + C y = 1/2 + Ce^(−x²)
  • Checky' = −2Cxe^(−x²). Then y' + 2xy = −2Cxe^(−x²) + 2x(1/2 + Ce^(−x²)) = x ✓
  • InterpretThe solution y = 1/2 + Ce^(−x²) consists of the steady-state value 1/2 and a Gaussian decay term Ce^(−x²), which decays rapidly to zero as |x| grows.
Answer: y = 1/2 + Ce^(−x²)

Initial Value Problems

When an initial condition y(x₀) = y₀ is given, substitute into the general solution to determine the constant C.

Example 4.8.1
Initial Value Problem
  • ProblemSolve y' + y = e^x, y(0) = 1.
  • ThinkStandard form with p(x) = 1 and q(x) = e^x. Apply the integrating factor method, then use the initial condition.
  • Solveµ(x) = e^(∫1 dx) = e^x d/dx[e^x y] = e^x · e^x = e^(2x) e^x y = ∫e^(2x) dx = (1/2)e^(2x) + C y = (1/2)e^x + Ce^(−x) Apply y(0) = 1: 1 = 1/2 + C → C = 1/2 Particular solution: y = (1/2)e^x + (1/2)e^(−x) = cosh x
  • Checky' = sinh x. Then y' + y = sinh x + cosh x = e^x ✓. Also y(0) = cosh 0 = 1 ✓
Answer: y = (1/2)e^x + (1/2)e^(−x)
Example 4.8.2
Initial Value Problem with Non-Constant p(x)
  • ProblemSolve xy' + y = cos x, y(π) = 0, for x > 0.
  • ThinkDivide by x first to reach standard form: y' + (1/x)y = (cos x)/x.
  • Solveµ(x) = e^(∫1/x dx) = e^(ln x) = x Multiply by x: xy' + y = cos x (the left side was already d/dx[xy]) d/dx[xy] = cos x xy = sin x + C y = (sin x)/x + C/x Apply y(π) = 0: 0 = (sin π)/π + C/π = 0 + C/π → C = 0 Particular solution: y = (sin x)/x
  • Checky(π) = (sin π)/π = 0 ✓. This function is the unnormalized sinc function.
Answer: y = (sin x)/x for x > 0
Time-Saving Tip

Notice in Example 4.8.2 that the original equation xy' + y already equals d/dx[xy] by the product rule, before any formal integrating factor computation. When you recognize the left side as a ready-made product derivative, you can skip directly to integration and save a step.

Sections 4.9 – 4.12
Applications
Mixing Problems · RC Circuits · Motion with Resistance · Financial Models

Mixing Problems

A classic and important application of linear first-order equations is the mixing problem, also called the dilution problem or tank problem. The setup involves a container that holds a solution. A substance enters in an inflow stream, mixes with the existing solution, and leaves in an outflow stream.

Let A(t) denote the amount of substance in the container at time t. The fundamental rate equation is:

Mixing Problem Rate Equation

dA/dt = (rate in) − (rate out)

rate in = c_in · r_in

rate out = (A(t)/V(t)) · r_out

If the inflow and outflow rates are equal, the volume V(t) stays constant. If they differ, V(t) = V₀ + (r_in − r_out)t.

Example 4.9.1
Classic Mixing Problem (Constant Volume)
  • ProblemA tank contains 200 liters of fresh water. Salt solution at 5 g/L flows in at 4 L/min. Well-mixed solution drains at 4 L/min. Find A(t), the salt in the tank. How much after 10 minutes? Long-term value?
  • ThinkEqual flow rates → constant 200-liter volume. Write the rate equation, solve, apply A(0) = 0.
  • SolveRate in: 5 g/L × 4 L/min = 20 g/min Rate out: A/200 g/L × 4 L/min = A/50 g/min dA/dt + (1/50)A = 20 µ(t) = e^(t/50) d/dt[e^(t/50) A] = 20e^(t/50) e^(t/50) A = 1000e^(t/50) + C A = 1000 + Ce^(−t/50) A(0) = 0: 0 = 1000 + C → C = −1000 A(t) = 1000(1 − e^(−t/50))
  • CheckAt t → ∞, A → 1000 g. Concentration → 1000/200 = 5 g/L = incoming concentration. At equilibrium, salt in equals salt out ✓
  • At t = 10A(10) = 1000(1 − e^(−0.2)) ≈ 1000(0.1813) ≈ 181 grams
  • InterpretStarting from fresh water, salt content increases rapidly then levels off, approaching 1000 grams asymptotically. After 10 minutes, about 18% of the equilibrium value has been reached.
Answer: A(t) = 1000(1 − e^(−t/50)) g. After 10 min: ≈181 g. Long-term: 1000 g.
Example 4.9.2
Mixing Problem with Unequal Flow Rates (Variable Volume)
  • ProblemA 500-liter tank initially holds 100 grams of salt. Fresh water flows in at 5 L/min; solution drains at 3 L/min. Find A(t).
  • ThinkInflow exceeds outflow by 2 L/min, so V(t) = 500 + 2t. Salt in = 0 (fresh water). Rate out uses current concentration.
  • SolvedA/dt = 0 − 3A/(500 + 2t) (homogeneous, separable) dA/A = −3/(500 + 2t) dt ln A = −(3/2)ln(500 + 2t) + C₁ A = C(500 + 2t)^(−3/2) A(0) = 100: C = 100 · 500^(3/2) A(t) = 100(500/(500 + 2t))^(3/2)
  • InterpretThe salt is diluted by the incoming fresh water. As t increases, 500 + 2t grows and A(t) decreases steadily toward zero.
Answer: A(t) = 100(500/(500 + 2t))^(3/2) grams

RC Circuits as an Introduction

An RC circuit consists of a resistor (resistance R in ohms) and a capacitor (capacitance C in farads), connected to a voltage source E(t) in volts. The charge Q(t) on the capacitor satisfies:

RC Circuit Equation R dQ/dt + Q/C = E(t) dQ/dt + (1/RC)Q = E(t)/R

Standard form with p = 1/(RC) and time constant τ = RC.

The time constant τ = RC characterizes how quickly the circuit responds. A small time constant means the circuit charges and discharges quickly; a large time constant means slow response.

Example 4.10.1
RC Circuit with Constant Voltage
  • ProblemAn RC circuit has R = 100 Ω and C = 0.01 F. Constant voltage E = 12 V applied at t = 0, initial charge Q(0) = 0. Find Q(t).
  • ThinkTime constant τ = RC = 1 second. Equation becomes Q' + Q = 0.12.
  • SolvedQ/dt + Q = 12/100 = 0.12 µ = e^t d/dt[e^t Q] = 0.12e^t e^t Q = 0.12e^t + C Q = 0.12 + Ce^(−t) Q(0) = 0: C = −0.12 Q(t) = 0.12(1 − e^(−t)) coulombs
  • InterpretThe charge rises from 0 toward 0.12 coulombs. At t = τ = 1 second, Q(1) = 0.12(1 − e^(−1)) ≈ 0.076 C, approximately 63% of the steady-state value. This 63% at one time constant is a standard result for RC circuits.
Answer: Q(t) = 0.12(1 − e^(−t)) coulombs. Steady-state: 0.12 C.
MGU Library Connection
  • RC circuits and their differential equation models appear in MGU Physics and Electrical Engineering pages
  • The result that a circuit reaches 63% of steady state at t = τ = RC is fundamental to electronic design, signal filtering, and control systems
  • Laplace transforms (Chapter 10) provide an elegant alternative approach to RC circuits with discontinuous voltage sources

Motion with Linear Resistance

When an object moves through a medium such as air or water, it experiences a resistive force. For low velocities, this drag force is often proportional to velocity: F_drag = −bv, where b > 0 is the drag coefficient. By Newton's second law, for an object of mass m falling under gravity with linear drag:

Motion with Linear Drag m dv/dt = mg − bv dv/dt + (b/m)v = g

Linear first-order equation with p = b/m and q = g. Terminal velocity: v∞ = mg/b.

Example 4.11.1
Terminal Velocity
  • ProblemA 70-kg skydiver jumps from rest. Air resistance is F = 15v N. Take g = 9.8 m/s². Find v(t) and terminal velocity.
  • ThinkLinear first-order equation. Terminal velocity is the equilibrium approached as t → ∞.
  • Solvedv/dt + (15/70)v = 9.8 dv/dt + (3/14)v = 9.8 µ = e^(3t/14) d/dt[e^(3t/14) v] = 9.8e^(3t/14) e^(3t/14) v = 9.8·(14/3)e^(3t/14) + C v = (9.8·14/3) + Ce^(−3t/14) ≈ 45.7 + Ce^(−3t/14) v(0) = 0: C = −45.7 v(t) = 45.7(1 − e^(−3t/14)) m/s
  • Check UnitsTerminal velocity mg/b has units: (kg · m/s²)/(kg/s) = m/s ✓
  • InterpretThe skydiver accelerates from rest and asymptotically approaches terminal velocity ≈ 45.7 m/s (about 165 km/h). The exponential decay ensures actual velocity is always slightly below terminal velocity, approaching but never reaching it in finite time.
Answer: v(t) = 45.7(1 − e^(−3t/14)) m/s. Terminal velocity: ≈ 45.7 m/s.

Financial and Population Models

Continuously Compounded Interest with Withdrawals

If a savings account earns continuously compounded interest at annual rate r and the account holder withdraws at a continuous rate of W dollars per year, the balance B(t) satisfies:

Financial Balance Equation dB/dt = rB − W dB/dt − rB = −W

Linear first-order with p(t) = −r and q(t) = −W. Integrating factor: µ = e^(−rt).

Example 4.12.1
Retirement Account with Continuous Withdrawals
  • ProblemA retirement account has $200,000, earns 5% continuous annual interest. $12,000/year is withdrawn continuously. When, if ever, is the account depleted?
  • ThinkSolve the linear equation, then find when B(t) = 0.
  • SolvedB/dt − 0.05B = −12000 µ = e^(−0.05t) d/dt[e^(−0.05t)B] = −12000e^(−0.05t) e^(−0.05t)B = 240000e^(−0.05t) + C B(t) = 240000 + Ce^(0.05t) B(0) = 200000: C = −40000 B(t) = 240000 − 40000e^(0.05t) Set B = 0: e^(0.05t) = 6 t = ln(6)/0.05 = 20 ln 6 ≈ 35.8 years
  • InterpretInterest initially outpaces withdrawals, but because withdrawals ($12,000) exceed the initial interest income ($10,000 = 5% × $200,000), the account is eventually depleted in about 35.8 years. If withdrawals were at most $10,000/year, the balance would never decrease.
Answer: B(t) = 240000 − 40000e^(0.05t). Account depleted in ≈ 35.8 years.

Population with Immigration

A population P(t) growing at per-capita rate r with constant immigration rate I satisfies dP/dt = rP + I, or equivalently dP/dt − rP = I. This is the same mathematical structure as the financial model: the integrating factor is e^(−rt), and the solution has the form P(t) = A + Be^(rt) for appropriate constants A and B determined by the initial condition.

Sections 4.13 – 4.14
Common Mistakes and the Road Ahead
Eight Documented Errors · Bridge to Chapter 5 and Beyond

Common Linear First-Order Mistakes

Mistake 1 — Forgetting to Write Standard Form First
From 2y' + 4y = 6, using p(x) = 4 and µ = e^(4x)

Standard form is y' + 2y = 3, giving p(x) = 2 and µ = e^(2x). Always divide by the coefficient of y' before identifying p(x).

Mistake 2 — Including a Constant of Integration in µ(x)
µ = Ce^(∫p(x)dx) for some constant C

The integrating factor is µ = e^(∫p(x)dx) computed without a constant of integration. Any constant cancels out in the solution anyway. Choose the simplest antiderivative (C = 0).

Mistake 3 — Failing to Recognize the Left Side as a Product Derivative
Integrating µy' and µpy separately rather than d/dx[µy]

After multiplying by µ, the entire left side equals d/dx[µy]. Verify this by differentiating µy with the product rule before integrating.

Mistake 4 — Dropping the Constant of Integration
e^(3x)y = 2e^(3x), so y = 2 (omitting + C)

The right side always gives ∫µq dx + C. Omitting C turns the general solution into a single particular solution that satisfies no general initial condition.

Mistake 5 — Wrong Sign for p(x)
From y' − 2y = 3x, using p(x) = +2 and µ = e^(2x)

The standard form is y' + p(x)y = q(x). Here p(x) = −2, giving µ = e^(−2x). Read p(x) from the standard form, including its sign.

Mistake 6 — Applying an Initial Condition Too Early
Substituting x = 0 into the integrating factor step before completing integration

Find the complete general solution first, then substitute the initial condition to determine C.

Mistake 7 — Using the Wrong Concentration in the Rate-Out Term
Rate out = c_in × r_out (using incoming concentration instead of tank concentration)

The rate out is (A(t)/V(t)) × r_out, using the current concentration A(t)/V(t) in the tank, which changes over time.

Mistake 8 — Assuming Constant Volume When Flow Rates Differ
Using V = V₀ when inflow rate ≠ outflow rate

Compute V(t) = V₀ + (r_in − r_out)t and use V(t) in the rate-out term whenever the flow rates are unequal.

Preparing for Modeling and Nonlinear First-Order Equations

Chapter 4 has introduced the structure of linear first-order differential equations and the integrating factor method. The method is reliable: every equation of the form y' + p(x)y = q(x), with continuous p and q, has a unique solution satisfying a given initial condition, and that solution can always be expressed using an integrating factor.

The applications, including mixing, circuits, and motion with resistance, all share the same mathematical form: a quantity changes at a rate that depends partly on its current value (the p(x)y term) and partly on an external input (the q(x) term). Recognizing this common structure across different physical contexts is one of the central skills of applied mathematics.

Chapter 5 will bring first-order methods, both separable and linear, into a comprehensive modeling framework. Students will learn to construct differential equation models from verbal descriptions, to classify the equations that arise, and to interpret solutions in context. The modeling process itself, not just the solution technique, will become the focus.

Later chapters extend these ideas in important directions. Second-order linear equations in Chapter 6 describe systems involving acceleration, oscillation, and inertia. Systems of equations in Chapter 9 handle multiple interacting quantities. Laplace transforms in Chapter 10 provide a powerful alternative approach to initial value problems, especially with discontinuous forcing. All of these extensions build on the linear structure and solution ideas developed here.

Chapter Summary

Key Terms Review

linear first-order equation
A differential equation of the form a(x)y' + b(x)y = c(x), where y and y' appear only to the first power and never nonlinearly.
standard form
The form y' + p(x)y = q(x), with coefficient 1 on y' and all y-terms on the left. Required before applying the integrating factor method.
homogeneous equation
A linear first-order equation with q(x) = 0. Always solvable by separation of variables. Solution: y = Ce^(−∫p dx).
nonhomogeneous equation
A linear first-order equation with q(x) ≠ 0. Requires the integrating factor method (or another technique) for its solution.
forcing function
The function q(x) in the nonhomogeneous equation. Represents external input or driving influence on the system.
integrating factor
The function µ(x) = e^(∫p(x)dx) that, when used to multiply both sides, converts the left side into the derivative of a product.
product rule
The calculus rule d/dx[µy] = µy' + µ'y. The key algebraic observation underlying the integrating factor method.
general solution
The complete family of solutions containing an arbitrary constant C. Represents all possible solutions to the equation.
particular solution
A specific solution obtained by applying an initial condition to determine the constant C in the general solution.
mixing problem
A model for the amount of a dissolved substance in a container, governed by dA/dt = rate in − rate out.
RC circuit
A resistor-capacitor circuit whose charge satisfies a linear first-order equation. Governed by the time constant τ = RC.
time constant
The value τ = RC for an RC circuit, or m/b for motion with drag. Characterizes the timescale of exponential approach to equilibrium.
terminal velocity
The limiting velocity mg/b approached asymptotically when drag force balances gravity. The stable equilibrium of the velocity equation.
steady state
The long-term equilibrium value approached by the solution as the transient (exponential) term decays to zero.

Concept Review Questions

  1. What does it mean for a first-order differential equation to be linear?
  2. What is the standard form of a linear first-order differential equation? What are p(x) and q(x)?
  3. Why is the equation y' = y² not linear? Why is y' = x² linear?
  4. What is the difference between a homogeneous and a nonhomogeneous linear first-order equation?
  5. Why can homogeneous linear first-order equations always be solved by separation of variables?
  6. Explain in words why the integrating factor works. What is the key algebraic observation?
  7. Why do we not include a constant of integration when computing the integrating factor?
  8. What does the term q(x) represent in the context of physical applications?
  9. In a mixing problem, why does the rate-out term involve A(t) rather than a fixed concentration?
  10. What is terminal velocity, and what happens to the velocity equation as t → ∞?

Classification Practice

Classify each equation as linear or nonlinear. For linear equations, write in standard form and identify p(x) and q(x).

  1. y' + 5y = 10
  2. y' = y² + x
  3. 3y' − 6xy = 12x
  4. yy' = sin x
  5. y' = −y/x + x²
  6. y' = e^x y + e^(2x)
  7. y' + √y = x
  8. x²y' + xy = 1
  9. y' = ky
  10. y' = k(a − y)

Skill Practice

Part AFinding Integrating Factors

Find µ(x) = e^(∫p(x)dx) for each equation.

  1. y' + 4y = 8
  2. y' − 3y = x²
  3. y' + (3/x)y = x
  4. y' + 2xy = 4x
  5. y' + (cos x)y = cos x
Part BGeneral Solutions

Find the general solution using the integrating factor method.

  1. y' + 2y = 6
  2. y' − y = e^(2x)
  3. y' + (1/x)y = x²
  4. y' + 3y = e^(−3x)
  5. y' − 2y = 4x
  6. y' + y cot x = cos x
  7. (1 + x²)y' + 2xy = 4x

Initial Value Problems

Solve each initial value problem. Show all steps.

  1. y' + y = 4, y(0) = 1
  2. y' − 3y = 6, y(0) = 0
  3. y' + 2y = e^(−x), y(0) = 3
  4. y' + (1/x)y = x, y(1) = 2
  5. y' + 4y = e^(−4x), y(0) = 5
  6. y' − y = e^x, y(0) = 1
  7. y' + 2xy = 2x, y(0) = 0
  8. y' + y = sin x, y(0) = 1

Application Problems

MixingMixing and Dilution Problems
  1. A tank holds 100 liters of fresh water. A solution with 2 g/L flows in at 5 L/min. The well-mixed solution drains at 5 L/min. Find the amount of salt after 20 minutes. What is the long-term salt content?
  2. A 300-liter tank initially contains 50 grams of salt in solution. Pure water flows in at 3 L/min. The well-mixed solution drains at 3 L/min. How long until the tank contains only 5 grams of salt?
  3. A 200-liter tank initially holds 100 grams of salt. A solution of 4 g/L flows in at 2 L/min. The well-mixed solution drains at 4 L/min (decreasing volume). Write and solve the differential equation for A(t).
  4. A lake contains 100 million liters with an initial pollutant concentration of 3 parts per million. Clean water flows in at 200,000 liters per day. The well-mixed water leaves at the same rate. How long until concentration falls to 1 ppm?
CircuitsRC Circuit Problems
  1. An RC circuit has R = 50 Ω, C = 0.02 F, and constant voltage E = 10 V applied at t = 0 with Q(0) = 0. Find Q(t) and the steady-state charge.
  2. For the circuit above, find the time constant τ and the charge at t = τ. Confirm this is approximately 63% of the steady-state charge.
MotionMotion with Resistance
  1. A 50-kg object falls from rest. Air resistance is F = 10v newtons. Take g = 9.8 m/s². Find v(t) and the terminal velocity.
  2. A boat of mass 200 kg travels at 15 m/s when the engine is cut. Water resistance is F = 80v N. Find velocity as a function of time. When has the boat slowed to 5 m/s?
FinanceFinancial Models
  1. An account with $50,000 earns continuously compounded interest at 4% per year. $3,000/year is withdrawn continuously. Find the balance as a function of time. When is the account depleted?
  2. An account with $100,000 earns 6% continuous interest. What is the maximum annual withdrawal rate that guarantees the balance never decreases?

Interpretation Problems

  1. For the general solution y = 2 + Ce^(−4x), describe what happens as x → ∞ for any value of C. What is the steady-state value?
  2. A mixing problem gives A(t) = 500(1 − e^(−t/40)). What is the initial amount? The long-term amount? At what time does the amount first exceed 400 grams?
  3. In the motion-with-resistance problem, the general solution is v(t) = v∞ + (v₀ − v∞)e^(−bt/m) where v∞ = mg/b. Explain in physical terms why terminal velocity is a stable equilibrium for this equation.
  4. An RC circuit has solution Q(t) = Q₀ + (Q_init − Q₀)e^(−t/RC). Explain the meaning of Q₀ and why it is called the steady-state charge. What happens to the transient term?
  5. A savings account satisfies B' = 0.04B − W. For what value of W is the balance constant? What happens if W is slightly larger?

Error Analysis

Identify the error in each solution and write the correct answer.

Problem 1

Solve y' + 2y = 6. A student writes: "µ = e^(2x). Then e^(2x)y' + e^(2x)y = 6e^(2x). So d/dx[e^(2x)y] = 6e^(2x). Then e^(2x)y = 3e^(2x) + C, giving y = 3 + Ce^(−2x)."

Hint: Check the second line carefully. What happened to p(x) = 2?

Problem 2

Solve 2y' + 4y = 8, y(0) = 1. A student writes: "p(x) = 4, so µ = e^(4x)…" and continues from there.

Hint: What required step was skipped before identifying p(x)?

Problem 3

Solve y' − y = x. A student writes: "µ = e^(−x). Then d/dx[e^(−x)y] = xe^(−x). Then e^(−x)y = xe^(−x) + C. So y = x + Ce^x."

Hint: Check the integration step. What is ∫xe^(−x) dx?

Problem 4

A mixing problem: 100-liter tank, 3 g/L inflow at 5 L/min, outflow at 5 L/min. A student writes: "Rate out = 3 × 5 = 15 g/min."

What is wrong with this rate-out calculation? What is the correct expression?

Chapter 4 Checkpoint

Chapter 4 Checkpoint
Complete without assistance — assesses all key skills and concepts from Chapter 4
Part A — Classification and Setup
  1. Classify each as linear or nonlinear. If linear, write in standard form and identify p(x) and q(x).
    1. y' + x²y = ln x
    2. y' = y² − y + 1
    3. 3y' = 9 − 6y
    4. xy' = 2y + x³
Part B — Integrating Factor Method
  1. Find the general solution: y' + 5y = 15.
  2. Find the general solution: y' − (1/x)y = x² for x > 0.
  3. Solve the initial value problem: y' + y = e^x, y(0) = 0.
Part C — Applications
  1. A tank initially contains 400 liters of pure water. A brine solution with 3 g/L flows in at 8 L/min. The well-mixed solution drains at 8 L/min.
    1. Write the differential equation for A(t), the amount of salt in the tank.
    2. Solve with the appropriate initial condition.
    3. Find A(20).
    4. Find the long-term value of A(t) and explain it physically.
  2. An object of mass 10 kg falls from rest. Linear air resistance is F = 5v N. Take g = 9.8 m/s².
    1. Write and solve the velocity equation.
    2. Find the terminal velocity.
    3. Find the time at which the velocity is 80% of terminal velocity.
Part D — Interpretation
  1. The general solution to a certain linear first-order equation is y = 4 + Ce^(−2x).
    1. Identify the equilibrium (steady-state) value.
    2. Find the particular solution satisfying y(0) = 7.
    3. At what value of x does this particular solution equal 5?
    4. Describe the qualitative behavior of solution curves starting above and below the equilibrium.
Part E — Error Analysis
  1. A student solves y' + 3y = 9 as follows: "µ = e^(3x). Then d/dx[e^(3x)y] = 9e^(3x). Then e^(3x)y = 9e^(3x). So y = 9." Identify the error and provide the correct solution.
Bridge Note
Chapter 5: Modeling with First-Order Differential Equations

The integrating factor method is a powerful and elegant technique specific to linear first-order equations. As you move to Chapter 5, the focus shifts from technique to modeling: how do you build a differential equation from a real-world scenario? Students will encounter situations where deciding whether the resulting equation is separable or linear is itself part of the mathematical work.

Chapters 6 through 8 will extend linearity to second-order equations, where two linearly independent solutions must be combined, and where forcing and resonance become central ideas. Chapter 10 will introduce Laplace transforms, a method that converts linear initial value problems into algebraic equations and handles discontinuous forcing elegantly. All of this rests on the linear structure introduced here.

MGU Library Connection
  • Calculus Readiness Review — Appendix A of this textbook (integration techniques needed for integrating factors)
  • Linear Algebra, Chapter 4: Matrix equations, which share the linearity structure of these differential equations
  • MGU Physics pages: Newton's second law, RC circuits, and drag force models
  • Chapter 5 of this book: full applied modeling with first-order equations
  • Chapter 10 of this book: Laplace transforms as an alternative to the integrating factor for IVPs with discontinuous forcing
  • MGU Engineering pages: control systems, signal processing, and the time-constant concept in circuit design