# Calculus – Study Guide

Derivatives

The derivative of a function is the instantaneous rate of change, or the slope of that function at a particular point. For example, the green line in the picture is tangent to the curve f(x) at the point x = 0.75. The slope of the green line in this picture is the derivative of f(x) at the point x = 0.75.

Notations for the derivative include .

We can define the derivative in terms of limits. Suppose we take two points on either side of a point x, and draw the line between them, called a secant line. The slope of the secant line is approximately the slope of the function at point x.

Now move those points closer to x, and draw another secant line. The slope of this line is much closer to the slope of the function at x. If we take the limit of the slope of the secant line as these points move closer and closer together, we get the definition of the derivative at x.

The Limit Definition

The limit definition is the most basic formula for calculating the derivative of a function. In this formula, f(x) is the function to be differentiated, and represents a small change in x, which goes to zero.

Example:

Find the derivative of . Then calculate the slope of at .

⇒ Change to .

⇒ FOIL the .

⇒ The terms cancel.

⇒ The cancel.

goes to zero.

To find the slope of f(x) at the point x = 4, we plug in 4 to the derivative function.

The slope of the line that is tangent to f(x) when x = 4 is 8.

Sometimes, it is not possible to find the derivative of a function at a certain point because that function is not continuous.

Example: Find the derivative of |x| at x = 0.

We can do this one using the limit definition (try it for practice!), or we can look at it graphically:

The absolute value function has a derivative of ±1, depending on the sign of x.

But what is the derivative at x = 0?
When you studied limits, you probably learned that when the right-hand and left-hand limits at a point don’t agree, the limit at that point does not exist.

The derivative of |x| does not exist at x = 0 because the function is not continuous there.

Rules for Finding Derivatives

In many case, the limit definition of the derivative that you will use most often, so you should make yourself familiar with it.

For any function , the derivative can be found as:

To apply this rule, multiply the coefficient, a, by the current exponent, n, and then decrease the exponent on x by 1.

Examples:

⇒ Multiply by 2, then decrease the exponent to 1.
⇒ Multiply by 5, then decrease the exponent to 4.
⇒ Multiply by -2, then decrease the exponent to -3.

The Constant Rule

The derivative of any constant is zero.

This can be observed graphically, because a line representing a constant function is horizontal, with zero slope. This can also be shown in terms of the power rule, because a constant a can be written as .

Example:

Derivative of a Sum

The derivative of a sum of terms is equal to the sum of the derivatives of the terms.

.

This makes it easy to differentiate polynomials using the power rule.

Example:

Derivatives of Trigonometric Functions

The derivatives of common trigonometric functions should be memorized.

The Constant Multiple Rule

If a function is multiplied by a constant coefficient, you may take the derivative of the function alone, and then multiply by the constant.

Example:

Differentiation Rules of Logarithmic and Exponential Functions

These commonly used derivatives should be memorized. Let a be a constant.

The Product Rule

For two functions multiplied by one another, the product rule can be used:

To apply this rule, differentiate each function separately. Multiply the first function by the derivative of the second, and vice-versa. Then add the two two terms together.

Example: Find the derivative of .

.

The Quotient Rule

For two terms divided by one another, the quotient rule is a convenient shortcut.

Again, differentiate each function separately. Then multiply the numerator function by the derivative of the denominator and vice versa. Subtract the two terms, as shown. Divide by the square of the denominator.

Example: Find the derivative of

The Chain Rule

For a composition of two function, f(x) and g(x), use the chain rule.

To use this formula, first find the derivative of the inside and outside functions separately. Apply the derivative of the outside function to the inside function. Then multiply by the derivative of the inside function.

Example: Find the derivative of

Inside function:

Outside function:

Differentiation Rules of Inverse Trigonometric Functions

It can be useful to memorize these less common derivatives, especially in preparation for finding integrals in the next semester of calculus. You should learn to recognize them.

Basics of Differentiation Practice Problems:

1. Find, using the limit definition, the derivative of x + 2.
2. Find the derivative of:
• a.
• b.
• c.
• d.
• e.
3. Use the product rule to find the derivative of:
• a.
• b.
4. Use the quotient rule to find the derivative of:
• a.
• b.
5. Use the chain rule to find the derivative of:
• a.
• b.

Practice Problem Solutions:

Finding the Equation of the Tangent Line

Now that we know how to find the slope of a function, we can find the equation of the tangent line. Recall that to write the equation of a line we need the slope and a point on the line. We can get the slope from taking the derivative of the function, and we can get a point by plugging it into the function.

Example: Find the equation of the tangent line to the function at the point .

First, find the derivative of the function.

