Extra credit on integration

This is worth 5 points extra credit if done properly and turned in by May 18.

Get this as an ipynb file for IJulia.


Definite integration can be done different ways:

$$~ \int_a^b f(x) dx = F(b) - F(a) ~$$

In Julia, the SymPy package can find antiderivatives and evaluate, but that isn't needed here.

Suppose $f(x) \geq 0$. Then different definite integrals have different interpretations. The Riemann sum approach uses the fact that

The definite integral $\int_a^b f(x) dx$ is the area under $f(x)$ over the interval $[a,b]$.

Some integrals give different values. For example

The definite integral $\int_a^b \sqrt{1 + f'(x)^2} dx$ give the arc length of the graph of $f(x)$ between $a$ and $b$.

Questions

Use the following packages:

using Plots
using Roots
Base.ctranspose(f::Function) = D(f)
ctranspose (generic function with 38 methods)