Math Insight

Slides: Solving pure time differential equations through integration

 

Use the arrow keys to change slides.

Video

Video using these slides

Talk transcript

To solve a pure time differential equation $$\diff{F}{t} = f(t)$$ we are given the rate of change little $f(t)$ of some other unknown function capital $F(t)$, and we want to determine what capital $F(t)$ is.

To be concrete, let's think of the example $$\diff{F}{t} = 4t$$ where the function little $f(t)$ equals $4t$.

To find capital $F(t)$ from little $f(t)$, we have to undo the differentiation. That's why we call capital $F(t)$ the antiderivative of little $f(t)$.

For our example function, it's pretty easy to undo the differentiation. The antiderivative of $4t$ is the function $F(t)=2t^2$. You can try it yourself. If you differentiate $F(t)$, you will get $4t$.

Here we plot the function little $f(t)$ in blue and its antiderivative capital $F(t)$ in green.

Now a function has exactly one derivative. What about for the antiderivative? It turns out that a function has many antiderivatives. Since the derivative of a constant is zero, we can add any constant to the antiderivative, and its derivative will still be the function little $f(t)$. Hence, we really have a set of antiderivatives capital $F(t) + C$, where $C$ is an arbitrary function. On our plot, we can move the graph of the antiderivative up or down and it is still the antiderivative of $4t$. Notice how moving the antiderivative up and down corresponds to adding a different number to the antiderivative $2t^2$.

We have another name for the antiderivative: the integral of the function $f(t)$, which we write like this. The curvy symbol is the integral sign and we read it as the integral of $f(t) dt$. The integral takes little $f(t)$ as the input and outputs the antiderivative capital $F(t) +C$. The $dt$ indicates that $t$ is the variable of integration.

For our example function, we can write that the integral of $4t\, dt$ is $2t^2+C$.

In order to integrate, or find the antiderivative of, functions, we need rules that tell us how to integrate, similar to how we have rules that tell us how to differentiate. Unfortunately, undoing a derivative isn't as simple as taking a derivative. In fact, we can't always find an antiderivative of a function so there is no foolproof method for taking the integral of any function. Now, we can get quite fancy and figure out tricks to integrate different functions. But, let's not take that approach here. Instead, we'll just deal with some simple cases where reversing the derivative rule works out nicely. Then, we will be able to find antiderivatives, or integrals, for some basic cases.

One of the first rules you learn for differentiation is the power rule so that you can differentiate functions like $t^2$, $t^5$, etc. Here, we write the power rule for differentiation slightly differently, where we have $t$ to the power of $n+1$. If we differentiate $t$ to the power of $n+1$, the exponent $n+1$ comes down in front and the exponent decreases to $n$. The result is $(n+1)$ times $t^n$. We want our result to be just plain old $t^n$, so let's divide both sides by $n+1$. Now we have a differentiation rule that gives us $t^n$ as the derivative.

We are all set to reverse the rule and obtain the integration rule for $t^n$. If we undo the differentiation of $t^n$, we must have differentiated $t^{n+1}$ divided by $n+1$. Thus, the integral of $t^n dt$ is $t^{n+1}$ divided by $n+1$, plus our ubiquitous constant $C$.

Now, if $n$ were $-1$, we'd be in trouble, as we'd be dividing by 0. So, this rule only works when $n$ is not equal to $-1$.

Let's try an example. The integral of $t^2$. To integrate $t^2$, we must increase the exponent from 2 to 3, and then divide by the new exponent 3. Notice, since we are reversing differentiation, the order is the opposite. To differentiate, you first multiply by the exponent, then decrease the exponent by one. To integrate, do the reverse steps in the opposite order. First, increase the exponent by one, then divide by that new exponent. Here we have obtained our result $t^3/3$. Oh yes, don't forget to add that arbitrary constant $C$. Of course, we know you are going to forget to put that $C$ down at some point. Try to get that mistake out of your system early so that you'll remember to write down that $C$ when it counts.

Here's a plot of the function $t^2$ in blue, along with the integral $t^3/3$ plus a constant in green. The fact that I can move the green curve up and down is supposed to help you remember to add the constant $C$.

Let's go back to the first example, where we want to find the antiderivative of $4t$. To integrate $4t$, the first thing we can do is pull the constant 4 out of the integral and have 4 times the integral of $t$. Do you recognize $t$ as a power function. It is $t$ to the power of 1. Increase the exponent to 2, divide by 2, and we're done. Once we remember to add the constant $C$. Here's the same plot of the solution, which we can move up and down.

It'd be boring if we always used the same variable $t$. Let's take an integral with respect to the variable $x$. This time, we have a polynomial with three terms, $2x^3-4x+1$. To integrate, we separate the terms into different integral and apply the power rule to all three. Wait a minute, what do we do about the number 1? Well, let's think of 1 as $x$ to the power of 0. Then, we can use the power rule again. We add 1 to each exponent and divide by the exponent. When we simplify, we get the result $x^4/2 - 2x^2 +x$ plus our constant $C$.

The graph of the function $f$ and its antiderivative look a little more complicated here. But notice that when ever $f$ (in blue) is positive, the antiderivative (in green) is increasing. When $f$ is negative, the antiderivative is decreasing. This relationship holds even if I move the graph of the antiderivative up or down.

OK, we are getting good at this. Let's increase our repertoire of functions by adding the exponential function to the list. Differentiating the exponential function is easy. We get the function back again. Hence, integrating the function is equally easy. We get the function back again, with the only difference being the constant $C$.

Do you remember how to differentiate $e^{3t}$? The factor $3$ just comes down to multiply the exponential. Therefore, if we are integrating 3 times $e^{3t}$, the result is $e^{3t}$ plus a constant. We can use any constant $k$ instead of 3 and the result holds. The integral of $k$ times $e^{kt}$ is the function $e^{kt}$ plus a constant.

We can now handle an example where we add a number to an exponential. Just break it up into two integrals. OK, we didn't exactly have 5 times $e^{5t}$ in this example, but we can factor out a 2 to give us the form we want. We end up with 3t plus 2 times our exponential, with a $C$ at the end for completeness.

What about the integral of $e^{7x}$ where we don't have a 7 in front like our rule demands? Well, just multiply by the 7 to put it where we need it and multiply by 1/7 to undo it. Now, we have 1/7 times our exponential plus a constant.

Our power rule works just fine as long as the exponent $n$ is not -1. But we'd also like to be able to integrate 1/t, which is the case when $n=-1$. What can we do? We have to think beyond power functions. We have to remember our derivative rules and realize that 1/t did show up somewhere. The derivative of the logarithm of t is 1/t. That was handy, now we can reverse the rule and determine that the integral of 1/t must be the logarithm plus a constant.

That looks good, but we are actually missing something. To see the problem, let's take a look at the graph of 1/t and its antiderivative. Notice how 1/t is defined for both positive and negative values of t. Therefore, its integral should also be defined for positive and negative t. The logarithm, however, is only defined for positive t. We can't take the logarithm of a negative number and get a real result. How do we fix this. Notice that the integral of 1/t is symmetric for negative t. We can turn our logarithm into a symmetric function by first taking the absolute value of t before taking the logarithm. That doesn't change anything for positive $t$ and gives us the result we need for negative $t$. The correct rule for the integral of 1/t is the logarithm of the absolute value of t, plus a constant C.

With this rule in hand, you can integrate 1/t plus another function by breaking up the integral. You can also integrate more complicated functions with t in the denominator, but I think we should take a break now.

Just remember, to differentiate a function with terms that are powers, exponentials, and logarithm, break up the integral into each term separately, and use these rules to find the antiderivative of your function.