AP Calculus AB and BC · Unit 2 · Topic 2.7

    2.7 Derivatives of cos x, sin x, eˣ, and ln x

    Reviewed by P V Satish, Senior Faculty of Science and Academic Consultant · PG Life Sciences, PGD Biotechnology · 20+ years teaching NEET and AP · Special interest in biotechnology, biochemistry and the basics of physics
    Updated

    In short

    Four derivatives to know by heart: ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x, ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin x, ddxex=ex\frac{d}{dx}e^x = e^x and ddxln⁡x=1x\frac{d}{dx}\ln x = \frac{1}{x} (for x>0x > 0). The trigonometric results rely on angles in radians and the special limits of Unit 1; ee is exactly the base whose exponential is its own derivative.

    What you need to know

    • State the derivatives of sin x, cos x, eˣ and ln x.
    • Explain how the sine and cosine derivatives follow from special limits.
    • Combine these derivatives with the basic rules.
    • Find slopes and tangent lines involving these functions.

    Sine and cosine

    ddxsin⁡x=cos⁡x,ddxcos⁡x=−sin⁡x\frac{d}{dx}\sin x = \cos x, \qquad \frac{d}{dx}\cos x = -\sin x

    Where do these come from? The difference quotient for sine uses the angle-addition formula: sin⁡(x+h)−sin⁡xh=sin⁡x⋅cos⁡h−1h+cos⁡x⋅sin⁡hh\frac{\sin(x+h) - \sin x}{h} = \sin x \cdot \frac{\cos h - 1}{h} + \cos x \cdot \frac{\sin h}{h}. From topic 1.8, cos⁡h−1h→0\frac{\cos h - 1}{h} \to 0 and sin⁡hh→1\frac{\sin h}{h} \to 1, leaving cos⁡x\cos x. The cosine result follows the same way.

    cos x is the slope of sin x: zero at the peaks and troughs of sin x, largest where sin x crosses the axis rising.

    The graph confirms it: sine is steepest upward at x=0x = 0, where cosine is 1, and flat at x=π2x = \frac{\pi}{2}, where cosine is 0. The minus sign for cosine's derivative matches the fact that cosine starts by falling.

    Exponential and logarithm

    ddxex=ex,ddxln⁡x=1x(x>0)\frac{d}{dx}e^x = e^x, \qquad \frac{d}{dx}\ln x = \frac{1}{x} \quad (x > 0)

    The number e≈2.71828e \approx 2.71828 is chosen precisely so that lim⁡h→0eh−1h=1\lim_{h \to 0} \frac{e^h - 1}{h} = 1 (topic 1.4's table). Then ex+h−exh=ex⋅eh−1h→ex\frac{e^{x+h} - e^x}{h} = e^x \cdot \frac{e^h - 1}{h} \to e^x: at every point, the slope of exe^x equals its height. For ln⁡x\ln x, the derivative 1x\frac{1}{x} follows from the inverse-function rule in topic 3.3; for now, note that the slope of ln⁡x\ln x is large near 0 and shrinks as xx grows, matching its flattening graph. It is also never zero, so ln⁡x\ln x has no horizontal tangents: it keeps rising forever, just more and more slowly.

    Examples: ddx(3sin⁡x−2ex)=3cos⁡x−2ex\frac{d}{dx}(3\sin x - 2e^x) = 3\cos x - 2e^x. The tangent to y=exy = e^x at x=0x = 0 is y=x+1y = x + 1. The tangent to y=ln⁡xy = \ln x at x=1x = 1 is y=x−1y = x - 1, because ln⁡1=0\ln 1 = 0 and the slope is 11=1\frac{1}{1} = 1.

    Using the four derivatives

    Evaluate trigonometric derivatives with exact values: the slope of y=cos⁡xy = \cos x at x=π3x = \frac{\pi}{3} is −sin⁡π3=−32-\sin\frac{\pi}{3} = -\frac{\sqrt{3}}{2}. Horizontal tangents of sin⁡x\sin x on [0,2π)[0, 2\pi) are where cos⁡x=0\cos x = 0: x=π2x = \frac{\pi}{2} and x=3π2x = \frac{3\pi}{2}.

    These four functions combine with every rule in the unit: sums now, products and quotients in topics 2.8 and 2.9, and compositions such as sin⁡(3x)\sin(3x) and ex2e^{x^2} with the chain rule in Unit 3.

    In context these derivatives describe real rates. If the depth of water at a harbour is D(t)=3+2sin⁡tD(t) = 3 + 2\sin t metres, with tt in hours, then D′(t)=2cos⁡tD'(t) = 2\cos t, so at t=1t = 1 the tide is rising at 2cos⁡1≈1.0812\cos 1 \approx 1.081 metres per hour. If a population is P(t)=100etP(t) = 100e^t, then P′(t)=100et=P(t)P'(t) = 100e^t = P(t): the growth rate always equals the current size, the defining feature of natural exponential growth.

    Key terms

    Derivative of sine
    ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x.
    Derivative of cosine
    ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin x.
    Natural exponential
    exe^x, the function equal to its own derivative.
    Natural logarithm
    ln⁡x\ln x, with derivative 1x\frac{1}{x} for x>0x > 0.

    Common mistakes

    • Writing ddxcos⁡x=sin⁡x\frac{d}{dx}\cos x = \sin x.

      The derivative of cosine is −sin⁡x-\sin x; the sign matters.

    • Applying the power rule to exe^x, giving xex−1xe^{x-1}.

      The power rule needs a constant exponent; ddxex=ex\frac{d}{dx}e^x = e^x.

    • Using degrees with these formulas.

      The formulas assume radians.

    How this topic is tested

    • Memorise the four derivatives cold; they appear in nearly every free-response question.
    • Use exact values of sine and cosine at standard angles.
    • Check signs on cosine derivatives by picturing the graph.

    Practice questions

    Original AP-style multiple-choice questions. Pick an answer to see the explanation.

    1. Question 1 · MP 1 · Implementing Mathematical Processes

      What is ddx(3sin⁡x−2ex)\frac{d}{dx}(3\sin x - 2e^x)?

    2. Question 2 · MP 1 · Implementing Mathematical Processes

      What is the tangent line to y=ln⁡xy = \ln x at x=1x = 1?

    3. Question 3 · MP 1 · Implementing Mathematical Processes

      What is the slope of y=cos⁡xy = \cos x at x=π3x = \frac{\pi}{3}?

    4. Question 4 · MP 2 · Connecting Representations

      On [0,2π)[0, 2\pi), where does y=sin⁡xy = \sin x have horizontal tangents?

    5. Question 5 · MP 1 · Implementing Mathematical Processes

      For f(x)=ln⁡xf(x) = \ln x, what is f′(4)f'(4)?

    Free-response practice

    Write your answer first, then mark it against the scoring guide.

    Free response (no calculator) · 4 points

    Let f(x)=2sin⁡x+cos⁡xf(x) = 2\sin x + \cos x for 0≤x≤2π0 \le x \le 2\pi.

    1. (a) Find f′(x)f'(x).
    2. (b) Write the equation of the tangent line to the graph of ff at x=π2x = \frac{\pi}{2}.
    3. (c) Find tan⁡x\tan x at any point where the graph of ff has a horizontal tangent.

    Connected topics

    Frequently asked questions

    Do I need to prove these derivatives?

    No, but understanding where they come from helps you remember them and the signs.

    What about other logarithms and exponentials?

    ddxax=axln⁡a\frac{d}{dx}a^x = a^x \ln a and ddxlog⁡ax=1xln⁡a\frac{d}{dx}\log_a x = \frac{1}{x \ln a}; these follow from the chain rule in Unit 3.

    Why is e so special?

    It is the only base whose exponential function has slope equal to its value everywhere, which makes it the natural choice in calculus.

    How this shows up on the exam42 multiple-choice and 6 free-response questions, with and without a calculator. See how the exam is laid out.

    Free Unit 2 cheat sheet

    Every topic in Unit 2: Differentiation: Definition and Fundamental Properties on a few printable pages: the core idea, key terms, the two traps students fall into and what the exam asks.

    We'll use your email to tell you when new AP Calculus AB practice material is ready. No spam, and we'll delete it if you ask.

    Full-length AP Calculus AB practice examsUnit 2 is one of 8 units on the exam. Two timed exams in the 2027 format (42 MCQ + 6 FRQ, with calculator and no-calculator parts), worked explanations, scoring guides and an estimated 1–5 score. $14.99 · try 5 questions free.

    All topics in Unit 2: Differentiation: Definition and Fundamental Properties

    1. 2.1 Defining Average and Instantaneous Rates of Change at a Point
    2. 2.2 Defining the Derivative of a Function and Using Derivative Notation
    3. 2.3 Estimating Derivatives of a Function at a Point
    4. 2.4 Connecting Differentiability and Continuity: Determining When Derivatives Do and Do Not Exist
    5. 2.5 Applying the Power Rule
    6. 2.6 Derivative Rules: Constant, Sum, Difference, and Constant Multiple
    7. 2.7 Derivatives of cos x, sin x, eˣ, and ln x
    8. 2.8 The Product Rule
    9. 2.9 The Quotient Rule
    10. 2.10 Finding the Derivatives of Tangent, Cotangent, Secant, and/or Cosecant Functions

    Other units in AP Calculus AB

    AP® is a trademark registered by College Board, which is not affiliated with, and does not endorse, this website.