Category Archives: Calculus

The Fundamental Theorem of Calculus

First we begin with the Mean Value Theorem for Definite Integrals.

Theorem. If $f$ is continuous on $[a,b]$, then at some point $c\in [a,b]$,
$$f(c)(b-a)=\int_a^b f(x)dx$$
or
\begin{equation}
\label{eq:mvt}
f(c)=\frac{1}{b-a}\int_a^b f(x)dx.
\end{equation}
Notice that the RHS of \eqref{eq:mvt} is the average of $f(x)$ on $[a,b]$.

Example. Find the average value of $f(x)=4-x$ on $[0,3]$ and $c\in[0,3]$ at which $f$ actually takes on this value.

Solution. The region under $y=4-x$ on $[0,3]$ is a trapezoid and its area is $\frac{15}{2}$. So,
\begin{align*}
av(f)&=\frac{1}{3-0}\int_0^3(4-x)dx\\
&=\frac{5}{2}.
\end{align*}
Let $f(c)=\frac{5}{2}$. Then $4-c=\frac{5}{2}$ and $c=\frac{3}{2}$.

Example. Show that if $f$ is continuous on $[a,b]$ ($a\ne b$) and if $\int_a^b f(x)=0$ then $f(x)=0$ at least once in $[a,b]$.

Solution. By the MVT, there exists $c\in[a,b]$ such that
$$f(c)=\frac{1}{b-a}\int_a^b f(x)dx=0.$$

Suppose that $f(t)$ is an integrable function on a finite intervale $I$. Let $a\in I$. Then
$$F(x):=\int_a^x f(t)dt$$
defines a fuction on the interval $I$. Let $f(x)$ be a continuous function on $[a,b]$. Then

Claim 1: $F(x)=\int_a^x f(t)dt$ is continuous on $[a,b]$. (For a proof click here. For those who are not familiar with $\epsilon$-$\delta$ argument, an alternative proof is available here.)

Claim 2: $F(x)$ is differentiable on $(a,b)$ and $F'(x)=\frac{d}{dx}\int_a^xf(t)dt=f(x)$. (For a proof click here.)

The claims 1 and 2 constitute:

The Fundamental Theorem of Calculus (Part I)

If $f$ is continuous on $[a,b]$, then $F(x)=\int_a^xf(t)dt$ is continuous on $[a,b]$ and is differentiable on $(a,b)$. Moreover, $F'(x)=\frac{d}{dx}\int_a^xf(t)dt=f(x)$.

The Fundamental Theorem of Calculus (Part II) relates the definitel integral and an antiderivative of a function $f(x)$.

If $f$ is continuous on $[a,b]$ and $F$ is any antiderivative of $f$ on $[a,b]$, then
$$\int_a^b f(x)dx=F(b)-F(a).$$(For a proof click here.)

Note: The usual notation for $F(b)-F(a)$ is $F(x)|_a^b$ or $[F(x)]_a^b$.

Example. Find using the Fundamental Theorem.

  1. $\frac{d}{dx}\int_a^x\cos tdt$
  2. $\frac{d}{dx}\int_0^x\frac{1}{1+t^2}dt$
  3. $\frac{d}{dx}\int_x^5 3t\sin tdt$
  4. $\frac{d}{dx}\int_1^{x^2}\cos tdt$

Solution.

  1. $\frac{d}{dx}\int_a^x\cos tdt=\cos x$
  2. $\frac{d}{dx}\int_0^x\frac{1}{1+t^2}dt=\frac{1}{1+x^2}$
  3. $\frac{d}{dx}\int_x^5 3t\sin tdt=-\frac{d}{dx}\int_5^x 3t\sin tdt=-3x\sin x$
  4. Let $u=x^2$. Then by the chain rule, \begin{align*}\frac{d}{dx}\int_1^{x^2}\cos tdt&=\frac{d}{du}\int_1^u\cos tdt\frac{du}{dx}\\&=2x\cos x^2\end{align*}

Example. Find a function $y=f(x)$ on $\left(-\frac{\pi}{2},\frac{\pi}{2}\right)$ with $\frac{dy}{dx}=\tan x$ and $f(3)=5$.