To find the slope at 2, plug into the derivative.

Plug into the function to get the y-value of the point.

Now we have slope at the point (2, 8).
We can use this information to write the equation of the line in point-slope form.

We can now plot and the tangent line on the same set of axes.

Implicit Differentiation

Sometimes it is necessary to find the derivative of a function which is not in the form .
For example:

We cannot just take the derivative of this function because it is not solved for y. Therefore, we will use implicit differentiation. Here are the rules for implicit differentiation:

1. Take the derivative of both sides. Use all of the same differentiation rules as when taking the derivative of an expression involving only x.
2. When you encounter y, take the derivative using all the same rules, but also multiply by . (The reason for this lies in the chain rule. y is a function of x.)
3. Once you have taken all of the derivatives, solve for .

Let’s find the derivative of the function above.

⇒ On the left, we have used the product rule.
⇒ Solve for

Practice: Try using implicit differentiation on the following functions:

Solutions:

1. ⇒ Power Rule and Implicit Differentiation.
⇒ Solve for

2. ⇒ Implicit Differentiation
⇒ Distribute .
⇒ Rearrange the terms.
⇒ Factor out .
⇒ Solve for

Higher Order Derivatives

So far, we have only taken the first derivative. There are also second, third, fourth, and even higher order derivatives. We already know that the first derivative gives us the slope of the function. The second derivative describes the rate of change of the slope. We call this concavity.
Notations for the second derivative includes .

To find higher order derivatives, you take derivatives successively. For example, to find the second derivative you would first take the first derivative of the function, and then take the derivative again. Let’s do an example.

⇒ Take first derivative

⇒ Power Rule

⇒ Take second derivative

⇒ Power and Trig Rule

Practice: Find the second and third derivatives of the following functions:

Solutions:

1. ⇒ take first derivative
⇒ Chain Rule
⇒ Rewrite
⇒ Take second derivative
⇒ Chain Rule
⇒ Simplify
⇒ Take third derivative
⇒ Chain Rule
2. ⇒ Take first derivative
⇒ Logarithmic and Power Rule
⇒ Take second derivative
⇒ Power Rule
⇒ Take third derivative
⇒ Power Rule
3. ⇒ Take first derivative
⇒ Exponential Rule
⇒ Take second derivative
⇒ Exponential Rule
⇒ Take third derivative
⇒ Exponential Rule

Critical Points and the Derivative Test

Knowing the first and second derivatives can reveal valuable information about a function. Most importantly, we can determine where the function is increasing, decreasing, concave up, and concave down. Critical points are points where the function changes from increase to decreasing (this is called a maximum), decreasing to increasing (this is a minimum), or changes in concavity (this is called a point of inflection).

First Derivative Test

To find maximums and minimums, take the first derivative and set it equal to zero. Solve for x. These are your first critical points.

Example:

The first two critical points are and . But we don’t yet know whether these are minimum or maximums. We need to examine the first derivative to figure that out. To do this, imagine or sketch a number line with the critical points labeled as shown in the figure below.

Next, choose a point for each of the three ranges. We want to see if the derivative is positive or negative in each range. This will tell us if the function is increasing (positive slope) or decreasing (negative slope).

From the above picture, you can see that -1, 0, and 1 will be good choices. Now, evaluate for each of the values x = -1, x = 0, and x = 1.

Positive (+)

Negative (-)

Positive (+)

Evaluating we see that the slope of the graph is positive, then negative, and then positive. This tells us that the first critical point is a maximum, and the second critical point is a minimum. Here is a picture of this function:

Second Derivative Test

We can do the same things with the second derivative that we did with the first derivative. This time the critical points will be points of inflection, and a positive second derivative will indicate concave up and a negative second derivative will indicate concave down. Let’s continue the above problem by taking the second derivative and setting it equal to zero.

Our critical point is x = 0. Let’s set up a number line so we can choose a point in each important range.

We will use -1 for range 1 and 1 for range 2. Evaluate the second derivative at each of these points.

Negative (-)

Positive (+)

This tells us that the function is concave down from to 0, and concave up from 0 to . Looking at the graph of the function, we can see this is correct.

Example:
find the intervals of increasing, decreasing, concave up, and concave down for

On the interval .

First let’s find the critical points for the first derivative:

Now, set up a number line.

We will evaluate the first derivative at .

Negative (-)

Positive (+)

Negative (-)

Positive (+)

-π is a minimum, 0 is a maximum, and π is a minimum
This function is increasing on the interval (-π, 0) ∪ (π. 2π) and decreasing on the interval (-2π, -π) ∪ (0, π).

Check by graphing:

Now, lets do the second derivative test. To do this, evaluate the second derivative and set it equal to zero to find the critical points.

The critical points are .

We will evaluate the second derivative at -π, 0, and π.

Positive (+)

Negative (-)

Positive (+)

This function is concave up on the interval , concave down on the interval and concave up on the interval .

Check by graphing:

Limits

The limit of a function at a value c is the value that approaches as x gets closer to c.

Notation

⇒ “The limit as x approaches c of f(x)”

Formal Definition

if an only if for every ε > 0, there exists δ such that 0 < |x c| < δ implies |f(x) – L| < ε.

Direct Substitution

Some limits can be evaluated by simply substituting c for x in the function f(x).

Example:

Direct substitution works anytime f(x) is continuous and f(c) can be calculated. This applies to constant function, polynomial functions, and rational functions whenever c is not infinity or zero.

However, limits are more often used when f(x) is discontinuous or f(c) is undefined.

Approximating Limits

A limit can often be estimated by making a chart of value of f(x) for values of x which approach c. If the values of f(x) approach a number, it is a good guess for the limit.

Example:

We can also obtain this result graphically.

Although the function is discontinuous at = 1, we can see that f(x) approaches 3 when x is close to 1.

One-sided Limits

For discontinuous functions (such as some piecewise functions), the limits at a point may not exist. Instead, you can use a right-hand or left-hand limit.

Example:

Here, the limit at 1 takes on two different values, depending on whether you approach x = 1 from the left (smaller values) or from the right (larger values).

Right limit:    Left limit:

When , we say that does not exist.

If , then exists.

Limits that approach  .

The limit of a rational function where the numerator approaches some positive value and the denominator approaches zero is infinity. If the numerator approaches a negative value, and the denominator approaches zero, the limit is negative infinity.

Examples:

Often you will be asekd to take the limit of a rational function f(x) = p(x)/q(x) where p(x) and q(x) both approach zero of infinity. Here are some tips for finding these limits:

• Try to simplify the expression.Example:
• Take the derivative of the top and bottom, and use L’Hopital’s rule:If p(x), q(x) = 0  or . then Example:

Limits at Infinity

Often you will be asked to take the limit of a function as x approaches infinity.

When taking the limit at infinity of a rational function f(x) = p(x)/q(x) where p(x) and q(x) are polynomials:

• If the degree of p is greater than the degree of q, then the limit is positive or negative infinity depending on the signs of the leading coefficients;
• If the degree of p and q are equal, the limit is the leading coefficient of p divided by the leading coefficient of q;
• If the degree if p is less than the degree of q, the limit is 0.

Examples:

Properties of Limits

Let b and c be real numbers, and let n be a positive integer.

1. Scalar multiple:
2. Sum or difference:
3. Product:
4. Power:

Practice Problems

1. Find each limit using direct substitution.
2. Find a right-hand and left-hand limit as x approaches 2 for the function
• if x ≤ 2 →
• if x > 2 →
Then determine whether the limit exists.
3. Simplify each expression to find the limit.
4. Find each limit using L’Hopital’s rule.
5. Find each limit at infinity using the lead terms of the polynomials.

Solutions to Practice Problems

Riemann Sums

Introduction to Riemann Sums:
Riemann sums is a method for approximating the total area underneath a curve on a graph, also known as an integral.

This is a graph of the line

Suppose we want to find the area under the curve for the interval x = 2 to x = 8 (starting at 2, ending at 8 along the x-axis)

We can split the graph into a finite number of rectangles, and use these to approximate the area.

As the rectangles become smaller we get a better estimation of the area under the curve. (The true area in this example is 168.)

How to Calculate Riemann Sums:

Step 1: Find the width of the rectangles:

a = the number you start at
b = the number you end with
n = number of rectangles you want to approximate with.

Step 2: Find the heights of the rectangles:

Each rectangle spans a range of x-values. Which do we plug in to calculate the height?

Left-hand Estimation: Use the x-value at the left end of each rectangle to calculate height.
Right-hand Estimation: Use the x-value at the right of each rectangle to calculate height.
Midpoint Estimation: Use the x-value in the middle of each rectangle to calculate height.

Calculate f(x) at each left, right or midpoint value to find the heights.

Note: For increasing functions, a left-hand sum will give an under-estimate, and a right-hand sum will give an over-estimate. For decreasing functions, a left-hand sum will give an over-estimate, and a right-hand sum will give an under-estimate.

Step 3: Find the areas of all the rectangles by multiplying width times height. Add these together to estimate the area under the curve.

Example Problem:

Use four rectangles to find an upper and lower approximation of the area under between x = -2 and x = 4.

