##### How to use
Enter the function f (x) in the text input field marked "f(x)=".

Example: f (x)=x3-x

Click the "Graph" button (this button also refreshes the graph).

Enter the antiderivative F (x) (so that F '(x)=f (x)) in the text input field marked "F(x)=".

Example: F (x)=x4/4-x2/2

Enter the function g(x) in the text input field marked "g(x)=", and click the "Graph" button to refresh.

Example: g(x)=x

Enter the antiderivative G(x) (so that G '(x)=g(x)) in the text input field marked "G(x)=".

Example: G(x)=x2/2

Enter the endpoints of the interval [a,b] for the definite integral in the text input fields marked "a=" and "b=", and click the "Graph" button to refresh.

Example: [a,b]=[-2,2]

To erase the graph and all input fields, click the "Clear" button.

##### Examples
Polynomial: f (x)=x3-x, F (x)=x4/4-x2/2, g (x)=x, G (x)=x2/2, [a,b]=[-2,2]

Trigonometric: f (x)= sin x, F (x)= cos x, g (x)= cos x, G (x)= -sin x, [a,b]=[0.7854,2.3562]

##### Other Notes
The graph shows f (x) and g(x), with the area between the curves on the interval [a,b] shaded so that positive areas are blue and negative areas are red. A label under the graph shows the net area between the curves.

In the "Polynomial" example above, the regions shaded have part with f (x) above g(x) (in blue) and part reversed (in red). The two areas are exactly the same, giving a value of zero for net area (blue area minus red area).