AP® CALCULUS AB & BC · UNIT 2

Sine, cosine, exponential
& log derivatives

Differentiate sine, cosine, exponential and logarithmic functions. Build confidence with detailed notes, worked examples, derivative limits and practice.

Topic 2.7 study notes6 worked examples · 6 practice problemsUpdated 9 November 2026
Calculus notebook with limit and integral symbols, compass and pencil on an olive and cream study desk

1. Four essential derivative formulas

Before using the formulas: Sine and cosine use radian inputs. The functions sinx, cosx and ex, and their derivatives, have all real inputs as their domains. The function lnx and its derivative here require x>0.

Core concept: Learn the derivatives of sinx, cosx, ex and lnx, then combine them with the power rule and linearity. Trigonometric inputs are measured in radians; the real natural logarithm requires x>0. Also recognise limits that represent derivatives of these familiar functions.

MEMORIZE THESE FOUR FORMULAS!

Function Derivative Memory Aid
sinx cosx Sine → Cosine (co-function)
cosx −sinx Cosine → Negative Sine
ex ex Natural exponential stays the same!
lnx 1x Natural log → Reciprocal

These four formulas are used in many later trigonometric, exponential and logarithmic calculations.

2. Understand and justify each derivative

Derivative 1

Sine differentiates to cosine

1 · Read the formula and its conditions

ddx[sinx]=cosx

In Words: The derivative of sine is cosine.

Why This Makes Sense:

The magnitude of the sine function's rate is greatest at x=kπ, where k is an integer. Its value is zero there, while cos(kπ)=(−1)k gives either the greatest positive rate or the greatest negative rate.

The sine derivative at zero is cos0=1, while at π it is cosπ=−1. Sine is increasing near zero and decreasing near that second input.

At a sine maximum or minimum, sinx=1 or sinx=−1, the derivative cosx=0. A zero derivative describes the tangent slope at that input.

2 · Follow the proof

ddx[sinx]=limh→0sin(x+h)−sinxh

Using the angle addition formula sin(x+h)=sinxcosh+cosxsinh and the special limits:

limh→0sinhh=1

limh→0cosh−1h=0

We get ddx[sinx]=cosx

3 · Apply the formula

ddx[sinx]=cosx

ddx[5sinx]=5cosx

ddx[sinx+x2]=cosx+2x

Derivative 2

Keep the sign on the cosine derivative

1 · Read the formula and its conditions

ddx[cosx]=−sinx

In Words: The derivative of cosine is negative sine.

Sign check: Keep the minus sign in the derivative of cosine; losing it is a common error.

Why the Negative Sign?

At x=0, cos0=1, a maximum value.

On 0<x<π, cosine decreases because −sinx<0. On other intervals, check the derivative sign again.

At zero the derivative is −sin0=0; immediately to the right it is negative.

The cosine graph is decreasing immediately to the right of zero. The derivative changes sign on other intervals as sine changes sign.

2 · Follow the proof

ddx[cosx]=limh→0cos(x+h)−cosxh

Using cos(x+h)=cosxcosh−sinxsinh and the same special limits, we get −sinx

3 · Apply the formula

ddx[cosx]=−sinx

ddx[3cosx]=−3sinx

ddx[cosx−sinx]=−sinx−cosx

ddx[−cosx]=−(−sinx)=sinx (double negative!)

Derivative 3

The natural exponential keeps its value

1 · Read the formula and its conditions

ddx[ex]=ex

In words: The derivative of the natural exponential ex is ex, so its instantaneous rate equals its current value.

The natural base

e≈2.71828... is the only base where ddx[ax]=ax

For a fixed real base a>0, ddx[ax]=axlna. The base-one case is the constant function one, with derivative zero.

This unit-rate property identifies the natural base.

The function ex grows at a rate proportional to its current value

2 · Follow the proof

ddx[ex]=limh→0ex+h−exh=exlimh→0eh−1h

