MathIsimple
ODE-02
Course 2

First-Order Linear Equations

Master the integrating factor method, variation of constants, Bernoulli equations, Riccati equations, and real-world applications in mixing problems, cooling, and electrical circuits.

Learning Objectives
  • Identify and write first-order linear ODEs in standard form
  • Derive and apply the integrating factor method systematically
  • Understand the structure of solutions: homogeneous plus particular
  • Apply variation of constants to find particular solutions
  • Transform Bernoulli equations into linear equations via substitution
  • Reduce Riccati equations using a known particular solution
  • Model and solve real-world problems: mixing, cooling, circuits
  • State and apply the existence-uniqueness theorem for linear ODEs

1. First-Order Linear Equations: Standard Form

First-order linear differential equations are among the most important equations in applied mathematics. They appear in countless applications from physics to biology to economics.

Definition 2.1: First-Order Linear ODE

A first-order linear ordinary differential equation has the form:

dxdt+p(t)x=q(t)\frac{dx}{dt} + p(t)x = q(t)

where p(t)p(t) and q(t)q(t) are given functions of tt. This is the standard form. The equation is homogeneous if q(t)=0q(t) = 0 and nonhomogeneous otherwise.

Remark:

Any equation a(t)dxdt+b(t)x=c(t)a(t)\frac{dx}{dt} + b(t)x = c(t) with a(t)0a(t) \neq 0 can be converted to standard form by dividing by a(t)a(t).

Theorem 2.1: Existence and Uniqueness for Linear First-Order ODEs

Let p(t)p(t) and q(t)q(t) be continuous on an open interval I=(a,b)I = (a, b). Then for any t0It_0 \in I and any x0x_0, the IVP:

dxdt+p(t)x=q(t),x(t0)=x0\frac{dx}{dt} + p(t)x = q(t), \quad x(t_0) = x_0

has a unique solution that exists on the entire interval II.

Proof of Theorem 2.1:

Existence: Constructed via integrating factor method (Section 2).

Uniqueness: If x1x_1 and x2x_2 are both solutions, let y=x1x2y = x_1 - x_2. Then y+p(t)y=0y' + p(t)y = 0 with y(t0)=0y(t_0) = 0. The homogeneous solution is y=Cepdty = Ce^{-\int p\,dt}. Using y(t0)=0y(t_0) = 0 gives C=0C = 0, so y=0y = 0. ∎

2. The Integrating Factor Method

The integrating factor method is the primary technique for solving first-order linear ODEs. The idea is to multiply by a function that makes the left side a perfect derivative.

Definition 2.2: Integrating Factor

For dxdt+p(t)x=q(t)\frac{dx}{dt} + p(t)x = q(t), the integrating factor is:

μ(t)=ep(t)dt\mu(t) = e^{\int p(t)\,dt}

Theorem 2.2: Integrating Factor Solution Formula

The general solution is:

x(t)=1μ(t)[μ(t)q(t)dt+C]x(t) = \frac{1}{\mu(t)}\left[\int \mu(t)q(t)\,dt + C\right]

where μ(t)=ep(t)dt\mu(t) = e^{\int p(t)\,dt}.

Proof of Theorem 2.2:

Multiply by μ(t)\mu(t): μx+μpx=μq\mu x' + \mu p x = \mu q. Since μ=pμ\mu' = p\mu, the left side is (μx)(\mu x)'. Integrating: μx=μqdt+C\mu x = \int \mu q\,dt + C. ∎

Algorithm 2.1: Integrating Factor Method

Input: x+p(t)x=q(t)x' + p(t)x = q(t), possibly with IVP

1. Compute μ(t)=ep(t)dt\mu(t) = e^{\int p(t)\,dt}

2. Multiply both sides by μ\mu

3. Recognize left side as (μx)(\mu x)'

4. Integrate: μx=μqdt+C\mu x = \int \mu q\,dt + C

5. Solve for x(t)x(t)

Example 2.2: Integrating Factor with IVP

Solve: x+2x=etx' + 2x = e^{-t}, x(0)=1x(0) = 1

Solution: μ=e2t\mu = e^{2t}. Then (e2tx)=et(e^{2t}x)' = e^t, so e2tx=et+Ce^{2t}x = e^t + C.

Thus x=et+Ce2tx = e^{-t} + Ce^{-2t}. Using x(0)=1x(0) = 1: C=0C = 0. Answer: x=etx = e^{-t}

Example 2.3: Variable Coefficient

Solve: tx+2x=t3tx' + 2x = t^3, t>0t > 0

Standard form: x+2tx=t2x' + \frac{2}{t}x = t^2. Integrating factor: μ=t2\mu = t^2.

(t2x)=t4(t^2 x)' = t^4, so t2x=t55+Ct^2 x = \frac{t^5}{5} + C. Answer: x=t35+Ct2x = \frac{t^3}{5} + \frac{C}{t^2}

