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
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

6 min read
Font
Discuss
Share
Feedback

What you’ll learn:

  • Derivatives of exponential, logarithmic, and trigonometry functions

So far, we’ve worked with derivatives of polynomials and rational functions. Many important functions don’t fit those categories, though. Here, you’ll learn the special derivative rules for exponential, logarithmic, and trigonometric functions.

Exponential functions

Exponential functions model rapid growth and decay. They show up in population models, radioactive decay, and compound interest.

The most important exponential function is the natural exponential function

f(x)=ex

It has a key property: its rate of change is equal to itself.

dxd​ex=ex

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

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

In other words, you rewrite the original function and multiply by ln(b).

Example

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

Solution

(spoiler)

“Slope of the tangent line” means “evaluate the derivative at that x-value.”

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

At x=0, the slope is

f′(0)=70ln(7)=ln(7)​.

  1. Where on the graph of

f(x)=x2ex

will there be horizontal tangent lines?

Solution

(spoiler)

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

Use the product rule:

f′(x)=(x2)′ex+x2(ex)′​=2xex+x2ex​

Horizontal tangent lines occur where f′(x)=0, so solve

x2ex+2xex=0

Avoid dividing both sides by xex right away, since that can remove solutions. Instead, factor:

xex(x+2)=0

Because ex=0 for any real x, the solutions come from

x=0orx+2=0⇒x=−2

Now find the corresponding y-values:

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

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

So the points are

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

Sidenote
Power rule vs. derivatives of exponentials

Be careful not to mix these up. Here, 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 the natural logarithm f(x)=ln(x),

dxd​ln(x)=x1​

Any logarithmic function

f(x)=logb​x (where the base b>0 and b=1)

can be rewritten using the change-of-base rule:

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

Since ln(b)1​ is a constant, it stays out front when you differentiate. That gives

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

Notice that loge​(x)=ln(x), and this formula becomes

xln(e)1​=x1​.

Sidenote
On the derivative's domain

A derivative formula is only valid where the original function is defined. For logarithms, the argument must be >0.

Examples

  1. 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, the domain of f′(x) is also x>0. For every positive input x, the factor x1​ is positive, while ln(1/2)1​ is negative. So f′(x) is always negative.

Graphing log1/2​(x) confirms the function decreases as you move from left to right.

  1. Find the derivative of

f(x)=logx​(4)

Solution

(spoiler)

Start by rewriting with change of base:

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

Now differentiate using the quotient rule. Here, ln(4) is a constant, so its derivative is 0.

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

Here’s one way to confirm this derivative in Desmos:

  1. Type

dxd​(the original function)

  1. Type the derivative function you found. Use plenty of parentheses.

  2. Check that the graphs match.

Trigonometric functions

Start with the basic trig functions sin(x) and cos(x).

dxd​sin(x)=cos(x)

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

From there, you can derive other trig derivatives by rewriting them in terms of sin(x) and cos(x).

For example, you can find the derivative of tan(x) by rewriting it as a quotient:

tan(x)=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)​

You can do the same for cot(x) by rewriting it as

cot(x)=sin(x)cos(x)​.

  1. 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)​​

Now do the same for the remaining two reciprocal functions:

  1. 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 saves time, but it’s also useful to know how to derive them from the derivatives of sin(x) and cos(x).

Exponential functions

  • Derivative of ex is ex
  • Derivative of bx is bxln(b)
  • Power rule vs. exponential rule:
    • Power rule: xb→bxb−1
    • Exponential: bx→bxln(b)

Logarithmic functions

  • Derivative of ln(x) is x1​
  • Derivative of logb​(x) is xln(b)1​
  • Derivative only defined for x>0

Trigonometric functions

  • dxd​sin(x)=cos(x)
  • dxd​cos(x)=−sin(x)
  • dxd​tan(x)=sec2(x)
  • dxd​cot(x)=−csc2(x)
  • dxd​sec(x)=sec(x)tan(x)
  • dxd​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.