Solution. $y=\int_3^x\tan t dt+5=\ln\frac{\cos 3}{\cos x}+5$.

Example.

  1. $\int_0^{\pi}\cos x dx=[\sin x]_0^{\pi}=\sin\pi-\sin 0=0$. 

    The graph of y=cos(x) on [0,pi]

  2. \begin{align*}\int_1^4\left(\frac{3}{2}\sqrt{x}-\frac{4}{x^2}\right)dx&=\frac{3}{2}\int_1^4 x^{\frac{1}{2}}dx-4\int_1^4x^{-2}dx\\&=[x^{\frac{3}{2}}]_1^4+4\left[\frac{1}{x}\right]_1^4\\&=4\end{align*}

Example. Find the area bounded by the $x$-axis and the parabola $y=6-x-x^2$.

Solution. Note that when you solve area problems it is extremely important to sketch the graph of the given function in order to correctly set up your integral. The reason is that some part of the function may not be nonnegative. The quadratic equation $6-x-x^2=0$ has two solutions $x=-3,2$, so these are the $x$-intercepts of the function $y=6-x-x^2$.

The graph of y=6-x-x^2 on [-3,2].

Since the graph is above the $x$-axis on $[-3,2]$, the area is obtained by the integral $$\int_{-3}^2(6-x-x^2)dx=\frac{125}{6}$$

Example. Find the area of the region bounded by the $x$-axis and $f(x)=x^3-x^2-2x$.

Solution.  The function has three $x$-intercepts $x=-1, 0, 2$. Since $f(x)$ has an odd degree and a positive leading coefficient, it’s graph is

The graph of y=x^3-x^2-2x on [-1,2].

The graph is below the $x$-axis on $[0,2]$. Hence the area is $$\int_{-1}^0(x^3-x^2-2x)dx-\int_0^2(x^3-x^2-2x)dx=\frac{37}{12}$$

Definite Integral

If $f: [a,b]\longrightarrow\mathbb{R}$ is a continuous function, the limits from the left-end point, midpoint, and right-end point methods in Areas under Curves exist and they are identical. The limit is denoted by $\int_a^b f(x)dx$ and called the definite integral of $f(x)$ on the closed interval $[a,b]$. It is not necessarily that $f(x)\geq 0$ for all $x\in [a,b]$, but if $f(x)\geq 0$ for all $x\in [a,b]$, then $\int_a^b f(x)dx$ is the area under the curve $y=f(x)$ on the interval $[a,b]$. It can be proven that the definite integral $\int_a^b f(x)dx$ does not depend on the choice of partition of $[a,b]$ or the choice of point in each subinterval to evaluate $f(x)$. More specifically, let $P: a=x_0<x_1<x_2<\cdots<x_n=b$ be an arbitrary partition (or a subdivision) of $[a,b]$ with $\Delta x_k=x_k-x_{k-1}$, $k=1,2,\cdots,n$. Also let $x_k’$ be any point in the subinterval $[x_{k-1},x_k]$, $k=1,2,\cdots,n$. Then
$$\int_a^b f(x)dx=\lim_{n\to\infty}\sum_{k=1}^nf(x_k’)\Delta x_k.$$

The definite integral $\int_a^b f(x)dx$ satisfies the following properties.

Theorem. 1. $\int_a^b f(x)dx=-\int_b^a f(x)dx$.

2. $\int_a^a f(x)dx=0$.

3. $\int_a^b cf(x)dx=c\int_a^b f(x)dx$, where $c$ is a constant.

4. $\int_a^b (f(x)+g(x))dx=\int_a^b f(x)dx+\int_a^b g(x)dx$.

The properties 3 and 4 tell us that the definite integral $\int_a^b f(x)dx$ is linear.

5. $\int_a^c f(x) dx+\int_c^b f(x)dx=\int_a^b f(x)dx$.

6. Let $m$ and $M$ be the minimum and the Maximum values of $f(x)$ on $[a,b]$. Then
$$m(b-a)\leq\int_a^b f(x)dx\leq M(b-a).$$

