## Indefinite Integrals

As students begin anti-differentiation they will need to have a certain degree of confidence with common derivatives. This confidence, developed from substantial practice, will result in quicker recognition of the “results” from their work in differentiation.

To develop the needed skill for harder problems in the future, it is ok to practice guess and check type integration before working on the “reverse” power rule or other techniques. While it takes some time, and sometimes causes frustration, the pay off is getting an understanding of how to separate and algebraically manipulate functions to make for easier integration when the problems get complicated. A couple of good problems to try:

All of these problems are solvable easily with substitution or other techniques to be learned later. However, the process of trying functions, taking the derivative and seeing how the outcome turns out will provide a strong foundation for understanding the techniques and rules later, as well as just being good analytic practice.

## The Initial Value Problem

Here is an example problem with a basic differential equation:

You have two friends who are coming to meet you. One of your friends calls you after he left saying that he is now away. Your other friend calls after leaving, and is now away. The first person averages and the second averages . When were they equally distant from you?

A contrived problem, but one that provides some opportunity. There are many ways to solve this problem, and some students may feel like using calculus is a waste of time, as they are just learning those skills and others are still more familiar. It is a challenge when introducing new topics to choose problems that are easy enough to check and feel confident about, but provide opportunities to practice the new skills. Therefore, don't discourage or dismiss students who feel there is a better way, but insist that everyone at least attempts the problem using calculus.

All we have is two constant functions so we should list them: . Astute observers will see a potential problem with this, however. Since the drivers are coming towards you, and the standard convention is to put the subject of the problem at the origin, we should actually be indicating the velocities to be negative. It is up to the instructor when that should be brought up. We saw earlier that velocity is the derivative of the position function, so it follows that position is the anti-derivative of the velocity function. Therefore and . We do wish to know when the two position functions are equal, but with the constant term still not determined we can't do so. This is where the initial conditions come into play. Substituting in the time and position: and . Now the problems can be set equal: .

It is important also to interpret the answer correctly. It states they will be equidistant after they left, not after they called. A simple problem, but one to illustrate the application of differential equations and how initial conditions fit in.

## The Area Problem

The same way that physical problems can illustrate the motivation for the derivative, the same can be done for integrals. Take the following table of velocities from a car starting from a full stop:

How much distance did the car travel in those ?

The way this was done in algebra was to find the average velocity and multiply by the time to get the distance traveled. It should be apparent from the table that the velocity, and even the change in velocity, is not constant. However, something can be inferred from that process. If we graph the time on the axis, and the velocity on the y axis, then the average velocity times the time is the same as the area of the rectangle made. Ask the students “Is there a way to get a more accurate approximation?” A diagram or graph may be helpful as an illustration. It should be clear that treating each second as it's own problem will result in a closer answer. One question that needs to be answered is where to take the height of each rectangle from. If you take the height from the right hand side the answer is:

Taking it from the left hand side:

Students should be able to safely assume that the correct answer is in between those two. Furthermore, they should think about the different ways that the answer could be improved. Students will probably come up with smaller rectangles, more rectangles, average the rectangles or end points (essentially the trapezoid rule) and possibly some others, most of which will be the next steps.

## Definite Integrals

It is up to the instructor at this point whether or not to introduce some summation rules. This may depend on whether or not the class has had experience with series in previous classes or if they are comfortable with what has been presented thus far in the class. These facts do not need to be proven just yet; there will be proofs presented later in the chapter on series. Some useful facts are:

where is a constant

Many definite integrals can be solved using just these rules:

Solve:

First, the width of each interval with subdivisions is . This makes each right hand endpoint . Therefore the definite integral is:

Using the final summation rule above. Now we can pull the constants out front and that will result in a match for the form listed above for some other summation rules:

Now it's possible to evaluate the limit and find that .

## Evaluating Definite Integrals

An application of the definite integral, and one that appears regularly on tests, is finding the average value for a function. Averages are easy to find in linear situations, but not so easy with curves. The average value of a function can be found by evaluating:

which can be thought of as the area under the curve divided by the length of the interval. This is consistent with how we would find the mean in most other situations. An example of it's use:

An endowment account is being continually withdrawn from over the course of a month to cover day to day expenses. The amount of money in the account can be modeled with the equation: where is the amount in the account, in thousands, and t is time in days. The bank pays interest on the average amount in the account over the whole day month. How much interest is paid? How much money needs to be placed into the account at the end of the month to maintain the same balance?

Because this is a curve, it is not possible to subtract the endpoints and divide by the duration. The function, and the information on the endpoints needs to be place into the average value formula:

This give us the average amount of money for the month, so multiplying by states that thousand dollars are paid. This means that after the interest gets paid there is thousand in the account. If we substitute into the formula to find out how much the balance was at the beginning of the month, we find that it needs to be thousand dollars, meaning that there needs to be thousand replaced to keep the endowment going.

There is frequently a question regarding average values on the AP examination. Because of it's intuitive format, that is, it is close to how we find means, it may not need to be stressed for memorization, but it will come in handy for both tests, and for applied classes like physics and economics.

## Integration by Substitution

This is the beginning of one of the more memorable parts of first year calculus. The set of techniques for integration need practice, practice and more practice. It is a pattern recognition game that can only be won through having the experience to match the correct technique. Furthermore the use of an incorrect technique may not result in an impossible situation, but will only fail to help get closer to the solution. A simple algebraic example of what I mean: to solve , one of the tools that is available to solve algebraic equation is to square both sides. We can legally do so in this instance, but doing so will only make the problem worse. This can often happen with either a poor choice of method, or a poor substitution or other traps that will be considered in the next sections.

If the integral is not straightforward, it is always preferable to start by attempting a substitution. It is the easiest, and usually going to work most frequently. Another clue is that substitution is the opposite of the chain rule. If it looks like you are being asked to integrate a composite function, substitution is probably the key.

## Numerical Integration

The trapezoid rule and Simpsons rule provide one of the first peeks into the sort of “brute-force” solving methods that we rely on now with technology. Getting a close answer with either method is not challenging, like taking a very involved anti-derivative is challenging, but can take significantly longer depending on the situation. One of the main tenets of computer science is that the major advantage of a computer is that it can do the same procedure, over and over again, without making errors or getting bored. Try to compute Simpson's rule by hand with subdivisions and you too will believe that it is an advantage.

So a great problem to tackle at this point is how to program a computer to take a definite integral with a good deal of precision. I will present the steps in TI-BASIC here, as the graphing calculator is probably the most likely place for students to be programming in the math classroom. This is also relatively easy in Python, Java or C if the instructor is familiar with those languages and has access to computers to use for programming. There are resources on the web detailing how to write a program for Simpsons rule in those languages.

I will put comments after a “//” to explain what each line is doing. These comments should not, and really can't, be entered on the calculator.

- Input “FUNCTION?”,Str //Getting the function and storing it in a string variable, found under the VARS menu
- Str //Placing the function in the spot so it can be used as a function
- Input “LOWER LIMIT?”, //The lower limit of integration
- Input “UPPER LIMIT?”, //The upper limit of integration
- Input “DIVISIONS?”, //The number of subdivisions used for the approximation
- While fPart //This checks to see if the number entered for is even. If not, it asks for a new number until is even
- Disp “NEED NEW ”
- Input “ MUST BE EVEN”,
- End
- //Makes the length of each subdivision
- //I will be used as a counter between and
- //Setting up a list for the coefficients to be multiplied to each endpoint of the function
- While
- augment
- End
- augment
- sum //This takes the sum of each element of the sequence of function values from to , multiplies by the width of each, and puts the answer into

Disp Str //Displays the function and answer

Disp “IS APPROX”

Disp

While the use of a list to produce the coefficients is a bit of a novel approach, there are many other ways to do so, including putting the computation of the approximation inside of a For or While loop. Be flexible and try to guide students as much as possible in writing some of their own code. A next step might be to try and write a program for trapezoid approximation.

### Image Attributions

## Description

## Authors:

## Tags:

## Categories:

## Date Created:

Feb 23, 2012## Last Modified:

Feb 23, 2012**You can only attach files to None which belong to you**

If you would like to associate files with this None, please make a copy first.