Skip to main content

Section 9.1 Introduction

Most of the equations that we have come across so far in our mathematical "upbringing" have imposed conditions that a number is required to satisfy.

Let \(x\) be a real number. Solve

\begin{equation*} x^3-x^2-2x+2=0 \end{equation*}
Answer.

\(x =1,\sqrt{2},-\sqrt{2}\)

Solution.

By factoring the left hand side we obtain

\begin{align*} x^2(x-1)-2(x-1) \amp =0\\ (x^2-2)(x-1)\amp =0\\ x \amp =1,\sqrt{2},-\sqrt{2} \end{align*}

Thus we have found the numbers that satisfy the conditions imposed by the equation. Notice that we can check our answers by substituting back into the original equation. For example, when \(x=1\text{,}\)

\begin{equation*} LHS=(1)^3-(1)^2-2(1)+2=0=RHS \end{equation*}

By way of terminology, we would say that \(x=1\) is a solution to the equation whereas the set of all solutions is \(x=1,\sqrt{2},-\sqrt{2}\text{.}\) An equivalent terminology (which we will use subsequently) is \(x=1\) is a particular solution whereas \(x=1,\sqrt{2},-\sqrt{2}\) is the general solution for this equation.

Let \(x\) be a real number. Solve

\begin{equation*} x=\tan(x) \end{equation*}
Solution.

The strategy that we used for solving the equation in Example 9.1.1 won't work for this equation. In fact we cannot write down the solution (or solutions) to this equation in closed form. Thus we adopt the strategy of finding an approximation to the solutions.

We could do this geometrically by plotting the graphs of \(y=x\) and \(y=\tan(x)\) and looking at the points of intersection.

Figure 9.1.3.
As can be seen in Figure 9.1.3, there will be an infinite number of solutions to this equation. One solution is \(x=0\text{.}\) There is another solution between \(x=4\) and \(x=5\) and so on.

Another way of approximating the solution would be numerically. We could use Newton’s method for example. Starting with an initial guess of \(x_0=4.5\) our next guess is