7. If $f(x)\leq g(x)$ on $[a,b]$, then
$$\int_a^b f(x)dx\leq\int_a^b g(x)dx.$$
As a special case, if $f(x)\geq 0$, then $\int_a^b f(x)dx\geq 0$.

Example. Suppose that
$$\int_{-1}^1 f(x)dx=5,\ \int_1^4 f(x)dx=-2,\ \int_{-1}^1 h(x)dx=7.$$
Find

1. $\int_4^1 f(x)dx$.

Solution.
$$\int_4^1 f(x)dx=-\int_1^4 f(x)dx=2.$$

2. $\int_{-1}^1(2f(x)+3h(x))dx$.

Solution. \begin{align*}
\int_{-1}^1(2f(x)+3h(x))dx&=2\int_{-1}^1f(x)dx+3\int_{-1}^1h(x)dx\\
&=31.
\end{align*}

3. $\int_{-1}^4 f(x)dx$.

Solution.
\begin{align*}
\int_{-1}^4 f(x)dx&=\int_{-1}^1 f(x)dx+\int_1^4 f(x)dx\\
&=3.
\end{align*}

Example. Show that the value of $\int_0^1\sqrt{1+\cos x}dx$ is less than $\frac{3}{2}$.

Solution. Since $-1\leq\cos x\leq 1$ and $\sqrt{x}$ is an increasing function on $[0,\infty)$, $\sqrt{1+\cos x}\leq \sqrt{2}$. Hence,
\begin{align*}
\int_0^1\sqrt{1+\cos x}dx&\leq\int_0^1\sqrt{2}dx\\
&=\sqrt{2}\\
&\approx 1.4142136\\
&<\frac{3}{2}.
\end{align*}

Using the symmetries of even functions and odd functions, we obtain the following properties.

Theorem. Let $f:[-a,a]\longrightarrow\mathbb{R}$ be a continuous function. Then

1. If $f$ is an even function,
$$\int_{-a}^a f(x)dx=2\int_0^a f(x)dx.$$

2. If $f$ is an odd function,
$$\int_{-a}^a f(x)dx=0.$$

An Application of Definite Integral: Average Value of a Continuous Functions

Let $f: [a,b]\longrightarrow\mathbb{R}$ be a continuous function. Divide the closed interval $[a,b]$ into $n$ equal subintervals. Choose $n$ samples of $f(x)$ on $[a,b]$
$$f(c_1), f(c_2),\cdots,f(c_n)$$
such that $c_k\in[x_{k-1},x_k]$, $k=1,2,\cdots,n$. Then the average value of these $n$ samples is
\begin{align*}
\frac{f(c_1)+f(c_2)+\cdots+f(c_n)}{n}&=\frac{1}{b-a}(f(c_1)+f(c_2)+\cdots+f(c_n))\frac{(b-a)}{n}\\
&=\frac{1}{b-a}\sum_{k=1}^nf(c_k)\frac{(b-a)}{n}.
\end{align*}
Now we increase the number of sample points to infinity:
\begin{align*}
\lim_{n\to\infty}\frac{f(c_1)+f(c_2)+\cdots+f(c_n)}{n}&=\lim_{n\to\infty}\frac{1}{b-a}\sum_{k=1}^nf(c_k)\frac{(b-a)}{n}\\
&=\frac{1}{b-a}\int_a^b f(x)dx.
\end{align*}

Definition. The average or mean value of a continuous function $f(x)$ on $[a,b]$ is given by
\begin{equation}
\label{eq:mv}
\mathrm{av}(f)=\frac{1}{b-a}\int_a^b f(x)dx.
\end{equation}

Example. Find the average value of $f(x)=\sqrt{4-x^2}$ on $[-2,2]$.

Solution. Notice that $y=\sqrt{4-x^2}$ on $[-2,2]$ is the upper semi-circle centered at the origin with radius 2. Hence,
\begin{align*}
\mathrm{av}(f)&=\frac{1}{2-(-2)}\int_{-2}^2\sqrt{4-x^2}dx\\
&=\pi.
\end{align*}

Areas under Curves

