Skip to main content
\(\require{cancel}\newcommand{\domain}[1]{\operatorname{Dom}(#1)} \newcommand{\range}[1]{\operatorname{Range}(#1)} \newcommand{\linearspan}{\operatorname{span}} \newcommand{\abs}[1]{\lvert #1 \rvert} \newcommand{\set}[2]{\left\{ #1 \: \middle\vert \: #2 \right\}} \renewcommand{\vec}[1]{\mathbf{#1}} \newcommand{\Z}{\mathbb{Z}} \newcommand{\Q}{\mathbb{Q}} \newcommand{\R}{\mathbb{R}} \DeclareMathOperator{\Lapl}{\mathcal{L}} \newcommand{\La}[1]{\Lapl \left\{ #1 \right\}} \newcommand{\invLa}[1]{\Lapl^{-1}\left\{ #1 \right\}} \newcommand{\intbyparts}[4]{\begin{tabular}{|rl|rl|}\hline $u$ \amp $#1$ \amp $dv$ \amp $#2$ \\ \hline $du$ \amp $#3$ \amp $v$ \amp $#4$ \\ \hline \end{tabular}} \newcommand{\identity}{\mathrm{id}} \newcommand{\notdivide}{{\not{\mid}}} \newcommand{\notsubset}{\not\subset} \newcommand{\swap}{\mathrm{swap}} \newcommand{\Null}{\operatorname{Null}} \newcommand{\half}{\text{ \nicefrac{1}{2}}} \newcommand{\lt}{<} \newcommand{\gt}{>} \newcommand{\amp}{&} \)

Section2.3Linear Equations

Consider the following differential equation \begin{equation*} \frac{dy}{dx} = q(x) - p(x)y, \end{equation*} in general, this equation is not separable. There are a few circumstances that will make it separable such as if \(q(x) = p(x)\) and some others, but that is not the point. In general, we can't solve it using separation of variables.

However, if we move the term involving \(y\) to the left, then the left side almost looks as if it could be the derivative of a product e.g. \([uv]' = u'v + uv'\text{.}\) \begin{equation} \underbrace{y'}_{u'} \underbrace{\underline{\phantom{m}}}_{v} + \underbrace{y}_{u} \underbrace{p(x)}_{v'} = q(x) \label{eqn-first-order-linear}\tag{2.3.1} \end{equation} If the left side is to be the derivative of a product, then we need to fill the blank with some function of \(x\text{,}\) say \(I(x)\text{.}\) But if we multiply one term in the equation by some factor, then we must multiply all terms in the equation by the same factor. If we can determine \(I(x)\text{,}\) then upon multiplying the entire equation by that function we would be able to solve the equation by integrating both sides, and solving for \(y\text{.}\)

Here is what equation (2.3.1) looks like if we multiply both sides by some as yet unknown function, \(I(x)\text{:}\) \begin{equation*} \underbrace{y'}_{u'} \underbrace{I(x)}_{v} + \underbrace{y}_{u} \underbrace{p(x)I(x)}_{v'} = q(x)I(x) \end{equation*} Whatever, this function \(I\) is, it clearly must satisfy: \begin{equation} I' = p(x)I \quad \text{ or, equivalently } \quad \frac{dI}{dx} = p(x)I. \label{eqn-integrating-factor-condition}\tag{2.3.2} \end{equation} This is because \(v=I(x)\) and \(v'=I'=p(x)I(x)\text{.}\) Equation (2.3.2) is separable and has solution: \begin{gather} \int \frac{dI}{I} = \int p(x) \, dx\notag\\ \ln \abs{I} = \int p(x) \, dx\notag\\ I = e^{\int p(x) \, dx}\label{eqn-integrating-factor}\tag{2.3.3} \end{gather}

Since, we multiply equation (2.3.1) by \(I(x)\) in order to be able to integrate, we call, \(I(x)\) an integrating factor. Upon multiplying both sides of the equation by \(I(x)\text{,}\) the left side is indeed the derivative of a product: \begin{equation*} [y\cdot I]' = y'e^{\int p(x) \, dx} + yp(x)e^{\int p(x) \, dx}. \end{equation*}

This method allows us to solve linear equations where the right hand side is not zero! That is, it will allow us to solve equations of the form: \begin{equation*} y' + p(x)y = q(x). \end{equation*} An example will illustrate the method more clearly.

Example2.3.1Integrating Factor Method

Solve the first order linear equation: \(xy' - y = x^3\text{.}\)

Solution

SubsectionCompartmental Analysis

A placeholder paragraph.

SubsectionExercises

1

Find the general solution \begin{equation*} y' + 3y = 2xe^{-3x} \end{equation*}

2

Find the general solution \begin{equation*} 2xy' + y = 10\sqrt{x} \end{equation*}

3

Find the particular solution \begin{equation*} xy' + y = 3xy \qquad y(1)=0 \end{equation*}

4

Find the particular solution \begin{equation*} y' = (1-y)\cos x \qquad y(\pi)=2 \end{equation*}

5Bernoulli Equation

The equation \begin{equation} \frac{dy}{dx} + 2y = xy^{-2} \label{eqn-bernoulli}\tag{2.3.4} \end{equation} is an example of a Bernoulli equation.

  1. Show that the substitution \(v=y^3\) reduces equation (2.3.4) to the equation \begin{equation} \frac{dv}{dx} + 6v = 3x \label{eqn-transformed-bernoulli}\tag{2.3.5} \end{equation}

  2. Solve equation (2.3.5) for \(v\text{.}\) Then make the substitution \(v=y^3\) to obtain the solution to equation (2.3.4).

6

A 400 gal tank initially contains 100 gal of brine containing 50 lb of salt. Brine containing 1 lb of salt per gallon enters the tank at the rate of 5 gals, and the well–mixed brine in the tank flows out at a rate of 3 gals. How much salt will the tank contain when it is full of brine?