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 22 October 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 FUNCTION

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.
  • For example, the derivative at zero is cos0=1, while at π it is cosπ=−1. The first is increasing; the second is decreasing at that 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.

Proof Sketch (From Limit Definition):

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

Examples:

  • ddx[sinx]=cosx
  • ddx[5sinx]=5cosx
  • ddx[sinx+x2]=cosx+2x

DERIVATIVE 2: COSINE FUNCTION

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. This is a local sign explanation, not a claim that cosine decreases everywhere.
  • 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.

Proof Sketch:

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

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

Examples:

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

DERIVATIVE 3: NATURAL EXPONENTIAL FUNCTION

ddx[ex]=ex

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

Why e is Special:

  • 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 is WHY we use e as the "natural" exponential base
  • The function ex grows at a rate proportional to its current value

Proof Sketch:

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.

Examples:

  • 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: NATURAL LOGARITHM FUNCTION

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—ln grows slowly)
  • As x→0+, 1x→∞ (derivative blows up—steep near origin)
  • The derivative is always positive for x>0 (ln is always increasing)

Proof Sketch:

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✓

Examples:

  • ddx[lnx]=1x
  • ddx[2lnx]=2x
  • ddx[lnx+x]=1x+1

For Other Bases (General Logarithm):

ddx[logax]=1xlna

Example: ddx[log10x]=1xln10

Complete the trigonometric proof steps

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

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

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.

Degrees describe a differently scaled input

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

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: Basic Trig Combination

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

Solution:

  1. Apply sum/difference rule: Differentiate term-by-term
  2. First term: ddx[3sinx]=3cosx
  3. Second term: ddx[−2cosx]=−2(−sinx)=2sinx
  4. Combine: f′(x)=3cosx+2sinx

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

Example 2: Exponential and Polynomial

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

Solution:

  1. Term 1: ddx[5ex]=5ex (exponential stays same!)
  2. Term 2: ddx[2x3]=6x2 (power rule)
  3. Term 3: ddx[−7]=0 (constant rule)
  4. Combine: g′(x)=5ex+6x2

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

Example 3: Natural Logarithm with Polynomial

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

Solution:

  1. Rewrite: y=4lnx+x2−x−1
  2. Term 1: ddx[4lnx]=4x
  3. Term 2: ddx[x2]=2x
  4. Term 3: ddx[−x−1]=−(−1)x−2=x−2=1x2
  5. Combine: dydx=4x+2x+1x2

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

Example 4: All Four Functions Together

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

Solution:

  1. Differentiate each term:
    • ddx[sinx]=cosx
    • ddx[cosx]=−sinx
    • ddx[ex]=ex
    • ddx[lnx]=1x
  2. Combine: h′(x)=cosx−sinx+ex+1x

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

Example 5: Evaluating at a Specific Point

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

Solution:

  1. Find derivative: f′(x)=2cosx+ex
  2. 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: Mixed with Fractions

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

Solution:

  1. Rewrite: k(x)=12sinx+13ex−14lnx
  2. Differentiate term-by-term:
    k′(x)=12cosx+13ex−14·1x
  3. 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

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

Examples:

  • ddx[2x]=2xln2
  • ddx[10x]=10xln10
  • ddx[3x]=3xln3

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

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

Examples:

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

The change-of-base identity gives logax=lnxlna. 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.

Sine at a nonzero input

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

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

Cosine at zero

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

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

The natural exponential at one

limx→1ex−ex−1=e.

The subtracted value is e1=e. This is the derivative value at one, not at zero.

The natural logarithm at one

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

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

Check a scaled denominator

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

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.

8. Connect derivative values with tangent lines and rates

Reuse Example 5, f(x)=2sinx+ex. Its derivative is f′(x)=2cosx+ex. At zero, the function and derivative have different values:

f(0)=2sin0+e0=1,f′(0)=2cos0+e0=3.
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.

For g(x)=lnx at one, g(1)=0 and g′(1)=1, so the tangent is y=x−1. At negative inputs, the real function lnx has no value or tangent even though the algebraic expression 1x is real there.

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
f′(x)=4cosx+3(−sinx)=4cosx−3sinx.

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
g′(x)=ex−4x+0=ex−4x.

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
h′(x)=1x−1x2+12x,x>0.

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
k′(x)=−(−sinx)+cosx+ex.
k′(x)=sinx+cosx+ex.

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
f′(x)=2xln2+1xln2,x>0.

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
f′(x)=cosx−sinx.
f′(π2)=cos(π2)−sin(π2)=0−1=−1.

The requested value is a derivative, not the function value at that 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 ln functions

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.

Independent NUM8ERS study resource. AP® is a trademark of the College Board, which does not endorse this resource.

Back to top ↑