In this lecture, we devise a way to calculate the area under a curve. How do we do this? Have you seen the Spaceship Earth at Epcot? If you look at the Spaceship Earth from afar, it looks like a smooth sphere but if you come close, you will find out that it is made of a whole bunch of triangles (actually tetrahedra).

Spaceship Earth

Spaceship Earth

This may give us a clue as to how to tackle our problem. Perhaps we can too to approximate the given curved region with some simple geometric figures of which we know how to calculate areas. Considering that our region is a part of a rectangle except for the curved top, the best candidate would be rectangles. By the way this is in no way a new idea. Ancient Greeks already knew that they could approximate complex curved regions or solids by simple geometric objects such as triangles, rectangles, disks, etc. There are three convenient ways to approximate the area under a curve by rectangles. They are called the left-end point method, midpoint method, and right-end point method, respectively. Let us first discuss the left-end point method. We want to approximate the area under a curve given by $y=f(x)$ on the interval $[a,b]$. Partition $[a,b]$ by $n$ equal subintervals
$$a=x_0<x_1<\cdots<x_n=b,$$
where $\Delta x_k:=\ell([x_{k-1},x_k])=\frac{b-a}{n}$ and $x_k=x_0+k\frac{b-a}{n}$, $k=1,2,\cdots,n$. On each subinterval $[x_{k-1},x_k]$ we consider the rectangle with base $\Delta x_k=\frac{b-a}{n}$ and height $f(x_{k-1})$ (i.e. the left-end point of $[x_{k-1},x_k]$). The area $A$ of the region is then approximated by adding areas of these rectangles:
\begin{align*}
A&\approx f(x_0)\Delta x_1+f(x_1)\Delta x_2+\cdots+f(x_{n-1})\Delta x_n\\
&=\sum_{k=0}^{n-1}f(x_k)\Delta x\\
&=\sum_{k=0}^{n-1}f\left(x_0+k\frac{(b-a)}{n}\right)\frac{b-a}{n}.
\end{align*}
But we are not just satisfied with an approximation. Can we find the exact area $A$? The following figures would give us a clue. The figures show the area under the curve $y=x^2$ on the unit interval $[0,1]$ being approximated by the left-end point method with $n=4$, $n=10$, $n=20$, $n=50$, and $n=100$, respectively.

Approximation by the Left-end point method with n=4

Approximation by the Left-end point method with n=10

Approximation by the Left-end point method with n=20

Approximation by the Left-end point method with n=50

Approximation by the Left-end point method with n=100

It is clear from the above figures that the more rectangles we use the better approximation we get (or equivalently the smaller the error becomes). So if we imagine that we somehow can increase the number of rectangles to infinity, the error will be gone and we will obtain the exact area $A$. How do we then achieve this? Simple, by taking the limit
\begin{equation}\label{eq:left-endpt}
A=\lim_{n\to\infty}\sum_{k=0}^{n-1}f\left(x_0+k\frac{(b-a)}{n}\right)\frac{b-a}{n}.
\end{equation}
Before we discuss an example, let me list three useful sums.
\begin{align}
\label{eq:sum1}
1+2+3+\cdots+n&=\sum_{k=1}^nk=\frac{n(n+1)}{2},\\
\label{eq:sum2}
1^2+2^2+3^3+\cdots+n^2&=\sum_{k=1}^nk^2=\frac{n(n+1)(2n+1)}{6},\\
\label{eq:sum3}
1^3+2^3+3^3+\cdots+n^3&=\sum_{k=1}^nk^3=\left[\frac{n(n+1)}{2}\right]^2.
\end{align}

Example. Let $f(x)=x^2$ and $a=1$, $b=2$. Find the area under the curve $y=f(x)$.

Solution.
\begin{align*}
A&=\lim_{n\to\infty}\sum_{k=0}^{n-1}f\left(1+\frac{k}{n}\right)\frac{1}{n}\\
&=\lim_{n\to\infty}\sum_{k=0}^{n-1}\left(1+\frac{k}{n}\right)^2\frac{1}{n}\\
&=\lim_{n\to\infty}\left\{\frac{1}{n}\sum_{k=0}^{n-1} 1+\frac{2}{n^2}\sum_{k=0}^{n-1}k+\frac{1}{n^3}\sum_{k=0}^{n-1}k^2\right\}\\
&=\lim_{n\to\infty}\left\{\frac{n}{n}+\frac{2}{n^2}\frac{(n-1)n}{2}+\frac{1}{n^3}\frac{(n-1)n(2n-1)}{6}\right\}\\
&=\frac{7}{3}.
\end{align*}

