Calculating Integrals

There's three ways to calculate an integral:[br][br][list=1][*]Approximate the integral with Riemann Sums of rectangles (or some other geometrical object like a trapezoid). We saw this when we were making estimates of the car count on Route 15 in Johnson, Vermont at the start of [url=https://www.geogebra.org/m/x39ys4d7#chapter/398516]this chapter[/url].[/*][*]Ask a computer to do it. This is effectively what I've been doing to build the applets in the previous exercises. The code is pretty easy. To calculate the integral of [code]f(x)=x^2[/code] from [code]x=1[/code] to [code]x=2[/code], just type this into a Geogebra input bar: [code]integral(x^2,1,2)[/code][/*][*]Calculate the integral "by hand" using the Fundamental Theorem of Calculus. [/*][/list][br]For almost all intents and purposes [i]except standardized tests[/i], everyone in the world uses method 2. There are dozens of computer programs that are freely available and calculate integrals quickly. Geogebra is probably the easiest to use, but [url=https://www.wolframalpha.com]WolframAlpha[/url] is also pretty good, and accepts natural language requests ("integrate x squared from 1 to 2"). Don't think computer programs are a panacea however. There are plenty of integrals that the computer stumbles with. But that rarely moves people entirely away from using computers to calculate integrals. Instead, it might spark some technical research into slight adjustments to the integral that will make the computer able to calculate it. But that sort of stuff is for a course on computational mathematics. For now, let's just stick to the basics.[br][br]Try calculating an integral in Geogebra below. Integrate [code]f(x)=x^2 [/code]from [code]x=1[/code] to[code] x=2[/code] with the code [code]integral(x^2,1,2)[/code]. Note: you could also use the code [code]integral(f,1,2)[/code] since the function has already been declared with the name [code]f[/code]. There is a slight advantage to the second code snippet, since if down the road you decide to change [code]f(x)[/code] to something different, the integral will automatically update the integral to reflect the change.
Try typing in any other function you like and calculate some integrals. Geogebra is REALLY good at calculating integrals. It won't get stumped unless you get into some really pathological functions. [br][br]A fun one to try right now is a function called h[code](x)=[/code][code]floor(x)[/code]. Type it into the input bar now. It should look like a staircase. The function [code]floor(x)[/code] takes any input and simply rounds down to the whole number "floor". So 1.2 is "floored" to 1 while -1.2 is "floored" to -2. Try integrating [code]floor(x)[/code] from 1 to 5. Can you see why the integral is 10?
So that brings us to method 3 for calculating integrals. I hope it didn't go unnoticed by you that the 3rd method of calculating integrals mentioned something that sounded kind of important: [b]The Fundamental Theorem of Calculus[/b]. [br][br]First of all, if you haven't heard it already, the word "theorem" simply means "mathematical fact that has been proven true beyond all doubt". Notice that I didn't say "beyond all [i]reasonable[/i] doubt." I said "[i]all doubt[/i]." This means that in the world of human intellect, there's very little that's more of a sure thing than a "theorem." Theorems trump all "laws of science" and "Articles of Constitutions" as the most truthful statements known to human beings. On very rare occasions a theorem ends up being overturned, but these instances are extremely rare. In some sense, the business of mathematicians is to a.) discover new theorems and b.) safeguard the word "theorem" by ensuring no one gets to call anything a theorem unless it's been checked out very thoroughly. [br][br]Back to the [b]Fundamental [i]Theorem[/i] of Calculus.[/b] This particular theorem (remember: mathematical fact that has been proven true beyond all doubt) provides an incredible tool for calculating integrals. Click ahead to check it out.

Information: Calculating Integrals