3. Variation of Constants

Variation of constants provides an alternative perspective based on the solution structure.

Theorem 2.3: Structure of Solutions

The general solution of x+px=qx' + px = q is x=xh+xpx = x_h + x_p, where xh=Cepdtx_h = Ce^{-\int p\,dt} is the homogeneous solution and xpx_p is any particular solution.

Algorithm 2.2: Variation of Constants

1. Solve homogeneous: xh=epdtx_h = e^{-\int p\,dt}

2. Assume x=C(t)xhx = C(t) \cdot x_h

3. Substitute and solve for C(t)C(t)

Example 2.4: Variation of Constants

Solve: x+x=e2tx' + x = e^{2t}

Homogeneous: xh=etx_h = e^{-t}. Assume x=C(t)etx = C(t)e^{-t}.

Substituting: Cet=e2tC'e^{-t} = e^{2t}, so C=e3tC' = e^{3t}, C=e3t3+KC = \frac{e^{3t}}{3} + K.

Answer: x=e2t3+Ketx = \frac{e^{2t}}{3} + Ke^{-t}

4. Bernoulli Equations

Definition 2.3: Bernoulli Equation

A Bernoulli equation has the form:

dxdt+p(t)x=q(t)xα\frac{dx}{dt} + p(t)x = q(t)x^\alpha

where α0,1\alpha \neq 0, 1.

Theorem 2.4: Linearization of Bernoulli Equations

The substitution y=x1αy = x^{1-\alpha} transforms the Bernoulli equation into:

dydt+(1α)p(t)y=(1α)q(t)\frac{dy}{dt} + (1-\alpha)p(t)y = (1-\alpha)q(t)
Proof of Theorem 2.4:

Let y=x1αy = x^{1-\alpha}. Then y=(1α)xαxy' = (1-\alpha)x^{-\alpha}x'. From x=px+qxαx' = -px + qx^\alpha:

y=(1α)xα(px+qxα)=(1α)py+(1α)qy' = (1-\alpha)x^{-\alpha}(-px + qx^\alpha) = -(1-\alpha)py + (1-\alpha)q

Rearranging gives the linear equation. ∎

Example 2.5: Bernoulli Equation

Solve: x+x=x3x' + x = x^3

Here α=3\alpha = 3. Substitute y=x2y = x^{-2}: y=2x3xy' = -2x^{-3}x'.

Transform: y2y=2y' - 2y = -2. Solve: y=1+Ce2ty = 1 + Ce^{2t}.

Answer: x=±(1+Ce2t)1/2x = \pm(1 + Ce^{2t})^{-1/2} and x=0x = 0.

5. Riccati Equations

Definition 2.4: Riccati Equation

A Riccati equation has the form:

dxdt=P(t)x2+Q(t)x+R(t)\frac{dx}{dt} = P(t)x^2 + Q(t)x + R(t)

Theorem 2.5: Reduction of Riccati Equations

If x1(t)x_1(t) is a known particular solution, the substitution x=x1+1yx = x_1 + \frac{1}{y} transforms the Riccati equation into a linear equation:

dydt+(2Px1+Q)y=P\frac{dy}{dt} + (2Px_1 + Q)y = -P

Example 2.6: Riccati Equation

Solve: x=x22tx+t2+1x' = x^2 - 2tx + t^2 + 1, given x1=tx_1 = t.

Verify: x1=1x_1' = 1, t22t2+t2+1=1t^2 - 2t^2 + t^2 + 1 = 1

Substitute x=t+1/yx = t + 1/y. With P=1P=1, Q=2tQ=-2t: y+0y=1y' + 0 \cdot y = -1.

Solve: y=t+Cy = -t + C. Answer: x=t+1Ctx = t + \frac{1}{C - t}

6. Applications

6.1 Mixing Problems

Example 2.7: Salt Mixing Problem

Problem: A tank has 200 L of brine with 50 kg salt. Brine (0.5 kg/L) flows in at 6 L/min; solution flows out at 6 L/min. Find S(t)S(t).

Model: dSdt=33S100\frac{dS}{dt} = 3 - \frac{3S}{100}, S(0)=50S(0) = 50.

Integrating factor: e3t/100e^{3t/100}. Solution: S=100+Ce3t/100S = 100 + Ce^{-3t/100}.

Using IC: C=50C = -50. Answer: S(t)=10050e0.03tS(t) = 100 - 50e^{-0.03t}

6.2 Newton's Law of Cooling

Example 2.8: Cooling Problem

Problem: Coffee at 90°C in a 20°C room cools to 70°C in 5 min. Find T(t)T(t).

Model: dTdt=k(T20)\frac{dT}{dt} = -k(T - 20), T(0)=90T(0) = 90.

Solution: T=20+CektT = 20 + Ce^{-kt}. Using T(0)=90T(0) = 90: C=70C = 70.