Special derivatives

What you’ll learn:

  • Derivatives of exponential, logarithmic, and trigonometry functions

So far, we’ve worked with derivatives of polynomials and rational functions. Many important functions don’t fit those categories, though. Here, you’ll learn the special derivative rules for exponential, logarithmic, and trigonometric functions.

Exponential functions

Exponential functions model rapid growth and decay. They show up in population models, radioactive decay, and compound interest.

The most important exponential function is the natural exponential function

f(x)=ex

It has a key property: its rate of change is equal to itself.

dxd​ex=ex

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

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

In other words, you rewrite the original function and multiply by ln(b).

Example

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

Solution

(spoiler)

“Slope of the tangent line” means “evaluate the derivative at that x-value.”

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

At x=0, the slope is

f′(0)=70ln(7)=ln(7)​.

  1. Where on the graph of

f(x)=x2ex

will there be horizontal tangent lines?

Solution

(spoiler)

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

Use the product rule:

f′(x)=(x2)′ex+x2(ex)′​=2xex+x2ex​

Horizontal tangent lines occur where f′(x)=0, so solve

x2ex+2xex=0

Avoid dividing both sides by xex right away, since that can remove solutions. Instead, factor:

xex(x+2)=0

Because ex=0 for any real x, the solutions come from

x=0orx+2=0⇒x=−2

Now find the corresponding y-values:

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

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

So the points are

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

Sidenote
Power rule vs. derivatives of exponentials

Be careful not to mix these up. Here, 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 the natural logarithm f(x)=ln(x),

dxd​ln(x)=x1​

Any logarithmic function

f(x)=logb​x (where the base b>0 and b=1)

can be rewritten using the change-of-base rule:

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

Since ln(b)1​ is a constant, it stays out front when you differentiate. That gives

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

Notice that loge​(x)=ln(x), and this formula becomes

xln(e)1​=x1​.

Sidenote
On the derivative's domain

A derivative formula is only valid where the original function is defined. For logarithms, the argument must be >0.

Examples

  1. 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, the domain of f′(x) is also x>0. For every positive input x, the factor x1​ is positive, while ln(1/2)1​ is negative. So f′(x) is always negative.

Graphing log1/2​(x) confirms the function decreases as you move from left to right.

  1. Find the derivative of

f(x)=logx​(4)

Solution

(spoiler)

Start by rewriting with change of base:

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

Now differentiate using the quotient rule. Here, ln(4) is a constant, so its derivative is 0.

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

Here’s one way to confirm this derivative in Desmos:

  1. Type

dxd​(the original function)

  1. Type the derivative function you found. Use plenty of parentheses.

  2. Check that the graphs match.

Trigonometric functions

Start with the basic trig functions sin(x) and cos(x).

dxd​sin(x)=cos(x)

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

From there, you can derive other trig derivatives by rewriting them in terms of sin(x) and cos(x).

For example, you can find the derivative of tan(x) by rewriting it as a quotient:

tan(x)=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)​

You can do the same for cot(x) by rewriting it as

cot(x)=sin(x)cos(x)​.

  1. 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)​​

Now do the same for the remaining two reciprocal functions:

  1. 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 saves time, but it’s also useful to know how to derive them from the derivatives of sin(x) and cos(x).

Key points

Exponential functions

  • Derivative of ex is ex
  • Derivative of bx is bxln(b)
  • Power rule vs. exponential rule:
    • Power rule: xb→bxb−1
    • Exponential: bx→bxln(b)

Logarithmic functions

  • Derivative of ln(x) is x1​
  • Derivative of logb​(x) is xln(b)1​
  • Derivative only defined for x>0

Trigonometric functions

  • dxd​sin(x)=cos(x)
  • dxd​cos(x)=−sin(x)
  • dxd​tan(x)=sec2(x)
  • dxd​cot(x)=−csc2(x)
  • dxd​sec(x)=sec(x)tan(x)
  • dxd​csc(x)=−csc(x)cot(x)