Derivatives

What is a Derivative?

Your teacher will most likely call a derivative a function that returns the slope of a function at any given point, or a slope-finding machine if you will. This idea behind a derivative makes sense once you combine two concepts you have learned: slope and limits.

The slope formula is `color(black)((rise)/(run)=(y_2-y_1)/(x_2-x_1)=(Delta y)/(Delta x)` where `color(black)(Delta=d)` just means change in.

Formal Definition of a Derivative

The formal definition of a derivative just combines that formula with the slope formula to become `color(black)(f'(x)=lim_(Delta xto0)(f(x+Deltax)-f(x))/(Delta x))` where f'(x) means the derivative of the function f(x). This formula may seem confusing at first, but you just have to look closer to see the slope formula inside the formal definition of a derivative.

If you look at the numerator of the fraction, you see `color(black)(f(x+Delta x)-f(x))`. This is essentially the same thing as doing the change in y. If you plug in an x value in f(x), you will return a y-value. `color(black)(f(x+Deltax))` might seem like it is equal to f(x) because it is `color(black)(lim_(Delta xto0))`, but this is not true. What you are doing is you are finding the change in y-value when there is an infinitesimal change in x. It's like finding the slope between the points x=2 and x=2.00000000000000000000000000001, but even smaller of a difference between the x values.

Since the derivative of a function is a function that gives the slope of the original function at a single point, then the change in x has to extremely small, or essentially zero, which is why `color(black)(f'(x)=lim_(Delta xto0)(f(x+Deltax)-f(x))/(Delta x))` is the formal definition of a derivative.

Alternative Definition of a Derivative

You may also see the alternative form of a derivative, it is just the same things as the definition of a derivative just written in a different way. It is `color(black)(f'(a)=lim_(Delta xtoa)(f(x)-f(a))/(x-a))`

Derivative Formulas

Here are all the derivative formulas that you will need to know for your time in Calculus AB/BC. u and v in these cases are sort of like functions, they could be just x, x^2, etc.

`color(black)((d)/(dx)a=0)` where a is a constant like 8 or 4

`color(black)((d)/(dx)au=a(du)/(dx))`

`color(black)((d)/(dx)u^a=au^a-1(du)/(dx))` also known as power rule

`color(black)((d)/(dx)(u+v)=(du)/(dx) + (dv)/(dx))`

`color(black)((d)/(dx)(u-v)=(du)/(dx) - (dv)/(dx))`

`color(black)((d)/(dx)uv=v(du)/(dx)+u(dv)/(dx))` also known as product rule

`color(black)((d)/(dx)u/v=(v(du)/(dx)+u(dv)/(dx))/v^2)` also known as the quotient rule

`color(black)((d)/(dx)f(g(x))=f'(g(x)) xx g'(x)`

also known as chain rule

`color(black)((d)/(dx)ln(u)=1/u(du)/(dx))`

`color(black)((d)/(dx)e^u=e^u(du)/(dx))`

`color(black)((d)/(dx)a^u=ln(a)a^u(du)/(dx))`

`color(black)((d)/(dx)sin(u)=cos(u)(du)/(dx))`

`color(black)((d)/(dx)cos(u)=-sin(u)(du)/(dx))`

`color(black)((d)/(dx)tan(u)=sec^2(u)(du)/(dx))`

`color(black)((d)/(dx)arcsin(u)=1/sqrt(1-u^2)(du)/(dx))`

`color(black)((d)/(dx)arccos(u)=-(1/sqrt(1-u^2))(du)/(dx))`

`color(black)((d)/(dx)arctan(u)=1/(1+u^2)(du)/(dx))`

`color(black)((d)/(dx)csc(u)=-csc(u)cot(u)(du)/(dx))`

`color(black)((d)/(dx)sec(u)=sec(u)tan(u)(du)/(dx))`

`color(black)((d)/(dx)cot(u)=-csc^2(u)(du)/(dx))`

`color(black)((d)/(dx)arcsec(u)=1/(abs(x)sqrt(u^2-1))(du)/(dx))`

`color(black)((d)/(dx)arc csc(u)=-1/(abs(x)sqrt(u^2-1))(du)/(dx))`

`color(black)((d)/(dx)arc cot(u)=-1/(1+u^2)(du)/(dx))`

Here's some practice.

Determining Derivatives Practiceexpand_less

Question 1: `color(black)(d/(dx)(1/3x^3+2x+4))`

Question 2: `color(black)(d/(dx)((3x+4)(5x+2)))`