Using T(5)=70T(5) = 70: 70=20+70e5k70 = 20 + 70e^{-5k}, so e5k=5/7e^{-5k} = 5/7, k=ln(7/5)5k = \frac{\ln(7/5)}{5}.

Answer: T(t)=20+70ektT(t) = 20 + 70e^{-kt} where k0.0673k \approx 0.0673

Note:

In both applications, the solution approaches an equilibrium: salt concentration matches input (0.5 kg/L → 100 kg total); temperature approaches room temperature (20°C).

Practice Quiz: First-Order Linear Equations
10
Questions
0
Correct
0%
Accuracy
1
Which of the following is a first-order linear differential equation?
Easy
Not attempted
2
What is the integrating factor for dxdt+3x=e2t\frac{dx}{dt} + 3x = e^{2t}?
Easy
Not attempted
3
The equation dxdt+2x=4\frac{dx}{dt} + 2x = 4 can be classified as:
Easy
Not attempted
4
Solve the IVP: dxdt+x=et\frac{dx}{dt} + x = e^{-t}, x(0)=2x(0) = 2.
Medium
Not attempted
5
For the linear equation x+p(t)x=q(t)x' + p(t)x = q(t), the general solution has the form:
Medium
Not attempted
6
Which substitution transforms the Bernoulli equation x+x=x3x' + x = x^3 into a linear equation?
Medium
Not attempted
7
A tank contains 100 L of water with 10 kg of salt. Pure water flows in at 5 L/min, and the well-mixed solution flows out at 5 L/min. If S(t)S(t) is the salt amount, the ODE is:
Medium
Not attempted
8
For the Riccati equation x=x22tx+t2+1x' = x^2 - 2tx + t^2 + 1, if x1=tx_1 = t is a known particular solution, the substitution x=t+1yx = t + \frac{1}{y} transforms it into:
Medium
Not attempted
9
The Bernoulli equation dxdt+xt=t2x2\frac{dx}{dt} + \frac{x}{t} = t^2 x^2 with substitution y=x1y = x^{-1} becomes:
Hard
Not attempted
10
Which statement about the existence and uniqueness theorem for x+p(t)x=q(t)x' + p(t)x = q(t) is TRUE?
Hard
Not attempted

Frequently Asked Questions

Where does the integrating factor formula come from?

The integrating factor μ(t)=ep(t)dt\mu(t) = e^{\int p(t)\,dt} is chosen so that μ(t)=p(t)μ(t)\mu'(t) = p(t)\mu(t). This makes the left side of μx+μpx=μq\mu x' + \mu px = \mu q equal to (μx)(\mu x)' by the product rule. The exponential form ensures μ=pμ\mu' = p\mu since ddtepdt=p(t)epdt\frac{d}{dt}e^{\int p\,dt} = p(t)e^{\int p\,dt}.

Why can any first-order linear equation be written in standard form?

Any equation a(t)x+b(t)x=c(t)a(t)x' + b(t)x = c(t) with a(t)0a(t) \neq 0 can be divided by a(t)a(t) to get x+bax=cax' + \frac{b}{a}x = \frac{c}{a}. This is standard form with p=b/ap = b/a and q=c/aq = c/a. The only restriction is a(t)0a(t) \neq 0, which must hold for the equation to be well-defined.

When can a Bernoulli equation be linearized?

A Bernoulli equation x+p(t)x=q(t)xαx' + p(t)x = q(t)x^\alpha can always be linearized when α0,1\alpha \neq 0, 1. For α=0\alpha = 0, it's already linear. For α=1\alpha = 1, it becomes x+(pq)x=0x' + (p-q)x = 0, which is also linear. The substitution y=x1αy = x^{1-\alpha} works for all other values of α\alpha.

Why are Riccati equations difficult, and when can they be solved?

Riccati equations x=Px2+Qx+Rx' = Px^2 + Qx + R are difficult because the quadratic term prevents direct linearization. Unlike Bernoulli equations, no general substitution works. They can be solved when: (1) a particular solution is known (reduce to linear); (2) R=0R = 0 (try x=0x = 0); (3) coefficients have special structure allowing polynomial solutions.

How do initial conditions affect the solution?

For linear first-order ODEs, the initial condition x(t0)=x0x(t_0) = x_0 uniquely determines the constant CC in the general solution. The existence-uniqueness theorem guarantees exactly one solution passes through any given point (t0,x0)(t_0, x_0) where pp and qq are continuous. Different initial conditions give different particular solutions from the same family.

What is the physical meaning of the superposition principle?

For linear equations, the general solution is x=xh+xpx = x_h + x_p. The homogeneous solution xhx_h represents the system's natural response (transient), while xpx_p represents the forced response (steady-state). In circuits, xhx_h is the transient that decays; in cooling, it's the departure from equilibrium. The superposition principle reflects linearity: responses to different inputs can be added.