The fundamental exponential limit limh→0eh−1h=1 gives the result. One way to characterise the natural base is as the positive exponential base with unit rate at zero; this limit must be established in a development of the exponential function rather than inferred from a decimal approximation.

3 · Apply the formula

ddx[ex]=ex

ddx[7ex]=7ex

ddx[ex+x3]=ex+3x2

ddx[−ex]=−ex

For Other Bases (General Exponential):

ddx[ax]=axlna

Example: ddx[2x]=2xln2

Derivative 4

The natural logarithm has reciprocal slope

1 · Read the formula and its conditions

ddx[lnx]=1x(x>0)

In words: The derivative of the real natural logarithm is the reciprocal of its input, on the positive-input domain.

Domain note: The real function lnx is defined only for x>0, and the derivative formula here has that same domain.

Key Properties:

As x→∞, 1x→0 (derivative approaches 0—the logarithm grows more slowly)

As x→0+, 1x→∞ (derivative blows up—steep near origin)

The derivative is always positive for x>0 (the logarithm is increasing throughout its domain)

2 · Follow the proof

Inverse-function explanation: The exponential is differentiable with nonzero derivative and has inverse lnx on x>0. The inverse-function theorem ensures this inverse is differentiable. The chain-rule steps below then verify its derivative formula; the inverse and chain rules are developed in Unit 3.

elnx·ddx[lnx]=1
x·ddx[lnx]=1
ddx[lnx]=1x✓

3 · Apply the formula

ddx[lnx]=1x

ddx[2lnx]=2x

ddx[lnx+x]=1x+1

For Other Bases (General Logarithm):

ddx[logax]=1xlna

Example: ddx[log10x]=1xln10

Sine and its derivative

−π 0 π Input (radians) −1 0 1 Output Sine Derivative
The dashed curve shows (sinx)′=cosx. At x=π2, the round marker gives sinx=1, and the square marker gives cosx=0. The sine tangent is horizontal there.

Cosine and its derivative

−π 0 π Input (radians) −1 0 1 Output Cosine Derivative
The dashed curve shows (cosx)′=−sinx. At x=π2, the round marker gives cosx=0, and the square marker gives −sinx=−1. Cosine is decreasing there.

Radian proof

Complete the trigonometric proof steps

1 · Separate the two special limits

The angle-addition identities separate each quotient into terms involving the two established special limits:

2 · Evaluate the sine and cosine derivatives

(sinx)′=sinxlimh→0cosh−1h+cosxlimh→0sinhh=cosx.
(cosx)′=cosxlimh→0cosh−1h−sinxlimh→0sinhh=−sinx.

3 · Hold the base input fixed

Here x is fixed while h→0, so sinx and cosx are constants with respect to that limit. The limits are finite, permitting the separation. The trigonometric limit equal to one depends on radian measure.

Radian measure

Degrees describe a differently scaled input

1 · Express the input in radians

If S(t)=sin(πt180) represents the sine of a degree-valued number t, its derivative with respect to that number is

2 · Read the derivative and its scale factor

S′(t)=π180cos(πt180).

The extra factor explains why degree mode cannot be substituted into the standard radian derivative formula. This scaled-input calculation previews the chain rule.

3. Compare the four derivatives

Function f(x) Derivative f′(x) Key Point
sinx cosx Sine → Cosine
cosx −sinx Negative sign!
ex ex Derivative = itself
lnx 1x Reciprocal of the input

Sine and cosine formulas assume radians. The real natural logarithm and its reciprocal derivative in this table apply only on x>0; a reciprocal formula by itself does not extend the logarithm to negative inputs.

4. Six worked examples with full steps

Example 1

Combine sine and cosine

1 · Separate the signed terms

Problem: Find f′(x) for f(x)=3sinx−2cosx

Apply sum/difference rule: Differentiate term-by-term

2 · Differentiate sine and cosine

First term: ddx[3sinx]=3cosx

Second term: ddx[−2cosx]=−2(−sinx)=2sinx

3 · Collect the signs