\begin{equation*} x_1=x_0-\frac{f(x_0)}{f'(x_0)}=4.5-\frac{\tan(4.5)-4.5}{\sec^2(4.5)-1}=4.4936 \textrm{ (to 4 d.p.)}\text{,} \end{equation*}

and so on.

Mathematical models in science and engineering often throw up a situation where information about a function's derivative (or derivatives) is known. From here, we usually want to deduce information about the function itself.

It has been observed that an object cools at a rate proportional to the difference between the object's temperature and ambient temperature. Write down an equation that conveys this observation.

Solution.

Let \(T(t)\) be the temperature of the object at time \(t\) after we begin the observation. Also let \(T_a\) be the ambient temperature. Then

\begin{equation*} \frac{dT}{dt}=-k(T-T_a) \end{equation*}

where \(k\) is a constant.

As illustrated in Example 9.1.4, we were able to write the information known about the situation in terms of an equation involving the function and the derivative of the function even though we didn’t know what the actual function was. Such an equation is called a differential equation (DE). Having determined the differential equation, we now want to find a function that satisfies the equation, i.e. we want to find a solution to the DE.

Assuming that the ambient temperature is fixed, what can we say happens to the temperature of the body over time?

Solution.

Solutions to the DE for the temperature of the cooling body are of the form

\begin{equation*} T(t)=Ae^{-kt}+T_a \end{equation*}

where \(A\) is an arbitrary constant. Even though we haven't yet looked at the method for finding this solution we can check that it is correct by substituting back into the original equation. Here

\begin{equation*} LHS=\frac{dT}{dt}=\frac{d}{dt}\left(Ae^{-kt}+T_a \right)=-kAe^{-kt} \end{equation*}

and

\begin{equation*} RHS=-k(T-T_a)=-k(Ae^{-kt}+T_a-T_a)=-kAe^{-kt} \end{equation*}

Once we know the function itself we can now answer questions concerning the temperature of the cooling body over time. For example we see that over time, the temperature of the body starts out at \(A+T_a\) and falls exponentially toward \(T_a\text{.}\) See Figure 9.1.6.

Figure 9.1.6.

A population of bacteria reproduces at a rate proportional to the population. If the population of bacteria is \(N_0\) at the beginning of the study, predict the behaviour of this population over time.

Solution.

Let \(N(t)\) be the number of bacteria present at time \(t\) after the study begins. Then

\begin{equation*} \frac{dN}{dt}=kN \end{equation*}

where \(k\) is some positive constant. Thus, even though we don’t know what the actual function, \(N(t)\text{,}\) is we have written a differential equation that the function must satisfy. Note that we also know that the function must satisfy \(N(0)=N_0\text{.}\)

An object is dropped from a hot air balloon above the surface of the earth. Assuming that the only forces acting on the object are gravity (acting down) and air resistance (acting up) determine the velocity of the object as a function of time.

Solution.

Let \(v(t)\) be the velocity of the object at time \(t\) seconds after it was dropped and let the downward direction be the positive direction. Now, Newton’s second law of motion says that the acceleration, \(a\text{,}\) of a body and the net force, \(F\text{,}\) acting on that body are related according to

\begin{equation*} F=ma \end{equation*}

where \(m\) is the mass of the body. Also we know that

\begin{equation*} a=\frac{dv}{dt} \end{equation*}

The net force on the free falling object will be

\begin{equation*} F=F_G+F_R \end{equation*}

where \(F_G=mg\) is the force due to gravity (\(g\) is gravitational constant) and \(F_R\) is the force due to the air resistance. Assuming that \(F_R\) is proportional to the square of the speed of the object, we have \(F_R=-kv^2\text{,}\) where the (positive) constant of proportionality \(k\) will depend on the shape of the object (amongst other things). Thus, from Newton’s second law, the function \(v(t)\) satisfies

\begin{equation*} m\frac{dv}{dt}=mg-kv^2, \hspace{5mm} v(0)=0 \end{equation*}

This is a differential equation involving the (as yet unknown) function \(v(t)\text{.}\)

As these examples illustrate, differential equations can be used to model real world systems. In these models the differential equation captures the interaction of the quantities in the system. The solution to the differential equation describes the behaviour of the system.

In this strand of Math1120 we are going to look at techniques for finding solutions to differential equations. There is no one technique that will solve all differential equations and there are differential equations for which we can only approximate solutions. However, the methods that have been developed usually work for a particular type or class of differential equation. Thus it is important to be able to classify our differential equations into these various classes. We will learn how to do this as we go along. As a first step in this direction we need some basic definitions and terminology.

Definition 9.1.9.

An equation that involves an unknown function, \(y=y(x)\text{,}\) derivatives of that function and the independent variable \(x\) is called a differential equation (DE).

The order of a DE is the order of the highest derivative that appears in the equation.

A particular solution for the DE is a function \(y=y(x)\) that satisfies the equation.

The general solution of the DE is a description of all possible solutions.

What is the order of each the following of the DEs? Using your knowledge of the basic functions of science and engineering try to guess a solution to each DE.

  1. \(\displaystyle y'=x \)

  2. \(\displaystyle y'=-y \)

  3. \(\displaystyle y'=-x \)

  4. \(\displaystyle y''=-y \)

  5. \(\displaystyle y''-2y'=0 \)

Answer.
  1. First order; \(y(x)=\frac{1}{2}x^2+C\)

  2. First order differential equation; \(y(x)=e^{-x}\)

  3. Second order differential equation; \(y(x)=-\frac{1}{6}x^3+Ax+B\)

  4. Second order differential equation; \(y(x)=\sin(x)\)

  5. Second order differential equation; \(y(x)=e^{2x}\)

Solution.
  1. Because this equation only involves the first derivative of the function it is a first order differential equation. Next, since the differential equation is of the form

    \begin{equation*} \frac{dy}{dx}=f(x) \end{equation*}

    we can solve it by simple anti-differentiation. Thus

    \begin{equation*} y(x)=\int x \hspace{2mm} dx =\frac{1}{2}x^2+C \end{equation*}

    Note that this solution is the general solution to the DE, it is a description of all possible solutions to the equation. As shown in Figure 9.1.11, when we graph all of the functions in this general solution they fill the entire plane but there are no points of intersection.

    Figure 9.1.11.
    A solution with a given value of \(C\) would be a particular solution of the DE, for example

    \begin{equation*} y(x)=\frac{1}{2}x^2+1 \end{equation*}

    This particular solution is highlighted in Figure 9.1.11.

  2. Again this is a first order DE since the highest derivative in the equation is a first derivative. In this case we can't solve the equation via anti-differentiation. However, given that the equation says that the function must be such that its derivative must be equal to the negative of itself it would be reasonable to guess that the function must be an exponential function. For \(y(x)=e^x\) we can see that

    \begin{equation*} y'=e^x=y \end{equation*}
    and so try instead \(y(x)=e^{-x}\text{.}\) Then
    \begin{equation*} y'=-e^{-x}=-y \end{equation*}
    and so we have found a (particular) solution.

  3. This DE contains a second derivative and hence is of order 2. Again we can find a solution by simple anti-differentiation. Since

    \begin{equation*} \frac{d^2y}{dx^2}=-x \end{equation*}
    by anti-differentiating we obtain
    \begin{equation*} \frac{dy}{dx}=\int -x \hspace{2mm} dx=-\frac{1}{2}x^2+A \end{equation*}
    and on anti-differentiating again
    \begin{equation*} y(x)=\int -\frac{1}{2}x^2+A \hspace{2mm} dx=-\frac{1}{6}x^3+Ax+B \end{equation*}
    This is the general solution to the DE. Notice that this 2nd order DE has two arbitrary constants in its general solution.

  4. This DE is also a 2nd order DE but we can't get the solution by anti-differentiation. Thus (at this stage) we have to try to guess. What function is the negative of its second derivative? We could try an exponential function (as we did in part \((b)\)), i.e.

    \begin{equation*} y(x)=e^{-x} \end{equation*}
    Then \(y''=e^{-x}=y\) which isn't quite what we wanted. Another possible candidate would be the sine or cosine function. So let us now try
    \begin{equation*} y(x)=\sin(x) \end{equation*}
    Then \(y''=-\sin(x)=-y\) which is what we wanted and so we have found a solution.

  5. This DE contains both the first and second derivative. However since the highest derivative is the second derivative this equation is a 2nd order DE. The most obvious candidate for a solution to this DE would be an exponential function so let's try

    \begin{equation*} y(x)=e^{2x} \end{equation*}
    In this case \(y'=2e^{2x}\) and \(y''=4e^{2x}\) and hence \(y''-2y'=0\text{.}\) Thus we have found one solution to the DE.

In general a differential equation will have infinitely many solutions. These solutions take the form of a family of functions containing some arbitrary constants. In practical problems, we usually want to select one function out of this infinite family of functions. We do this by specifying additional data, often in the form of initial values for the function and, if appropriate, its derivatives. We call such a problem an initial-value problem.

The differential equation \(y'=-y\) has the general solution

\begin{equation*} y=Ae^{-x}\text{.} \end{equation*}

Confirm that this is a solution and then solve the initial-value problem

\begin{equation*} y'=-y, \hspace{5mm} y(0)=5 \end{equation*}
Solution.

To confirm that all of the functions \(y=Ae^{-x}\) are solutions we just need to show that these functions satisfy the equation. Now

\begin{equation*} LHS=y'=-Ae^{-x}=-y=RHS\text{,} \end{equation*}

and so they are solutions.

To solve the initial-value problem we have to find the value of \(A\) that ensures that the solution satisfies the initial condition. Now if \(y(0)=5\) then

\begin{equation*} 5=Ae^{-0}=A\text{.} \end{equation*}

Thus the solution to the initial-value problem is

\begin{equation*} y(x)=5e^{-x}\text{.} \end{equation*}

Exercises Example Tasks

1.

Determine the value (if any) of the constants \(A\) and \(B\) such that

\begin{equation*} y(x)=A\cos(4x)+B\sin(4x) \end{equation*}
is a solution to the DE
\begin{equation*} y''-2y=\sin(4x) \end{equation*}

2.

Guess a solution to the DE \(y''+2y=0\text{.}\)