In a similar manner, we can also calculate the area $A$ under curve $y=f(x)$ on the closed interval $[a,b]$ by the midpoint method
\begin{equation}
\label{eq:midpt}
\begin{aligned}
A&=\lim_{n\to\infty}\sum_{k=1}^{n}f\left(\frac{x_{k-1}+x_k}{2}\right)\frac{b-a}{n}\\
&=\lim_{n\to\infty}\sum_{k=1}^{n}f\left(x_0+\frac{(2k-1)}{2}\frac{(b-a)}{n}\right)\frac{b-a}{n},
\end{aligned}
\end{equation}
and by the right-end point method
\begin{equation}\label{eq:right-endpt}
A=\lim_{n\to\infty}\sum_{k=1}^{n}f\left(x_0+k\frac{(b-a)}{n}\right)\frac{b-a}{n}.
\end{equation}

For calculating the exact area under a curve, you can use any of the left-end point, midpoint, and right-end point methods. But what is you are only interested in approximating the area under a curve? Assuming that you are using the same number of rectangles to approximate the area, is there a difference between the methods. If fact, there is. In the above example, we found the exact area $\frac{7}{3}$ of the region under $y=x^2$ on the interval $[1,2].$ The approximation by the left-end point method with $n=100$ is 2.31835. The approximation by the midpoint method with $n=100$ is 2.333325. The approximation by the right-end point method with $n=100$ is 2.34835. Let us now compare the errors from the left-end point, midpoint, and right-end point methods, respectively.
\begin{align*}
E_{\mathrm{left}}&=\left|\frac{7}{3}-2.31835\right|\approx 0.014983333,\\
E_{\mathrm{mid}}&=\left|\frac{7}{3}-2.333325\right|\approx 0.0000083333333,\\
E_{\mathrm{right}}&=\left|\frac{7}{3}-2.34835\right|\approx 0.015016667.
\end{align*}
Clearly, the midpoint method gives rise to the best approximation among the three approximation methods when the same number of rectangles are used. This is indeed true in general. If the function is increasing on the closed interval, the left-end point method underestimates while the right-end point method overestimates. If the functions is decreasing on the closed interval, the left-end point method overestimates while the right-end point method underestimates. The midpoint method averages these two estimates.

Antiderivatives

A function $F(x)$ is called an antiderivative of a function $f(x)$ if it is a solution of the differential equation $\frac{d}{dx}F(x)=f(x)$. For instance, $F(x)=\frac{1}{2}x^2$ is an antiderivative of $f(x)=x$. There can be more than one (actually infinitely many) antiderivative of a function $f(x)$ but they all differ by a constant. In other words, if $F(x)$ and $G(x)$ are antiderivatives of $f(x)$, then $G(x)=F(x)+C$, where $C$ is a constant. In fact, one can easily check that for any constant $C$, $\frac{1}{2}x^2+C$ is an antiderivative of $x$ since the derivative of any constant is zero. On the other hand, if $F(x)$ and $G(x)$ are both antiderivatives of $f(x)$, they differ only by a constant. This can be easily seen: Since $F(x)$ and $G(x)$ are both antiderivatives of $f(x)$,
$$\frac{d}{dx}F(x)=\frac{d}{dx}G(x)=f(x),$$
ans so
$$\frac{d}{dx}(F(x)-G(x))=0.$$
Hence, $F(x)=G(x)+C$, where $C$ is a constant.

If $F(x)$ is an antiderivative of a function $f(x)$,
$$F(x)+C,$$
where $C$ is an arbitrary constant is called the indefinite integral of $f(x)$ and is denoted by $\int f(x)dx$, i.e.
$$\int f(x)dx=F(x)+C.$$
Example. Find the indefinite integral of each of the following functions.