Question 3: `color(black)(d/(dx)(sin(x)cos(x)))`

Question 4: `color(black)(d/(dx)(cos(4x^3+3))`

Question 5: `color(black)(d/(dx)((4x^2+x)/(3x^2+1)))`

Question 6: `color(black)(d/(dx)(e^(x^2+1)))`

Question 7: `color(black)(d/(dx)5^(4x))`

Question 8: `color(black)(d/(dx)ln(sin(x)))`


Click on the up carrot to get the answer.

Answersclose

Answer 1: `color(black)(x^2+2)`

Answer 2: `color(black)(3(5x+2)+5(3x+4))`

Answer 3: `color(black)(cos^2(x)-sin^2(x))`

Answer 4: `color(black)(-12x^2sin(4x^3+3))`

Answer 5: `color(black)(((8x+1)(3x^2+1)-(4x^2+x)(6x))/(3x^2+1)^2)`

Answer 6: `color(black)(2xe^(x^2+1))`

Answer 7: `color(black)(4ln(5)5^(4x))`

Answer 8: `color(black)(cos(x)/sin(x)=cot(x))`

Graphs of Derivatives

A derivative is a slope finding function of another function at any given x-value

To find the slope at (x,y) on f(x), just plug in that x value into f'(x)

The graph of f'(x) is the graph of the slope of f(x), if f'(x) is positive at an x-value, then the graph of f(x) will be increasing at that x-value. If f'(x) is negative at that x-value, then the graph of f(x) will be decreasing at that x-value.

The graph of f''(x) is the graph of the slope of f'(x) but also the concavity of f(x). If f''(x) is positive at an x-value, then f(x) will be concave up. If f''(x) is negative at that x-value, then f(x) will be concave down. Concavity will be explained the second derivative section.

Matching graphs of derivatives are a common question on the AP exam, here is a graph between a function and a derivative that you can play around with on Desmos, just click on edit graph and you will be takento the graph page. In this graph, the red line is the function and the purple line is the derivative.

First Derivatives

First derivatives are the rate of change for the original function, for example, velocity is the first derivative of the position function.

Derivatives have important applications that will be tested heavily on your AP test.

Increasing and Decreasing Fuctions

Derivatives can tell you when the original function is increasing or decreasing. If you plug in an x-value and the derivative returns a positive y-value, then the original function is increasing. If you plug in an x-value and the derivative returns a negative y-value, then the original function is decreasing.

Relative Extrema: First Derivative Test

You can find a relative minimum or maximum of a function by going through certain steps.

1. Find the derivative of the function

2. Find what x-value makes the derivative undefined or zero, these will be your critical numbers (these x-values are critical numbers as long as these x-values, when plugged back into the original function, do not result in an undefined answer).

