Unit 2, lesson 8

Linear First-Order Equations and Integrating Factors

How to put a linear first-order equation in normalized form, why an integrating factor makes its left side the derivative of a product, and how continuous coefficients give the definite-integral solution formula.

  • Video 8
  • Separable and Linear Equations

Let tt be the independent variable and write y′=dy/dty' = dy/dt. The equation y′+2y=4ty' + 2y = 4t describes a quantity that decays in proportion to its size while a steadily growing input pushes it up. Solved for the derivative it reads y′=4t−2yy' = 4t - 2y, and that rate does not split into a factor of tt times a factor of yy, so separation does not apply. Multiplying by a well chosen function makes the left side the derivative of a product, and then a single integration solves the equation. This lesson builds that multiplier, the integrating factor, and shows on which interval the resulting solution is guaranteed.

Key terms

Linear first-order equation

Definition A first-order equation is linear if it can be written as

a(t) y′+b(t) y=g(t),a(t)\,y' + b(t)\,y = g(t),

where the coefficients aa and bb and the input gg depend on tt alone and aa is not identically zero. The unknown yy and its derivative appear only to the first power, each multiplied by a function of tt. The equation is homogeneous when g(t)=0g(t) = 0 for all tt and nonhomogeneous otherwise. This meaning of homogeneous refers to the input, and it differs from the scaling meaning of a homogeneous first-order equation in a later lesson.

In plain words The left side adds y′y' and yy with weights that depend only on tt, and the right side is an input that depends only on tt. Nothing squares yy, multiplies yy by y′y' or puts yy inside another function.

Example The equation y′+2y=4ty' + 2y = 4t is linear, with a(t)=1a(t) = 1, b(t)=2b(t) = 2 and g(t)=4tg(t) = 4t. It is not separable. For two fixed times t1≠t2t_1 \ne t_2 the ratio (4t1−2y)/(4t2−2y)(4t_1 - 2y)/(4t_2 - 2y) changes with yy, while a product of a function of tt and a function of yy would give a ratio that does not depend on yy. The equation t2y′+(sin⁡t) y=ett^2y' + (\sin t)\,y = e^t is linear as well. The equations y′+y2=ty' + y^2 = t and yy′=tyy' = t are not.

Normalized linear form

Definition On an open interval JJ where a(t)≠0a(t) \ne 0, dividing by a(t)a(t) gives the normalized linear form

y′+p(t) y=q(t),y' + p(t)\,y = q(t),

with p=b/ap = b/a and q=g/aq = g/a. On JJ a function solves the normalized equation exactly when it solves the original one, because division by a nonzero number can be undone. A point where a(t)=0a(t) = 0 is a singular point of the equation. Normalization is not available there, so each interval JJ must avoid the singular points, and a solution that passes through a singular point has to be checked in the original equation.

In plain words Make the coefficient of y′y' equal to 11, and record the interval on which that division was allowed.

Example The equation (t2−1) y′+t y=2(t^2 - 1)\,y' + t\,y = 2 has a(t)=t2−1a(t) = t^2 - 1, which vanishes at t=±1t = \pm 1. On each of the intervals (−∞,−1)(-\infty, -1), (−1,1)(-1, 1) and (1,∞)(1, \infty) its normalized form is

y′+tt2−1 y=2t2−1.y' + \frac{t}{t^2 - 1}\,y = \frac{2}{t^2 - 1}.

A problem with initial time t0=0t_0 = 0 is posed on (−1,1)(-1, 1), and one with t0=3t_0 = 3 on (1,∞)(1, \infty).

Derivative of a product

Definition For differentiable functions μ\mu and yy the product rule gives

(μy)′=μ y′+μ′ y.(\mu y)' = \mu\,y' + \mu'\,y.

Multiplying the normalized equation by a differentiable function μ\mu gives μy′+pμy=μq\mu y' + p\mu y = \mu q. Its left side equals (μy)′(\mu y)' for every differentiable yy exactly when

μ′=p μ.\mu' = p\,\mu.

Then the equation reads (μy)′=μq(\mu y)' = \mu q, and the unknown appears only inside one derivative.

In plain words The product rule has the pattern μy′+μ′y\mu y' + \mu' y. Multiplying y′+pyy' + py by μ\mu produces that pattern exactly when μ′=pμ\mu' = p\mu, and then the whole left side collapses into one derivative.

Example Multiply y′+2y=4ty' + 2y = 4t by e2te^{2t}. Since (e2t)′=2e2t(e^{2t})' = 2e^{2t}, the left side is

e2ty′+2e2ty=(e2ty)′,e^{2t}y' + 2e^{2t}y = \left(e^{2t}y\right)',

so the equation becomes (e2ty)′=4te2t(e^{2t}y)' = 4te^{2t}. Multiplying by ete^{t} instead would give ety′+2etye^{t}y' + 2e^{t}y, which is not the derivative (ety)′=ety′+ety(e^{t}y)' = e^{t}y' + e^{t}y.

Integrating factor

Definition Let pp be continuous on an open interval JJ and let PP be an antiderivative of pp on JJ. The function