1. $f(x)=\sin x$.

Solution. Let $F(x)$ be an antiderivative of $f(x)$. Then $F'(x)=f(x)$. If we let $y=F(x)$, then
$$\frac{dy}{dx}=\sin x.$$
We know one such function $y$ which satisfies the equaion $\frac{dy}{dx}=\sin x$. It is $y=-\cos x$. So, the indefinite integral of $\sin x$ is
$$\int \sin xdx=-\cos x+C,$$
where $C$ is an arbitrary constant.

2. $f(x)=\frac{1}{x}$.

Solution. An antidetivative of $\frac{1}{x}$ is $\ln x$. Note that $f(x)=\frac{1}{x}$ is defined for $x<0$ while $\ln x$ is not, so in fact the antiderivative should be written as $\ln|x|$ instead of $\ln x$. Hence, the indefinte integral is
$$\int\frac{1}{x}dx=\ln |x|+C,$$
where $C$ is an arbitrary constant.

3. $f(x)=x^n$, where $n\ne -1$.

Solution. $F(x)=\frac{1}{n+1}x^{n+1}$ is an antiderivative of $f(x)=x^n$. Hence, the indefinite integral of $x^n$ is
$$\int x^n dx=\frac{1}{n+1}x^{n+1}+C,$$
where $C$ is an arbitrary constant.

The most general solution of the differential equation
$$\frac{dy}{dx}=f(x)$$
is the indefinite integral
$$y=\int f(x)dx=F(x)+C,$$
where $C$ is an arbitrary constant. With an additional condition, the arbitrary constant $C$ may be determined. Such a condition is called an initial condition.

Example. Solve the differential equation $\frac{dy}{dx}=\sin x$ with the condition $y(0)=1$.

Solution. In the previous example, we find that the general solution is given by
$$y(x)=-\cos x+C,$$
where $C$ is an arbitrary constant. The condition $y(0)=1$ implies that $-\cos 0+C=1$ i.e. $-1+C=1$. So, we obtain $C=2$. Therefore, the solution we seek is
$$y(x)=-\cos x+2.$$

Indefinite integrals satisfy the following properties:
\begin{align*}
\int (f(x)+g(x))dx&=\int f(x)dx+\int g(x)dx,\\
\int c f(x)dx&=c\int f(x)dx,
\end{align*}
where $c$ is a constant. For this we say indefinite integrals are linear. If you have studied linear algebra, you know that a linear map is a map from a vector space to another vector space which preserves vector space operations (vector addition and scalar multiplication). It turns out that functions may be treated as vectors and the indefinite integral $\int f(x)dx$ may be considered as a linear map. This sort of abstract treatment is important in advanced mathematics, physics and engineering. The linearity of indefinite integrals can be used to find the indefinite integral of a complicated function. For example,

Example. Find the indefinite integral of
$$f(x)=1-x^3+12x^5.$$

Solution.
\begin{align*}
\int (1-x^3+12x^5)dx&=\int dx-\int x^3dx+12\int x^5dx\\
&=x-\frac{x^4}{4}+\frac{12}{6}x^6+C\\
&=x-\frac{x^4}{4}+2x^6+C,
\end{align*}
where $C$ is an arbitrary constant.

Some Important Formulas

\begin{align}
\int x^ndx&=\frac{x^n}{n+1}+C\ (n\ne -1\ \mbox{is a rational number})\\
\int \sin kxdx&=-\frac{\cos kx}{k}+C\ (k\ne 0\ \mbox{is a constant})\\
\int \cos kx dx&=\frac{\sin kx}{k}+C\ (k\ne 0\ \mbox{is a constant})\\
\int \sec^2 xdx&=\tan x+C\\
\int \csc^2 xdx&=-\cot x+C\\
\int \sec x\tan xdx&=\sec x+C\\
\int \csc x\cot xdx&=-\csc x+C
\end{align}

Example. [Initial Value Problem] A balloon is ascending at the constant speed of 12 ft/sec is at a height 80 ft above the ground when a package is dropped. How long does it take for the package to reach the ground?