Combine: f′(x)=3cosx+2sinx

Answer: f′(x)=3cosx+2sinx

Example 2

Differentiate an exponential and polynomial

1 · Start with the exponential term

Problem: Differentiate g(x)=5ex+2x3−7

Term 1: ddx[5ex]=5ex (exponential stays same!)

2 · Apply the power rule and constant rule

Term 2: ddx[2x3]=6x2 (power rule)

Term 3: ddx[−7]=0 (constant rule)

3 · Combine the surviving terms

Combine: g′(x)=5ex+6x2

Answer: g′(x)=5ex+6x2

Example 3

Differentiate a logarithm, power and reciprocal

1 · Rewrite the negative reciprocal

Problem: Find dydx for y=4lnx+x2−1x

Rewrite: y=4lnx+x2−x−1

2 · Differentiate each term

Term 1: ddx[4lnx]=4x

Term 2: ddx[x2]=2x

Term 3: ddx[−x−1]=−(−1)x−2=x−2=1x2

3 · Check the positive reciprocal-square term

Combine: dydx=4x+2x+1x2

Answer: dydx=4x+2x+1x2

Example 4

Combine all four derivative formulas

1 · Identify the four terms

Problem: Find h′(x) for h(x)=sinx+cosx+ex+lnx

2 · Use one formula per term

Differentiate each term:

ddx[sinx]=cosx

ddx[cosx]=−sinx

ddx[ex]=ex

ddx[lnx]=1x

3 · Write the derivative

Combine: h′(x)=cosx−sinx+ex+1x

Answer: h′(x)=cosx−sinx+ex+1x

Example 5

Find the derivative at a specific point

1 · Identify the target rate

Problem: If f(x)=2sinx+ex, find f′(0)

2 · Differentiate before substituting

Find derivative: f′(x)=2cosx+ex

3 · Evaluate at zero

Evaluate at x=0:

f′(0)=2cos(0)+e0

=2(1)+1 (remember: cos0=1 and e0=1)

=3

Answer: f′(0)=3

Example 6

Keep fractional coefficients

1 · Rewrite each term with its coefficient

Problem: Differentiate k(x)=sinx2+ex3−lnx4

Rewrite: k(x)=12sinx+13ex−14lnx

2 · Apply linearity and the derivative formulas

Differentiate term-by-term:

k′(x)=12cosx+13ex−14·1x

3 · Combine the derivative terms

Simplify: k′(x)=cosx2+ex3−14x

Answer: k′(x)=cosx2+ex3−14x

Domain check: Examples 1, 2 and 5 allow all real inputs. Examples 3, 4 and 6 contain lnx, so both the original functions and the displayed derivatives require x>0. In Example 3, differentiating the negative reciprocal produces a positive reciprocal-square term.

5. Exponential and logarithmic functions with other bases

Other bases 1

Differentiate a constant-base exponential

1 · Read the formula and its base condition

General exponential function: constant base a>0
ddx[ax]=axlna(a>0)

2 · Keep the natural logarithm of the base

ddx[2x]=2xln2

ddx[10x]=10xln10

ddx[3x]=3xln3

Note: When a=e, lne=1, so ddx[ex]=ex·1=ex

Other bases 2

Differentiate a logarithm of another base

1 · Read the formula and its base condition

General logarithm function: constant base a
ddx[logax]=1xlna(a>0,a≠1,x>0)

2 · Keep the natural logarithm of the base

ddx[log10x]=1xln10

ddx[log2x]=1xln2

Note: When a=e, lne=1, so ddx[lnx]=1x·1=1x

Base conditions: The derivative formula for ax is valid for any fixed a>0, including a=1, which gives a constant. A real logarithm base must satisfy a>0 and a≠1, and its argument must be positive. A negative constant base does not define a real exponential function on an entire real interval in the same way.

Other bases 3

Differentiate after changing the base

1 · Rewrite with the natural logarithm

The change-of-base identity gives logax=lnxlna.

2 · Take out the constant and check its sign