3. Make a number line with your critical numbers on the number line and plug in x-values into the derivatives on the intervals that are created. (Do not include the critical numbers when you are testing because they should yield 0 or undefined, that's why they are your critical numbers).

4. Find which critical numbers in which the sign of the derivative changes. If the derivative goes from a negative y-value to positive y-value, that means the function has just gone from decreasing to increasing, which means that the critical number is a relative minimum. If the derivative goes from a positive y-value to a negative y-value, that means the function has just gone from increasing to decreasing, which means that the critical number is a relative maximum.

Relative Extrema: Second Derivative Test

You can find a relative minimum or maximum of a function by going through certain steps.

1. Find the derivative of the function

2. Find what x-values makes the derivative undefined or zero, these will be your critical numbers.

3. Find the derivative of the derivative, or the second derivative.

4. Plug in the x-value of the critical numbers into the second derivative, if the result is a positive y-value, then the function is concave up which means that there is a relative minimum at the critical points. If the result is a negative y-value, then the function is concave down which means that there is a relative maximum at the critical points.

Here's some practice.

Determining Relative Extrema Practiceexpand_less

Question 1: Find the relative extrema of the function `color(black)(f(x)=x^2-x)`

Question 2: Find the relative extrema of the function `color(black)(f(x)=x^5-x)`


Click on the up carrot to get the answer.

Answersclose

Answer 1: The relative minimum of f(x) is (½,-¼)

Answer 2: The relative maximum of f(x) is (-.669 , .535) and the relative minimum of f(x) is (.669 , -.535)

Absolute Extrema

You can find an absolute minimum or maximum of a function by going through certain steps. The problem is only an absolute extrema problem when f(x) is continuous on a closed interval [a,b].

1. Find the critical numbers.

2. Plug in the critical numbers and the end-points of the closed interval into f(x).

3. The lowest y-value is the absolute minimum, and highest y-value is the absolute maximum.

Here's some practice.

Determining Absolute Extrema Practiceexpand_less

Question: Find the absolute extrema of the function `color(black)(f(x)=8x^3+81x^2-42x-8)` on the closed interval [-4,2]


Click on the up carrot to get the answer.

Answersclose

Answer: The absolute maximum of the function is 944 at the point x=-4, and the absolute minimum of the function is -13.3125 at the point x=¼

Tangent Lines

In order to find the tangent line at a point on a function, you must follow cerain steps.

1. Find the derivative.

2. Find the slope at the point by plugging the x-value into the derivative.

3. Find the equation of the tangent line by plugging the values into the equation `color(black)(y-y_1=m(x-x_1))` where `color(black)((x_1,y_1)` is the point you are finding the tangent to and m is the slope of the line found in step 2.

Here is a graph on Desmos that will allow you to see how tangent lines work on a graph, click on edit graphh and you will be taken to the graphing page, you can move the a slider around, which changes the x-value for the tangent line. You can also slide the point on this webpage. In this graph, the red line is the tangent line and the blue line is the original function.

Here's some practice.

Determining Tangent Lines Practiceexpand_less

Question: Find the tangent line to the function `color(black)(f(x)=3(x+2)^2)` at the point x=2


Click on the up carrot to get the answer.

Answersclose

Answer: `color(black)(y-48=24(x-2))`

Optimization Problems

For optimization problems, they will often ask you when something will be the lowest or the highest, this is essentially the same thing as asking for a minimum or maximum, so you will undergo the same steps for finding a relative extrema. You will find the relative minimum or maximum depending on what the problem is asking for.

Related Rates

Find the derivative of the function that relates to the problem with respect to time. You will most likely have to differentiate using chain rule in order to differentiate with respect to time. Before, you would find the derivative with respect to x, but now it is the derivative with respect to time.

For example, if your equation is `color(black)(x^2+y^2=10)`, the derivative would be `color(black)(2x(dx)/(dt)+2y(dy)/(dt)=0)`

Second Derivatives

Using second derivatives you can find concavity and inflection points. It is also the rate of change for the function f'(x), or the first derivative.

Concavity

If the second derivative returns a positive y-value for an x-value, then the original function is concave up. Concave up looks sort of like a "U", with the left half of the "U" being concave up and decreasing and the right half being concave up and increasing. You can remember this by thinking of concave "U"p.

If the second derivative returns a negative y-value for an x-value, then the original function is concave down. Concave down looks sort of like a "n", with the left half of the "n" being concave down and increasing and the right half being concave down and decreasing. You can remember this by thinking of concave dow"n".

Inflection Points

You find inflection points in a fashion similar to finding relative extremas.

1. Find the second derivative of a function

2. Find when the second derivative equals 0 or is undefined.

3. Make a number line with your the numbers found in step 2 on the number line and plug in x-values into the derivatives on the intervals that are created. (Do not include the numbers found in step 2 when you are testing because they should yield 0 or undefined, that's why they are your critical numbers).

4. Find the numbers in which the sign of the derivative changes. If the second derivative goes from a negative y-value to positive y-value, that means the function has just gone from concave down to concave up. If the derivative goes from a positive y-value to a negative y-value, that means the function has just gone from concave up to concave down.

Here's some practice.

Determining Points of Inflection Practiceexpand_less

Question: What are the x-values of the inflection points for the function `color(black)(f(x)=12x^4+x^3-6x^2)`?


Click on the up carrot to get the answer.

Answersclose

Answer: The inflection points are found at x=1 and at x=-2

Implicit Differentiation

Normally, derivatives involve functions y that are written explicitly as functions of x. However, in implicit differentiation problems functions y are written implicitly as functions of x.

That seems really confusing, but if you practice implicit differentiation problems then it gets a lot easier. Here is an example of how to do implicit differentiation problems:

`color(black)(d/(dx)(x^3+2xy+y^2=25))`

`color(black)(to 3x^2+2y+2x(dy)/(dx)+2y(dy)/(dx)=0)`

`color(black)(to 2x(dy)/(dx)+2y(dy)/(dx)=-3x^2-2y)`

`color(black)(to (dy)/(dx)(2x+2y)=-3x^2-2y)`

`color(black)(to (dy)/(dx)=(-3x^2-2y)/(2x+2y))`

Implicit Differentiation Practiceexpand_less

`color(black)(2x+3xy-y^2=10)`

Question 1: What is `color(black)((dy)/(dx))`

Question 2: What is the value of `color(black)((dy)/(dx))` at (2, 4)


Click on the up carrot to get the answer.

Answersclose

Answer 1: `color(black)((dy)/(dx)=(-2-3y)/(3x-2y))`

Answer 2: 7

Derivatives of Inverse Functions

In inverse functions, one function's x-value is the other's y-value and vice versa. You can determine the inverse of a function by substituting the x(s) in the equation for the y(s) and the y(s) in the equation for x(s) and then solving for y.

If g(x) is the inverse of f(x), then `color(black)(g'(x)=1/(f'(g(x))))`

*This is usually only like one question on the entire AP test

Inverse Function Derivatives Practiceexpand_less

Let h and j be inverse functions

x h(x) h'(x)
1 2 3
5 1 7

What is j'(1)


Click on the up carrot to get the answer.

Answersclose

Answer: 1/7

Differentiability

Differentiability means that the derivative of a function exists at every point in an interval.

A function is differentiable at a point if `color(black)(lim_(xtoc-)f'(x)=lim_(xtoc+)f'(x))`

Non-differentiable functions are those that have a sudden change in slope or are wildly oscillating.

If a function is differentiable at x=c, then it is also continuous at x=c. This is what differentiability implies continuity means.

Here's some practice

Differentiability Practiceexpand_less

Question 1: Is the function differentiable at x=-1?

Question 2: Is the function differentiable at x=0?

Question 3: Is the function differentiable at x=1?


Click on the up carrot to get the answer.

Answersclose

Answer 1: Yes

Answer 2: No (Sharp Change)

Answer 3: Yes

Applications of Derivatives
Position, Velocity, and Acceleration (Motion)

Velocity is just the derivative of position, and acceleration is the derivative of velocity.

The speed is increasing when the sign of velocity and acceleration are the same and decreasing when their sign is not the same.

Other information pertaining to motion will be covered in the integrals section.

Logistic Models (BC)

They will often give you an equation of the derivative of population with respect to time. There are multiple equations but the two most common that you will see is: `color(black)((dP)/(dt)=kP(1-P/L))` or `color(black)((dP)/(dt)=kP(L-P))`. These equations accurately model the growth of population.

Carrying capacity is calculated by finding out what P value will make dP/dt equal to 0, in both equations if P is equal to 0, then the growth will be 0, which makes sense, because if there is nobody in the population, then the population cannot grow. If you wanna know what the carrying capacity is, you'll have to look at `color(black)(L-P)` or `color(black)(1-P/L)`. In the first equation, dP/dt equals zero when P=L, so L is the carrying capacity. In the second equation, dP/dt is equal to zero when P=L, because P/L=1 and 1-1=0.

The time when population is growing the fastest will always be half of the carrying capacity.

The graph of population can start above the carrying capacity or below it, but it will always grow or decay in an s-curve like manner to get to the carrying capacity.

Logistics Models Practiceexpand_less

A population's growth is modeled by the logistic equation `color(black)((dP)/(dt)=100P(6-P/100))`

Question 1: What is the carrying capacity of the population?

Question 2: When is the population growing the fastest?


Click on the up carrot to get the answer.

Answersclose

Answer 1: 600 members

Answer 2: 300 members

Euler's Method

When you are given the derivative of a function and a point on the function, but not the function itself, you can use Euler's Method to try approximate another point.

You will have to approximate by using multiple steps depending on what the problem asks. The formula for Euler's method is `color(black)(y_n=(dy)/(dx)|_((x=n-1,y=n-1))Delta x + y_(n-1))`

For example, if you have `color(black)((dy)/(dx)=y+x)` and you know (1, 2) is a point on the original function. Using two equal steps, what is the y-value if the x-value is 2.

First, calculate `color(black)((dy)/(dx)|_((x=1, y=2)))`, which is 3. If the tangent line equation is y-2 = 3(x-1), calculate what y equals if x=1.5. y will equal 3.5 if x=1.5. Calculate `color(black)((dy)/(dx)|_((x=1.5, y=3.5)))`, which is 5. If the tangent line equation is y-3.5 = 5(x-1.5) and x=2, then y=6. So according to Euler's Method approximation, the y-value at x=2 is 6.

Here's some practice.

Euler's Method Practiceexpand_less

Question: Given that `color(black)((dy)/(dx)=x-y-2)` and that f(-1)=3, approximate the value of f(2) using three steps of equal size.


Click on the up carrot to get the answer.

Answersclose

Answer: `color(black)(f(2)~~1)`