Solution. In order to answer the question we need to have $h(t)$, the motion i.e. the position (height) function of the falling package. We don’t have it yet. If we know the velocity $v(t)$ of the falling package, we would be abel to find $h(t)$ by solving the differential equation
\begin{equation}
\label{eq:height}
\frac{dh(t)}{dt}=v(t).
\end{equation}
However, we don’t have it either. Instead, what is known is the acceleration $a(t)$ of the freely falling package which is constant
$$a(t)=-9.8\mathrm{m/sec^2}=-32\mathrm{ft/sec^2}.$$
The velocity $v(t)$ can be found by solving the differential equation
\begin{equation}
\label{eq:velocity}
\frac{dv(t)}{dt}=a(t)
\end{equation}
with $a(t)=-32\mathrm{ft/sec^2}$. The solution of \eqref{eq:velocity} is the indefinite integral
\begin{align*}
v(t)&=\int -32dt\\
&=-32t+C_1,
\end{align*}
where $C_1$ is a constant. At the time the package was dropped from the balloon, the balloon was ascending at the rate $12\mathrm{ft/sec}$. So the package’s initial velocity is $v(0)=12\mathrm{ft/sec}$. Using this we find $C_1=12$ and so
$$v(t)=-32t+12.$$
Now, we are ready to find $h(t)$. The solution of the differential equation \eqref{eq:height} with $v(t)=-32t+12$ is the indefinite integral
\begin{align*}
h(t)&=\int (-32t+12)dt\\
&=-16t^2+12t+C_2,
\end{align*}
where $C_2$ is a constant. At the time the package was dropped from the balloon the height was 80ft, i.e. $h(0)=80\mathrm{ft}$. Using this we find $C_2=80$. Hence, we have
$$h(t)=-16t^2+12t+80.$$
Setting $h(t)=0$, we obtain the quadratic equation
$$-16t^2+12t+80=0$$
whose solutions are $t_1\approx -1.89$ or $t_2\approx 2.64$. Therefore, it takes 2.64 seconds for the package to reach the ground.

The Product and Quotient Rules

Product Rule: Let $u=f(x)$ and $v=g(x)$ be differentiable functions. Then $$(fg)'(x)=f(x)g'(x)+f'(x)g(x)$$ or $$\frac{d(uv)}{dx}=u\frac{dv}{dx}+\frac{du}{dx}v.$$

Proof. \begin{eqnarray*}(fg)'(x)&=&\lim_{\Delta x\to 0}\frac{fg(x+\Delta x)-fg(x)}{\Delta x}\\&=&\lim_{\Delta x\to 0}\frac{f(x+\Delta x)g(x+\Delta x)-f(x)g(x)}{\Delta x}\\&=&\lim_{\Delta x\to 0}\frac{f(x+\Delta x)g(x+\Delta x)-f(x)g(x+\Delta x)+f(x)g(x+\Delta x)-f(x)g(x)}{\Delta x}\\&=&\lim_{\Delta x\to 0}\frac{f(x+\Delta x)-f(x)}{\Delta x}g(x+\Delta x)+f(x)\lim_{\Delta x\to 0}\frac{g(x+\Delta x)-g(x)}{\Delta x}\\&=&f'(x)g(x)+f(x)g'(x).\end{eqnarray*} Note that $\displaystyle\lim_{\Delta x\to 0}g(x+\Delta x)=g(x)$ because $g(x)$ is continuous.

Example. Using the product rule, differentiate $(x^2+2x-1)(x^3-4x^2)$.

Solution. \begin{eqnarray*}\frac{d}{dx}[(x^2+2x-1)(x^3-4x^2)]&=&\frac{d(x^2+2x-1)}{dx}(x^3-4x^2)+(x^2+2x-1)\\&&\frac{d(x^3-4x^2)}{dx}\\&=&(2x+2)(x^3-4x^2)+(x^2+2x-1)(3x^2-8x)\\&=&(2x^4-6x^3-8x^2)+(3x^4-2x^3-19x^2+8x)\\&=&5x^4-8x^3-27x^2+8x.\end{eqnarray*} Multiplyng first, \begin{eqnarray*}(x^2+2x-1)(x^3-4x^2)&=&x^5-4x^4+2x^4-8x^3-x^3+4x^2\\&=&x^5-2x^4-9x^3+4x^2.\end{eqnarray*} The derivative of this is $5x^4-8x^3-27x^2+8x$ by the power rule and differentiation formulas we discussed here.