Because lna is a nonzero constant, the constant multiple rule gives 1xlna. If 0<a<1, then lna<0, so both ax and logax are decreasing on their real domains.

Power versus exponential: The formula ddx[xn]=nxn−1 holds for a constant exponent on its differentiability domain. The formula ddx[ax]=axlna holds for a constant positive base. Identify where the variable occurs before choosing the rule.

6. Important limits behind the formulas

Essential Limits: These limits are fundamental to proving the derivative formulas:

  1. Sine Limit:
    limx→0sinxx=1
  2. Cosine Limit:
    limx→0cosx−1x=0
  3. Exponential Limit:
    limh→0eh−1h=1

The trigonometric limits use radian measure and can be established geometrically with limit arguments. The exponential limit follows from the construction of the natural exponential. Once established, these limits justify the derivative formulas and can also be recognised through the derivative definition.

7. Recognise a familiar derivative inside a limit

A second core skill in Topic 2.7 is matching a limit to the definition of a derivative. Identify the function, base input and input change before evaluating.

f′(a)=limh→0f(a+h)−f(a)h.

The equivalent moving-input form is f′(a)=limx→af(x)−f(a)x−a. The denominator is the change in the input, not just any expression that tends to zero.

Limit 1

Sine at a nonzero input

1 · Identify the derivative and its base input

This is the derivative of sine evaluated at π3, using radians.

2 · Evaluate the limit

limh→0sin(π3+h)−sin(π3)h=cos(π3)=12.

Limit 2

Cosine at zero

1 · Identify the derivative and its base input

The numerator subtracts cos0=1, so the quotient matches the derivative at zero.

2 · Evaluate the limit

limx→0cosx−1x=−sin0=0.

Limit 3

The natural exponential at one

1 · Identify the derivative and its base input

The subtracted value e1=e identifies the base input one. Evaluate the exponential derivative there.

2 · Evaluate the limit

limx→1ex−ex−1=e.

Limit 4

The natural logarithm at one

1 · Identify the derivative and its base input

The logarithm's argument is positive for all sufficiently small input changes, and ln1=0, so this is (lnx)′ evaluated at one.

2 · Evaluate the limit

limh→0ln(1+h)h=limh→0ln(1+h)−ln1h=1.

Limit 5

Check a scaled denominator

1 · Identify the derivative and its base input

The input change in the numerator is h; the extra constant three must be accounted for. Direct substitution gives an indeterminate form, not a zero derivative or proof that the limit does not exist. Recognising the derivative supplies the exact value.

2 · Evaluate the limit

limh→0e2+h−e23h=13limh→0e2+h−e2h=e23.

8. Connect derivative values with tangent lines and rates

Tangent 1

Use the point and slope at zero

1 · Identify the function and its derivative

Reuse Example 5, f(x)=2sinx+ex. Its derivative is f′(x)=2cosx+ex. Evaluate both at zero to find the point and its tangent slope.

2 · Find the height and the instantaneous rate

f(0)=2sin0+e0=1,f′(0)=2cos0+e0=3.

3 · Write the tangent equation and interpret the rate

y−f(0)=f′(0)(x−0),y=1+3x.

The curve passes through (0,1), and its tangent has slope three. If the output measures a quantity and the input measures time, that derivative is expressed in output units per time unit. It is an instantaneous rate, distinct from an average rate over an interval.

Tangent 2

Find a tangent to the natural logarithm

1 · Find the height and slope at one

For g(x)=lnx at one, g(1)=0 gives the height and g′(1)=1 gives the slope.

2 · Write the line and check the derivative domain

The tangent is y=x−1. Use 1x as the derivative of lnx on its positive real domain.

Tangent to the natural exponential

−1 0 1 Input 0 1 2 3 4 5 Output Exponential curve Tangent P
For f(x)=ex, the curve passes through P=(0,1). Its rate f′(0)=1 gives the dashed tangent y=x+1.

Tangent to the natural logarithm