μ(t)=eP(t)\mu(t) = e^{P(t)}

is an integrating factor for y′+p(t)y=q(t)y' + p(t)y = q(t). It is positive and satisfies μ′=pμ\mu' = p\mu, so multiplying by μ\mu turns the equation into (μy)′=μq(\mu y)' = \mu q, which has the same solutions because μ\mu is never zero. If qq is also continuous on JJ, a function on an interval inside JJ is a solution exactly when

μy=∫μq dt+C\mu y = \int \mu q\,dt + C

for some constant CC, where the integral stands for one fixed antiderivative of μq\mu q. Dividing by μ\mu gives yy. A nonzero constant multiple kμk\mu is also an integrating factor, and kk cancels from the family of solutions.

In plain words The integrating factor is the exponential of an antiderivative of pp. Multiply by it, recognize the left side as (μy)′(\mu y)', integrate and divide by μ\mu.

Example Solve y′+2y=4ty' + 2y = 4t with y(0)=3y(0) = 3. Here p(t)=2p(t) = 2 and μ=e2t\mu = e^{2t}, so (e2ty)′=4te2t(e^{2t}y)' = 4te^{2t}. Integration by parts, differentiating 4t4t and integrating e2te^{2t}, gives

∫4te2t dt=2te2t−∫2e2t dt=e2t(2t−1)+C.\begin{aligned} &\int 4te^{2t}\,dt \\[0.4em] &= 2te^{2t} - \int 2e^{2t}\,dt \\[0.4em] &= e^{2t}(2t - 1) + C. \end{aligned}

Dividing by e2te^{2t} gives the general solution y=2t−1+Ce−2ty = 2t - 1 + Ce^{-2t}, and y(0)=−1+C=3y(0) = -1 + C = 3 gives C=4C = 4, so

y=2t−1+4e−2t.y = 2t - 1 + 4e^{-2t}.

As a check, y′=2−8e−2ty' = 2 - 8e^{-2t} and 2y=4t−2+8e−2t2y = 4t - 2 + 8e^{-2t}, which add up to 4t4t. Two solutions differ by (C1−C2)e−2t(C_1 - C_2)e^{-2t}, which decays as tt increases, yet every solution approaches the line y=2t−1y = 2t - 1 and grows without bound. The decay concerns the difference between solutions, not the solutions themselves.

Continuous coefficients

Definition Suppose pp and qq are continuous on an open interval JJ, the time t0t_0 lies in JJ and y0y_0 is any real number. Then the initial-value problem

y′+p(t) y=q(t),y(t0)=y0\begin{gathered} y' + p(t)\,y = q(t), \\[0.4em] y(t_0) = y_0 \end{gathered}

has exactly one solution on JJ, and that solution is defined on all of JJ. A linear equation cannot blow up inside an interval where its normalized coefficients are continuous. For the original form ay′+by=gay' + by = g with aa, bb and gg continuous, JJ can be taken as the largest open interval containing t0t_0 on which a≠0a \ne 0. At a singular point the theorem says nothing, and an initial value there may have no solution, exactly one, or infinitely many.

In plain words As long as the coefficients of the normalized equation stay continuous, each starting value gives one solution, and that solution lasts across the whole interval.

Example Take xy′+y=1xy' + y = 1, with xx as the independent variable and y′=dy/dxy' = dy/dx. The leading coefficient vanishes at x=0x = 0. The left side is already a product derivative, (xy)′=xy′+y(xy)' = xy' + y, so on any interval every solution satisfies xy=x+Cxy = x + C. On an interval inside x>0x > 0 or inside x<0x < 0 this gives

y=1+Cx.y = 1 + \frac{C}{x}.

On an interval containing 00, setting x=0x = 0 in xy=x+Cxy = x + C forces C=0C = 0, so the only solution through x=0x = 0 is the constant y=1y = 1. The equation at x=0x = 0 reads 0⋅y′(0)+y(0)=10 \cdot y'(0) + y(0) = 1, so the problem with y(0)=1y(0) = 1 has exactly one solution and the problem with y(0)=y0≠1y(0) = y_0 \ne 1 has none. The members with C≠0C \ne 0 become unbounded as x→0x \to 0.

Definite-integral solution formula

Definition Under the hypotheses of the previous theorem, choose the integrating factor that equals 11 at t0t_0, and accumulate the input from t0t_0 onward,

μ(t)=exp⁡(∫t0tp(s) ds),R(t)=∫t0tμ(s) q(s) ds.\begin{gathered} \mu(t) = \exp\left(\int_{t_0}^{t} p(s)\,ds\right), \\[0.4em] R(t) = \int_{t_0}^{t} \mu(s)\,q(s)\,ds. \end{gathered}

Integrating (μy)′=μq(\mu y)' = \mu q from t0t_0 to tt and using μ(t0)=1\mu(t_0) = 1 gives the unique solution

y(t)=y0+R(t)μ(t),y(t) = \frac{y_0 + R(t)}{\mu(t)},