Reciprocal Rule (Baby Quotient Rule): Let $v=g(x)$ be a differentiable function with $g(x)\ne 0$. Then $$\left(\frac{1}{g}\right)'(x)=\frac{-g'(x)}{[g(x)]^2}$$ or $$\frac{d}{dx}\left(\frac{1}{v}\right)=-\frac{1}{v^2}\frac{dv}{dx}.$$

Proof. \begin{eqnarray*}\left(\frac{1}{g}\right)'(x)&=&\lim_{\Delta x\to 0}\frac{\frac{1}{g(x+\Delta x)}-\frac{1}{g(x)}}{\Delta x}\\&=&\lim_{\Delta x\to 0}\frac{\frac{g(x)-g(x+\Delta x)}{g(x+\Delta x)g(x)}}{\Delta x}\\&=&-\lim_{\Delta x\to 0}\frac{\frac{g(x+\Delta x)-g(x)}{\Delta x}}{g(x+\Delta x)g(x)}\\&=&-\frac{g'(x)}{[g(x)]^2}.\end{eqnarray*}

Example. Differentiate $\frac{1}{\sqrt{x}+2}$.

Solution. \begin{eqnarray*}\frac{d}{dx}\frac{1}{\sqrt{x}+2}&=&-\frac{d(\sqrt{x}+2)/dx}{(\sqrt{x}+2)^2}\\&=&-\frac{1}{2\sqrt{x}(\sqrt{x}+2)^2}.\end{eqnarray*}

Using the product rule and the reciprocal rule, we can prove

Quotient Rule: Let $u=f(x)$ and $v=g(x)$ be differentiable functions and assume that $g(x)\ne 0$. Then $$\left(\frac{f}{g}\right)'(x)=\frac{f'(x)g(x)-f(x)g'(x)}{[g(x)]^2}$$ or $$\frac{d}{dx}\left(\frac{u}{v}\right)=\frac{\frac{du}{dx}v-u\frac{dv}{dx}}{v^2}.$$

Proof. \begin{eqnarray*}\left(\frac{f}{g}\right)'(x)&=&\left(f\frac{1}{g}\right)'(x)\\&=&f'(x)\frac{1}{g(x)}+f(x)\left(\frac{1}{g}\right)'(x)\ (\mbox{the product rule is applied})\\&=&\frac{f'(x)}{g(x)}-f(x)\frac{g'(x)}{[g(x)]^2}\ (\mbox{the reciprocal rule is applied})\\&=&\frac{f'(x)g(x)-f(x)g'(x)}{[g(x)]^2}.\end{eqnarray*}

Example. Find the derivative of $h(x)=\frac{2x+1}{x^2-2}$.

Solution. \begin{eqnarray*}h'(x)&=&\frac{(2x+1)'(x^2-2)-(2x+1)(x^2-2)’}{(x^2-2)^2}\\&=&\frac{2(x^2-2)-(2x+1)2x}{(x^2-2)^2}\\&=&\frac{2x^2-4-4x^2-2x}{(x^2-2)^2}\\&=&-\frac{2x^2+2x+4}{(x^2-2)^2}.\end{eqnarray*}

Example. Differentiate $\frac{x^2+2}{x^8}$.

Solution. Since the function is a rational function, you may hastily try to use the quotient rule to differentiate it. There is nothing wrong with that except there may be a simpler way to differentiate the function. In fact the function can be written as $$\frac{x^2+2}{x^8}=\frac{x^2}{x^8}+\frac{2}{x^8}=\frac{1}{x^6}+2x^{-8}=x^{-6}+2x^{-8}.$$ Thus the derivative is $$-6x^{-7}-16x^{-9}=-\frac{6}{x^7}-\frac{16}{x^9}.$$