0 1 2 Input −2 −1 0 1 2 Output Asymptote Log curve Tangent P
The curve g(x)=lnx is defined for x>0. At P=(1,0), the rate g′(1)=1 gives the dashed tangent y=x−1. The dotted asymptote is x=0, where limx→0+lnx=−∞.

9. Strategies, memory aids and common mistakes

Essential Tips

  • Memorize cold: These four derivatives must be instant recall—no hesitation!
  • Negative-sign alert: Among the four basic formulas on this page, cosine's derivative has an explicit minus sign: ddx[cosx]=−sinx. The numerical sign of a derivative still depends on the input.
  • Natural base: Among functions of the form ax with positive constant base, ex is the one whose derivative equals itself. Other functions also satisfy that equation: every constant multiple Cex, including the zero function, has derivative equal to itself.
  • Log domain: lnx only defined for x>0, so derivative too
  • Practice evaluating: Know special values like sin0,cos0,e0,ln1
  • Combine with other rules: Use these WITH power rule, sum rule, etc.

Memory Devices

Mnemonic for Trig Derivatives:

"Sine goes to Cosine (co-function),
Cosine goes Negative (that's the key!)."

Pattern for Repeated Differentiation:

If you keep differentiating sine or cosine, you get a 4-step cycle:

sinx→cosx→−sinx→−cosx→sinx→...
cosx→−sinx→−cosx→sinx→cosx→...

For Exponential and Log:

"Natural exponential stays intact; the log gives the reciprocal back!"

Special Values to Memorize

Trig Values:

  • sin0=0, cos0=1
  • sin(π2)=1, cos(π2)=0
  • sinπ=0, cosπ=−1

Exponential/Log Values:

  • e0=1
  • e1=e≈2.718
  • ln1=0
  • lne=1

Common Mistakes to Avoid

  • Mistake 1: Losing the minus sign in cosine's derivative. The correct identity is ddx[cosx]=−sinx.
  • Mistake 2: Using the power rule when the variable is in the exponent. The correct formula is ddx[ex]=ex; the expression xex−1 does not give this derivative.
  • Mistake 3: Taking the reciprocal of the logarithm instead of the input. The correct derivative is ddx[lnx]=1x for x>0, not 1lnx.
  • Mistake 4: Ignoring an inner function. For sin(3x), the outer sine formula alone misses the inner derivative; the answer is 3cos(3x). The chain rule is introduced in Unit 3, rather than Topic 2.9.
  • Mistake 5: Forgetting domain: lnx derivative only valid for x>0
  • Mistake 6: Mixing up log10x and lnx (different bases!)
  • Mistake 7: Double negative confusion: ddx[−cosx]=−(−sinx)=sinx
  • Mistake 8: Not using radians (trig derivatives require radian mode!)

10. Six practice problems with solutions

Differentiate the six functions or evaluate the requested derivative. Use radians for every trigonometric input and check domains.

1. Sine and cosine

f(x)=4sinx+3cosx.

Show the trigonometric sign check

Practice 1

Solution

1 · Differentiate the two terms

f′(x)=4cosx+3(−sinx)=4cosx−3sinx.

2 · Keep the cosine sign

The function and derivative are defined for all real inputs.

2. Exponential and polynomial

g(x)=ex−2x2+5.

Show the term-by-term solution

Practice 2

Solution

1 · Apply the exponential and power rules

g′(x)=ex−4x+0=ex−4x.

2 · Account for the constant

The constant contributes zero. Both domains are all real inputs.

3. Logarithm, reciprocal and root

h(x)=lnx+1x+x.

Show the fractions and domain check

Practice 3

Solution

1 · Differentiate on the positive-input domain

h′(x)=1x−1x2+12x,x>0.

2 · Compare the equivalent derivative forms

Equivalently, h′(x)=1x−x−2+12x−12. The logarithm and reciprocal restrict the original function to positive inputs, and the derivative has the same domain.

4. A negative cosine term

k(x)=−cosx+sinx+ex.

Show the double negative

Practice 4

Solution

1 · Use the negative coefficient

k′(x)=−(−sinx)+cosx+ex.

2 · Simplify the two signs

k′(x)=sinx+cosx+ex.

3 · Check the domain

The first coefficient and cosine derivative supply two negative signs. Both domains are all real inputs.

5. Base-two functions

f(x)=2x+log2x.

Show the base factors

Practice 5

Solution

1 · Apply both base-two formulas

f′(x)=2xln2+1xln2,x>0.

2 · Check the factors and domain

Keep the natural logarithm of the base in both formulas. The original logarithm requires positive inputs.

6. Evaluate at a special angle

For f(x)=sinx+cosx, find f′(π2).

Show differentiation before evaluation

Practice 6

Solution

1 · Find the derivative function

f′(x)=cosx−sinx.

2 · Substitute the angle in radians

f′(π2)=cos(π2)−sin(π2)=0−1=−1.

3 · Interpret the result

The result gives the instantaneous rate at the specified angle.

11. Write a clear AP-style response

How to write a clear AP-style solution:

  • Recall the basic formulas: Use them fluently in routine calculations. If the question asks for a limit definition or proof, show that reasoning instead of giving only a shortcut answer.
  • Correct notation: Use proper notation: ddx, f′(x), etc.
  • Show the requested method: Include enough differentiation, evaluation or limit work to support your result.
  • Differentiate before evaluating: Find f′(x), then substitute an allowed input a to obtain f′(a). Do not confuse the function value with the rate.
  • Combine with other rules: Mix these with power rule, sum rule, etc.
  • Know special limits: limx→0sinxx=1 appears on exams
  • Use radians: All trig must be in radian mode on calculator
  • Domain awareness: Note when x>0 for natural logarithms

Common FRQ Formats:

  1. Find f′(x) for a specified function.
  2. Find the tangent slope at x=a by evaluating f′(a).
  3. Find the tangent equation using the point (a,f(a)) and slope f′(a).
  4. "Evaluate limx→0sinxx" (know special limits)
  5. Show a stated identity for f′(x) with the requested reasoning.
  6. "Find the rate of change..." (real-world context requiring derivatives)
  7. Solve f′(x)=0 on the original domain. Later applications also check inputs in that domain where a derivative fails to exist.

12. Quick reference for the four formulas

THE BIG FOUR - MEMORIZE NOW!

ddx[sinx]=cosx ddx[cosx]=−sinx
ddx[ex]=ex ddx[lnx]=1x

Bonus: ddx[ax]=axlna | ddx[logax]=1xlna

Special Limits: limx→0sinxx=1 | limx→0ex−1x=1

Trigonometric inputs use radians. Natural and general logarithms have positive real arguments; general logarithm bases satisfy a>0, a≠1. Exponential bases are fixed and positive. Apply any composite-input formula only with its required inner derivative factor.

13. Connections and next study steps

Topic 2.7 connects to:

  • Topics 2.8 and 2.9: The product rule and quotient rule combine these formulas for products and quotients of differentiable functions.
  • Unit 3: The chain rule extends the formulas to compositions such as sin(3x) and ex2, with an inner derivative factor.
  • Unit 5: Analytical applications use these derivatives for graph behavior, critical points and optimization.
  • Unit 4: Motion problems with harmonic motion use trig derivatives
  • Unit 6: Integration connects these derivative formulas with antiderivatives and accumulation.
  • Unit 7: Exponential growth and decay differential equations use the proportional-rate property of exponential functions.
  • BC Only - Unit 10: Taylor series use repeated differentiation of these functions

Remember: The four basic identities are (sinx)′=cosx, (cosx)′=−sinx, (ex)′=ex and (lnx)′=1x. Use radians for the trigonometric formulas and x>0 for the real natural logarithm. Combine them with linearity and the power rule. Check the function's structure before using a product, quotient or chain rule, and recognise familiar derivative limits as another way to evaluate a limit.