valid for every tt in JJ. The initial value enters the formula directly, so no arbitrary constant has to be fitted afterward. The term y0/μ(t)y_0/\mu(t) is the response to the initial value alone, and R(t)/μ(t)R(t)/\mu(t) is the response to the input when the solution starts from 00.

In plain words Start the clock at t0t_0. The initial value is carried forward by the factor 1/μ1/\mu, and the input is added up from t0t_0 onward.

Example Solve y′+2ty=1y' + 2ty = 1 with y(0)=0y(0) = 0. Here μ(t)=et2\mu(t) = e^{t^2}, and since es2e^{s^2} has no elementary antiderivative, the definite integral is the natural answer,

y(t)=e−t2∫0tes2 ds.y(t) = e^{-t^2}\int_0^t e^{s^2}\,ds.

It holds for every real tt, because p(t)=2tp(t) = 2t and q(t)=1q(t) = 1 are continuous everywhere. By the fundamental theorem of calculus, y′=−2ty+e−t2et2=1−2tyy' = -2ty + e^{-t^2}e^{t^2} = 1 - 2ty, which confirms the solution. Numerically, y(1)≈0.5381y(1) \approx 0.5381.

Check yourself

  1. Solve y′−y=e2ty' - y = e^{2t} with y(0)=3y(0) = 3.
Show the answer

Here p(t)=−1p(t) = -1, so μ=e−t\mu = e^{-t} and (e−ty)′=et(e^{-t}y)' = e^{t}. Integrating gives e−ty=et+Ce^{-t}y = e^{t} + C, so y=e2t+Cety = e^{2t} + Ce^{t}. The initial value gives 1+C=31 + C = 3, so

y=e2t+2et.y = e^{2t} + 2e^{t}.

As a check, y′−y=2e2t+2et−e2t−2et=e2ty' - y = 2e^{2t} + 2e^{t} - e^{2t} - 2e^{t} = e^{2t}. The coefficients are continuous everywhere, so the solution holds for all real tt.

  1. A classmate multiplies ty′+2y=6t2ty' + 2y = 6t^2 by e2te^{2t}, reasoning that the coefficient of yy is 22. Explain why this fails, then solve the equation with y(1)=2y(1) = 2 and state the interval on which the solution is guaranteed.
Show the answer

The rule μ=e∫p dt\mu = e^{\int p\,dt} uses the coefficient pp of the normalized form, in which y′y' has coefficient 11. Here the coefficient of y′y' is tt, and the multiplied left side te2ty′+2e2tyte^{2t}y' + 2e^{2t}y is not (e2ty)′=e2ty′+2e2ty(e^{2t}y)' = e^{2t}y' + 2e^{2t}y except at t=1t = 1. On t>0t > 0 the normalized form is

y′+2t y=6t,y' + \frac{2}{t}\,y = 6t,

so μ=e2ln⁡t=t2\mu = e^{2\ln t} = t^2 and (t2y)′=6t3(t^2y)' = 6t^3. Then t2y=32t4+Ct^2y = \tfrac{3}{2}t^4 + C, and y(1)=2y(1) = 2 gives C=12C = \tfrac{1}{2}, so

y=32t2+12t2.y = \frac{3}{2}t^2 + \frac{1}{2t^2}.

The solution is guaranteed on (0,∞)(0, \infty), the largest interval containing t0=1t_0 = 1 on which p(t)=2/tp(t) = 2/t and q(t)=6tq(t) = 6t are continuous. It becomes unbounded as t→0+t \to 0^{+}, so it cannot be continued past 00.

  1. For ty′−y=t2ty' - y = t^2, find the solution with y(1)=3y(1) = 3. Then decide for which values y0y_0 the problem with y(0)=y0y(0) = y_0 has a solution, and how many.
Show the answer

On t>0t > 0 the normalized form is y′−y/t=ty' - y/t = t, with μ=e−ln⁡t=1/t\mu = e^{-\ln t} = 1/t. Then (y/t)′=1(y/t)' = 1, so y=t2+Cty = t^2 + Ct, and y(1)=3y(1) = 3 gives C=2C = 2 and y=t2+2ty = t^2 + 2t. The theorem guarantees this solution on (0,∞)(0, \infty). In fact every t2+Ctt^2 + Ct satisfies the original equation for all real tt, since t(2t+C)−(t2+Ct)=t2t(2t + C) - (t^2 + Ct) = t^2. A solution on t<0t < 0 has the form t2+C′tt^2 + C't, so differentiability at 00 forces C′=2C' = 2, and the solution through (1,3)(1, 3) continues across 00 only as t2+2tt^2 + 2t.

At t=0t = 0 the equation reads 0⋅y′(0)−y(0)=00 \cdot y'(0) - y(0) = 0, so y(0)=0y(0) = 0 is necessary, and there is no solution when y0≠0y_0 \ne 0. When y0=0y_0 = 0, every function y=t2+Cty = t^2 + Ct is a solution, so there are infinitely many. The point t=0t = 0 is singular, and the existence and uniqueness theorem makes no claim there.

How this lesson connects