Achievable logoAchievable logo
AP Calculus AB
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Exam catalog
Mountain with a flag at the peak
Textbook
Introduction
1. Limits
2. Derivative basics
2.1 Definition of the derivative
2.2 Tangent lines & slopes
2.3 Power rule
2.4 Product & quotient rules
2.5 Special derivatives
2.6 Differentiability & continuity
3. Advanced differentiation
4. Contextual uses
5. Analytical uses
6. Integration
7. Differential equations
8. Applications of integrals
9. Testing details tag
10. test
Wrapping up
Achievable logoAchievable logo
2.5 Special derivatives
Achievable AP Calculus AB
2. Derivative basics
Our AP Calculus AB course is currently in development and is a work-in-progress.

Special derivatives

7 min read
Font
Discuss
Share
Feedback

What you’ll learn:

  • Derivatives of exponential, logarithmic, and trigonometry functions

So far, we’ve worked with the derivatives of polynomials and rational functions. But there are a wide variety of other functions that exist. In this section, we’ll find special derivatives - those of exponential, logarithmic, and trigonometric functions.

Exponential functions

Exponential functions model rapid growth and decay and commonly appear in population models, radioactive decay, and situations with compounded interest. The most important exponential function is the natural exponential function f(x)=ex, which has a key property - its rate of change is equal to itself.

dxd​ex=ex

More generally, for any basic exponential function of the form f(x)=bx (where b>0 and =1), its derivative is:

dxd​(bx)=bx⋅ln(b)

In other words, just rewrite the function and multiply by the natural log of the base value.

Example

1. Determine the slope of the tangent line to f(x)=7x at x=0.

Solution

(spoiler)

Think derivative with the keywords “slope of the tangent line.”

f′(x)=7x⋅ln(7)

At x=0, the slope of the tangent line is f′(0)=70ln(7)=ln(7)​.

2. Where on the graph of

f(x)=x2ex

will there be horizontal tangent lines?

Solution

(spoiler)

Answer: At (0,0) and (−2,4e−2)

Using the product rule,

f′(x)=x2(ex)+ex(2x)

A horizontal tangent line means the derivative =0 at that point. Solve for:

x2ex+2xex=0

Make sure to avoid simply moving one of the terms to the other side and dividing both sides by xex, since that may eliminate a solution. Instead, always factor:

xex(x+2)=0

The graph of y=ex is always above the x-axis and there is no solution for which ex=0. So the two solutions are

x=0,−2

with corresponding y-coordinates of

f(0)=(0)2⋅e0=0

f(−2)=(−2)2⋅e−2=4e−2≈0.544

Then the two points on f(x) that have a horizontal tangent line are

(0,0) and (−2,4e−2)​

Sidenote
Power rule vs. derivatives of exponentials

Be careful not to confuse these two! Given x is a variable and b is a constant:

  1. Power rule if f(x)=xb:

    • e.g. dxd​x3=3x2
  2. Rule for exponentials if f(x)=bx

    • e.g. dxd​3x=3xln(3)

Logarithmic functions

For f(x)=ln(x):

dxd​ln(x)=x1​

Any logarithmic function f(x)=logb​x (where the base b>0 and =1) can be rewritten using the change-of-base rule into

f(x)=ln(b)ln(x)​

=ln(b)1​⋅ln(x)

ln(b)1​ is pulled to. the front because it’s a constant. Then the derivative is

dxd​logb​x=x⋅ln(b)1​

Notice that loge​(x)=ln(x) and the derivative is x⋅ln(e)1​=x1​.

Sidenote
On the derivative's domain

The derivative is only valid in the domain of the original function. For all logarithmic functions, the argument must be >0.

Examples

2. Let f(x)=log1/2​(x). Determine for which values of x the slope of the tangent line to f(x) is positive and the values for which it is negative.

(spoiler)

Answer: Negative slope for all x-values in (0,∞).

f′(x)=x⋅ln(1/2)1​

=ln(1/2)1​⋅x1​

≈−1.44⋅x1​

Because the domain of f(x) is x>0, so is the domain of f′(x). No matter what (positive) value of x is inputted, the derivative, or the slope of the tangent line to f(x), is negative.

Graphing log1/2​(x) confirms the function is always decreasing as we move from left to right.

3. Find the derivative of

f(x)=logx​(4)

Solution

(spoiler)

Using the change of base formula,

f(x)=ln(x)ln(4)​

Differentiating with the quotient rule,

f′(x)=(ln(x))2ln(x)(0)−ln(4)⋅x1​​

=−x(ln(x))2ln(4)​​

Here’s a way to confirm that this is the derivative in Desmos:

1. Type

dxd​(the original function)

2. Type in the derivative function we found. Use as many parentheses as possible - it’s better to err on the side of too many than not enough.

3. Check that the graphs match.

Trigonometric functions

Let’s start with the basic trig functions: sin(x) and cos(x).

dxd​sin(x)=cos(x)

dxd​cos(x)=−sin(x)

From there, the derivative of tan(x) can be derived using the quotient rule (or product rule, if so inclined) by rewriting tan(x) as cos(x)sin(x)​.

1. Find the derivative of f(x)=tan(x) by first rewriting it as a quotient.

Solution

(spoiler)

Answer: sec2(x)

Using the quotient rule on f(x)=cos(x)sin(x)​,

f′(x)=cos2(x)cos(x)⋅cos(x)−sin(x)⋅(−sin(x))​

=cos2(x)cos2(x)+sin2(x)​

Using the Pythagorean identity
sin2(x)+cos2(x)=1,

f′(x)=cos2(x)1​=sec2(x)​

Let’s do the same for the derivative of cot(x).

2. Find the derivative of f(x)=cot(x) by rewriting it as a quotient.

Solution

(spoiler)

Answer: −csc2(x)

Using the quotient rule on f(x)=sin(x)cos(x)​,

f′(x)=sin2(x)sin(x)⋅(−sin(x))−cos(x)⋅cos(x)​

=sin2(x)−sin2(x)−cos2(x)​

=sin2(x)−(sin2(x)+cos2(x))​

=sin2(x)−1​=−csc2(x)​

Let’s do the same for the remaining two reciprocal functions:

3. Find the derivatives of

a. a(x)=sec(x)
b. b(x)=csc(x)

Solutions

(spoiler)

a. Since sec(x)=cos(x)1​,

a′(x)=cos2(x)cos(x)(0)−1(−sin(x))​

=cos2(x)sin(x)​

=cos(x)1​⋅cos(x)sin(x)​

=sec(x)tan(x)​

b. Since csc(x)=sin(x)1​,

a′(x)=sin2(x)sin(x)(0)−1(cos(x))​

=sin2(x)−cos(x)​

=sin(x)−1​⋅sin(x)cos(x)​

=−csc(x)cot(x)​

Memorizing the trig derivatives will save time but it’s also handy to know how to derive them from the derivatives of sin(x) and cos(x).

Key points

These tables summarize the special derivatives:

For exponential and logarithmic functions:

f(x) f′(x)
ex ex
ax axln(a)
ln(x) x1​
logb​(x) xln(b)1​

For trig functions:

f(x) f′(x)
sin(x) cos(x)
tan(x) sec2(x)
cot(x) −csc2(x)
sec(x) sec(x)tan(x)
csc(x) −csc(x)cot(x)

Sign up for free to take 10 quiz questions on this topic

All rights reserved ©2016 - 2026 Achievable, Inc.