To solve an exact DE we just need to integrate both sides of the equation with respect to \(x\text{.}\) Sometimes a DE that is not exact can be rearranged so that it is exact.
Unfortunately, not all first order DEs have an integrating factor. However for an important class of first order DEs, namely first order linear DEs, we can always find an integrating factor. We discuss this class of DEs in the next section.
Section11.2First Order Linear DEs
Definition11.5.Linear First Order DE.
A first order DE that can be put into the form
\begin{equation*}
y' + P(x) y = Q(x)
\end{equation*}
\(\displaystyle \sin(x) y' + \cos(x) y = \cos(x)\)
\(\displaystyle y^2 y' + x^2 y =4\)
Answer.
\(a\) and \(c\text{.}\)
Solution.
Since this DE can be rearranged as
\begin{equation*}
y' - e^x y = 0
\end{equation*}
it is linear with \(P(x) = -e^x\) and \(Q(x) = 0\text{.}\) Notice that this DE is also separable since it is of the form \(y' = f(x)g(y)\text{.}\) Here \(f(x) = e^x\) and \(g(y) = y\text{.}\)
We cannot rearrange this DE into the form \(y' + P(x) y = Q(x)\) and hence it is not linear. It is however separable.
Dividing the equation by \(\sin(x)\) gives
\begin{equation*}
y' + \cot(x) y = \cot(x)
\end{equation*}
and hence this DE is linear with \(P(x) = \cot(x)\) and \(Q(x) = \cot(x)\text{.}\) Notice that this DE is also exact since it can be written as
\begin{equation*}
\dfrac{d}{dx} \left( \sin(x) y \right) = \cos(x)\text{.}
\end{equation*}
This observation leads to the solution of the DE very efficiently.
This DE is not linear. It also isn’t separable nor exact.
As illustrated in Example 11.6(c), we can solve a first order linear DE if it is of the form
\begin{equation}
f(x) y' + f'(x) y = g(x)\tag{11.3}
\end{equation}
since in this case the DE is already exact. If the DE is not of this form we proceed by looking for an integrating factor, \(I(x)\text{,}\) for the DE. Remember that multiplying both sides of the DE by an integrating factor makes the equation exact. So, consider the first order linear DE
(11.4) is itself a first order linear DE for the function \(I(x)\text{.}\) However it is also separable and so we can solve it via the separation of variables technique. This gives
\begin{equation*}
I(x) = A e ^{\int P(x) dx}
\end{equation*}
where here \(\int P(x) dx\) refers to any one of the antiderivatives of \(P(x)\text{.}\) Thus, in theory at least, we can find an entire family of integrating factors for our original DE. It won’t matter which particular integrating factor we use so we usually just take the one with \(A=1\text{.}\) In summary:
Algorithm11.7.Solving a First Order Linear DE.
To solve the first order linear DE
\begin{equation*}
y' + P(x) y = Q(x)
\end{equation*}
Section11.3Some Simple Applications of First Order Linear DEs
Example11.11.Radioactive Decay.
The radioactive isotope thorium \(234\) disintegrates at a rate proportional to the amount present. If \(100\) milligrams of this isotope is reduced to \(82.04\) milligrams in one week, find:
An expression for the amount present at any time.
The time taken for the amount of isotope to decay to one half of its original value.
Answer.
\(\displaystyle Q(t) = 100 e^{-0.0283t}\)
\(\displaystyle t \approx 24.5 \, \text{ days}\)
Solution.
Let \(Q(t)\) be the amount (in milligrams) of thorium \(234\) present at time \(t\) (in days). Then
A \(200\)L tank contains pure water. At time \(t=0\) brackish water (i.e. water containing salt) begins to flow into the tank at a rate of \(3\)L/min and mixed water flows out at the same rate. Assuming that the concentration of salt in the inflowing water is \(25\)g/L determine the concentration of salt in the water in the tank as a function of time.
Let \(C(t)\) be the concentration (in g/L) of the salt in the water in the tank at time \(t\) minutes after the mixing began and let \(A(t)\) be the amount (in grams) of salt in the tank at time \(t\text{.}\) Then \(C(0) = 0\) and \(A(0) = 0\text{.}\)
Figure 11.13 shows a graph of this function. It can be seen that as \(t \to \infty\text{,}\)\(C \to 25\text{.}\) Thus as time goes by the concentration of salt in the tank water approaches the concentration of the salt in the brackish water coming into the tank.
A ball of mass \(50\)kg is shot from a cannon \(100\)meters above the ground straight up with an initial velocity of \(10\)m/s. Assuming that the air resistance is given by \(5v\text{,}\) where \(v\) is the velocity, determine the velocity of the ball when it hits the ground.
Note: This is a very simple model for the air resistance chosen mostly to simplify the resultant equations
Let \(v(t)\) be the velocity of the ball at time \(t\) seconds after it was fired from the cannon and let the downward direction be the positive direction as shown in Figure 11.15.
Figure11.15.
The motion of the ball will be governed by Newton’s second law of motion which says
\begin{equation*}
F = ma\text{,}
\end{equation*}
where \(F\) is the net force acting on the ball, \(m\) is its mass and \(a\) is its acceleration. Once the ball leaves the cannon the forces acting on the ball are gravity, which we will denote by \(F_G\) and air resistance, denoted by \(F_R\text{.}\) Now with the positive direction as shown in Figure 11.15,
\begin{equation*}
F_G = mg
\end{equation*}
where \(g\) is the acceleration due to gravity. In the initial phase where the ball is going up the air resistance will be acting against the motion, (i.e. in the positive direction). Thus, since the velocity \(v\) is negative
In the second phase where the ball is falling the air resistance will again be acting against the motion (i.e. in the negative direction). In this phase the velocity is positive and so once again
Thus we have determined the velocity function for the ball. To use this to determine the speed of the ball when it hits the ground we must first determine the time at which the ball hits the ground. To do this we will need the displacement function which we can obtain by integrating the velocity function. So, letting \(s(t)\) be the displacement of the ball at time \(t\text{,}\) we have
and as can be seen there is only one positive solution. Solving this equation numerically (using Newton’s method for example), shows this solution to be
\begin{equation*}
t = 5.98147\text{.}
\end{equation*}
Figure11.16.Graph of \(s(t) = 98t + 1080e^{-t/10} -1180\text{.}\)
Thus the velocity of the ball when it hits the ground will be
A population of insects in a region will grow at a rate that is proportional to their current population. In the absence of any outside factors the population will triple in two weeks time. On any given day there is a net migration into the area of \(15\) insects and \(16\) are eaten by the local bird population and \(7\) die of natural causes. If there are initially \(100\) insects in the area will the population survive? If not, when do they die out?
2.
A tank with a capacity of \(500\)L originally contains \(200\)L of water with \(10\)kg of salt in the solution. Water containing \(0.1\)kg of salt per litre is entering the tank at a rate of \(3\)L/min and the mixture is allowed to flow out of the tank at a rate of \(2\)L/min. Find the concentration of salt in the water in the tank at any time before the tank overflows.