First Order Linear Differential Equations

A first order linear differential equation is a differential equation of the form \(y'+p(x) y=q(x)\). The left-hand side of this equation looks almost like the result of using the product rule, so we solve the equation by multiplying through by a factor that will make the left-hand side exactly the result of a product rule, and then integrating. This factor is called an integrating factor.

First order linear differential equations are the only differential equations that can be solved even with variable coefficients - almost every other kind of equation that can be solved explicitly requires the coefficients to be constant, making these one of the broadest classes of differential equations that can be solved.

Contents

Integrating Factors

An integrating factor will be a function \(f(x)\) such that multiplying it to both sides of the equation,

\[\begin f(x) \left[ y'+p(x)y \right] &= f(x)q(x) \\ \\ f(x)y'+f(x)p(x)y &= f(x)q(x), \end\]

gives an expression on the left-hand side that can be integrated with the anti-product rule. In other words, it is the function that satisfies:

\[\begin f(x)y'+f(x)p(x)y &= f(x)y'+f'(x)y \\ \\ \int\left[ f(x)y'+f(x)p(x)y \right]\ dx &= f(x)y+C \end\]

This means the function \(f\) should satisfy \(f'(x)=f(x)p(x)\), which is a separable differential equation. This can be solved as

This is the integrating factor needed to solve first order linear differential equations.

Solving Equations

With the integrating factor, solving the equations is relatively straightforward.

Solve the differential equation \(y'+e^xy=e^x\).

Here, \(p(x)=q(x)=e^x\). Our integrating factor is \[e^<\int e^x\, dx>=e^.\] Note that we omit the constant of integration, since it would just produce a shifted solution to the equation. Now we multiply both sides by \(e^\) to get \[e^y'+e^e^xy=e^xe^\implies \left[e^y\right]'=e^xe^,\] and now integrating both sides gives \[e^y=e^+C\implies y=Ce^+1.\]

Solve \[\dfrac - 3y = e^, \quad y(0) = 3\]

\[v(x) = e^ \Rightarrow e^ \dfrac - 3e^y = e^ \Rightarrow\] \[\dfrac \left(e^y\right) = e^ \Rightarrow\] \[e^y = -e^ + C \Rightarrow y(x) = Ce^ - e^\] along the condition \(y(0) = 3\) we get \(C = 4\) so the function is \[y(x) = 4e^ - e^\]

Solve \[\begin ty' +(2t +1)y =te^,\quad t \in [1,\infty)\\ y(1) = 0 \end\]

\[y' + \fracy = e^ \rightarrow v(t) = te^ \rightarrow \dfrac (te^y) = t \Rightarrow\] \[y(t) =\frace^\left(\frac + C\right),\quad y(1) = 0 \Rightarrow C = \frac \Rightarrow\] \[y(t) = \frac\left(t -\frac\right)e^\]

Submit your answer

Suppose that \(y\) satisfies the equation \(y'+y\tan x=\sec x.\)
\(y\left (\dfrac<\pi>\right) = \dfrac>. \)

What is the value of \(y\left (\dfrac<\pi>\right)?\)

Applications

Many physical systems can be described by first order linear differential equations.

Suppose there is a circuit with a switch, a battery, a resistor, and an inductor in series. The battery produces a voltage of 45 volts and a current of \(I(t\) amperes at time \(t\). The resistor is an \(9\) ohm resistor and the inductor has an inductance of \(3\) henries. If the switch is initially closed, what is the current in the circuit a long time after the switch has been opened?

Ohm's law says that the voltage drop due to the resistor is \(9I(t) \) volts. The voltage drop from the inductor is \(3 I'(t)\). Kirchoff's laws say that the sum of the voltage drops is equal to the supplied voltage, so we find \[ 3I'(t)+9I(t)=45\implies I'(t)+3I(t)=15.\] The integrating factor is \(e^<\int 3\, dt>=e^\), and multiplying through by this gives \[I'(t)e^+3e^I'(t)=15e^\implies \left[I(t)e^\right]'=15e^\implies I(t)e^=5e^+C\implies I(t)=Ce^+5.\] As \(t\to\infty\), we see that \(I(t)\to 5\), so the current after a long time is 5 amperes.