First find the width of each rectangle. To do this, divide the total width of the interval by the number of rectangles you want.

Next we need the heights of the rectangles. To find the right-hand sum we need to use the heights at the right endpoints of each rectangle.

The right endpoints of the four rectangles are
The function is .

Height of Rectangle 1 =
Height of Rectangle 2 =
Height of Rectangle 3 =
Height of Rectangle 4 =

Add up the areas of all the rectangles.

Note: Since all of the rectangles are of equal width, you could sum the heights first, and then multiply once by the width.

To find the left-hand sum you will need to use the heights at the left endpoints of each rectangle.

The left endpoints of the four rectangles are
The function is

Height of Rectangle 1 =
Height of Rectangle 2 =
Height of Rectangle 3 =
Height of Rectangle 4 =

Sum the area of all the rectangles

In this example, the right-hand sum is a lower approximation. The left-hand sum is an upper approximation. We can conclude that the true area is between 84.75 and 102.75.

Finding the Exact Area through Integrals:

In this integral, a and b are the upper and lower boundaries. The function f(x) is the integrand. The dx at the end tells us that we are taking the integral with respect to the variable x.

When estimating the area under a curve using Riemann sums, we saw that using more rectangles led to more accurate approximations. If we let the size of the rectangles get smaller and smaller, and the number of rectangles get larger and larger, the sum of the rectangles approach the true area under the curve. Taking the limit of a Riemann approximation as n (the number of rectangles) goes to infinity gives the exact area under the curve, also called a definite integral.

This integral is shown as the limit of a right-hand sum. A left-hand sum or midpoint sum would have the same limit as n approaches infinity, and would give the same integral.

Definite and Indefinite Integrals

Integration is the opposite of differentiation. For this reason, the terms “integral” and “anti-derivative” are sometimes interchanged. Integrals, like derivatives, can be calculated without taking a limit.

An integral of the form , with upper and lower bounds, is called a definite integral. It represents the area under the curve from a to b, and it is equal to a number.

An integral of the form, without upper and lower bounds, is called an indefinite integral. It represents all functions that have the derivative , and is euqal to a family of curves.

Since the derivative of a constant is zero, taking the anti-derivative of produces a family of curves, , where can by any constant.

Example: What is ?

We know the derivative of is . But the derivatives of are also all equal to . In fact, the derivatives of plus any number is .

It is imporant to remember to add c when taking an indefinite integral.

The Fundamental Theorem of Calculus

Definite integrals can be calculated from indefinite integrals using The Fundamental Theorem of Calculus.

Where . (Notice that the doesn’t matter here, because when we subtract , the ‘s will cancel out.)

Example: Find the area under the curve from x = 1 to x = 2.

Methods for Integration

When taking the integral of a function, you must apply the rules of differentiation in reverse. This can be tricky at first.

Example: Apply the reverse power rule to find the following indefinite integral:

First, think of a derivative that has an in it. I know that .
We need to turn that 4 into a 2, so introduce a factor of .
Deduce that .
Write the anti-derivative, and add c.

U-substitution:

You should recall the chain rule from differentiation. When the chain rule is applied to a function , the derivative has the form .

When integrating a function of the form , we do the chain rule in reverse.

First, make the substitution . Find . Then . Make sure your integral has the form . Then take the anti-derivative.

Example:

Solution:

Integration by Parts:

When integrating the product of two function, , you may use integration by parts. This is reverse version of the product rule. Let , and .

Often, it does matter which function you choose as and which is . The goal of integration by parts is to reduce the integral to another integral, , which is simpler to evaluate. We don’t want to make things more complicated.

Tips for choosing and :

• The function which is easiest to integrate, or which simplifies the most when integrated should be chosen as .
• The function chosen as should simplify when differentiated, and should not be too difficult to differentiate.
• If the integration problem becomes more complicated when you apply integration by parts, try picking and another way.

Example:

Solution:

is hard to integrate, but easy to differentiate, so let .

Trigonometric Substitution:

Recall the Pythagorean Theorem and the identities of right-angle trigonometry.

Trigonometric substitution allows us to simplify radicals in the integrand of the forms to trigonometric functions.

Using the reference triangles above, radicals in the integrand my be replaced as follows:

(positive if u > a and negative if u < -aI)

Example:

Reference triangle:

Solution:

Integration Shortcuts:

Just like rules of differentiation, there are rules you can follow to quickly integrate most functions. here is a list of the rules you should familiarize yourself with. Let C, k, and n be constants.

Hint: Check your understanding by taking the derivative of the right side. You should get the integrand on the left.