Scribe logoScribeNotes & practice
Sign inStart free
  1. Notes
  2. ›AP Calculus BC
  3. ›2 Differentiation: Definition and Fundamental Properties
  4. ›2.7 Derivatives of sin x, cos x, e^x and ln x

AP Calculus BC · Unit 2 · Differentiation: Definition and Fundamental Properties

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

Differentiate sine, cosine, exponential, and natural logarithm functions using basic derivative rules.

  • 2 min read
  • 4 parts
  • 10 questions
  • Draft
Start a Quick 5 on this topic→Jump to the 10 questions
1/4Sine and cosine have related derivative patterns
  1. 1Sine and cosine have related derivative patterns
  2. 2The exponential and natural logarithm have simple derivatives
  3. 3Basic rules combine these derivatives in one expression
  4. 4Evaluate the derivative to find a slope
  5. Check your recall
  6. Practice: 10 questions
1

Part 1 of 4: Sine and cosine have related derivative patterns

The sine derivative is cosine: ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x=\cos xdxd​sinx=cosx. The cosine derivative is negative sine: ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x=-\sin xdxd​cosx=−sinx. These formulas use angles measured in radians. At x=0x=0x=0, the sine graph rises with slope 1. The cosine graph is flat there, so its slope is 0.

Figure 1. Sine rises at zero, while cosine is flat there.

Common mistake

The derivative of cosine is not sine. Keep the negative sign: ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x=-\sin xdxd​cosx=−sinx.

Key terms · tap one for its definition

sine derivative

When angles are measured in radians, the derivative of sin⁡x\sin xsinx is cos⁡x\cos xcosx.

cosine derivative

When angles are measured in radians, the derivative of cos⁡x\cos xcosx is −sin⁡x-\sin x−sinx.

Part 1 done

2

Part 2 of 4: The exponential and natural logarithm have simple derivatives

The natural exponential function keeps its form when differentiated: ddxex=ex\frac{d}{dx}e^x=e^xdxd​ex=ex. Its slope is positive everywhere. The natural logarithm has derivative ddxln⁡x=1x\frac{d}{dx}\ln x=\frac{1}{x}dxd​lnx=x1​. This rule applies where x>0x>0x>0, the domain of ln⁡x\ln xlnx. For example, the slope of ln⁡x\ln xlnx at x=2x=2x=2 is 12\frac{1}{2}21​. Both derivatives describe how quickly the original function changes at each input.

Exam tip

When differentiating ln⁡x\ln xlnx, include its domain if the question asks where your result applies.

Key terms · tap one for its definition

natural exponential function

The function exe^xex equals its own derivative at every real input.

natural logarithm

The function ln⁡x\ln xlnx is defined for x>0x>0x>0 and has derivative 1x\frac{1}{x}x1​.

Part 2 done

Quick check

One question on the part you just read

Easy

Identify the derivative of g(x)=sin⁡xg(x)=\sin xg(x)=sinx when xxx is measured in radians.
Show answer and explanation

Answer: C · Worked explanation

The derivative of sin⁡x\sin xsinx is cos⁡x\cos xcosx when the input is measured in radians. The tempting choice −sin⁡x-\sin x−sinx is the derivative of cosine, not sine; the negative sign belongs to the cosine derivative.
3

Part 3 of 4: Basic rules combine these derivatives in one expression

Differentiate each term of a sum or difference separately. A constant multiple stays in front of its term's derivative. A constant term has derivative zero. For instance, if f(x)=3sin⁡x−2cos⁡x+5f(x)=3\sin x-2\cos x+5f(x)=3sinx−2cosx+5, then f′(x)=3cos⁡x+2sin⁡xf'(x)=3\cos x+2\sin xf′(x)=3cosx+2sinx. The positive sine term comes from differentiating −2cos⁡x-2\cos x−2cosx. These rules also work when an expression contains exe^xex or ln⁡x\ln xlnx. Apply the derivative formula to each function before simplifying the result.

Key terms · tap one for its definition

sum

The derivative of a sum equals the sum of its terms' derivatives.

constant multiple

The derivative of a constant times a function is that constant times the function's derivative.

Part 3 done

4

Part 4 of 4: Evaluate the derivative to find a slope

A derivative function gives the slope at each point in its domain. To find a particular slope, differentiate first and then substitute the input. Keep signs attached to each term while working. For ln⁡x\ln xlnx, check that the input is positive before evaluating. The following calculation combines three common derivatives and a constant multiple.

Worked example

Find a slope at zero

Find the slope of y=2sin⁡x−cos⁡x+exy=2\sin x-\cos x+e^xy=2sinx−cosx+ex at x=0x=0x=0, with xxx in radians.
  1. 1
    Differentiate each term: y′=2cos⁡x+sin⁡x+exy'=2\cos x+\sin x+e^xy′=2cosx+sinx+ex.
  2. 2
    Substitute x=0x=0x=0: y′(0)=2cos⁡0+sin⁡0+e0y'(0)=2\cos 0+\sin 0+e^0y′(0)=2cos0+sin0+e0.
  3. 3
    Evaluate: y′(0)=2(1)+0+1=3y'(0)=2(1)+0+1=3y′(0)=2(1)+0+1=3.

Answer: The slope at x=0x=0x=0 is 3.

Key term

derivative function

A derivative function gives the instantaneous slope of the original function at each input where the derivative exists.

Note read

Check your recall[12 marks]

5 written questions. Answer each one in your head or on paper, then open the mark scheme.

  1. 1.State[2 marks]

    State the derivatives of sin⁡x\sin xsinx and cos⁡x\cos xcosx.

    Show mark schemeHide mark scheme

    Model answer

    ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x=\cos xdxd​sinx=cosx and ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x=-\sin xdxd​cosx=−sinx.

    • 1 mark for stating that the derivative of sin⁡x\sin xsinx is cos⁡x\cos xcosx
    • 1 mark for stating that the derivative of cos⁡x\cos xcosx is −sin⁡x-\sin x−sinx
  2. 2.State[3 marks]

    State the derivatives of exe^xex and ln⁡x\ln xlnx, including the domain of ln⁡x\ln xlnx.

    Show mark schemeHide mark scheme

    Model answer

    ddxex=ex\frac{d}{dx}e^x=e^xdxd​ex=ex. For x>0x>0x>0, ddxln⁡x=1x\frac{d}{dx}\ln x=\frac{1}{x}dxd​lnx=x1​.

    • 1 mark for stating that the derivative of exe^xex is exe^xex
    • 1 mark for stating that the derivative of ln⁡x\ln xlnx is 1x\frac{1}{x}x1​
    • 1 mark for stating that ln⁡x\ln xlnx requires x>0x>0x>0
  3. 3.Find[3 marks]

    Find the derivative of f(x)=4sin⁡x−3cos⁡x+2ex−7f(x)=4\sin x-3\cos x+2e^x-7f(x)=4sinx−3cosx+2ex−7.

    Show mark schemeHide mark scheme

    Model answer

    f′(x)=4cos⁡x+3sin⁡x+2exf'(x)=4\cos x+3\sin x+2e^xf′(x)=4cosx+3sinx+2ex.

    • 1 mark for differentiating 4sin⁡x4\sin x4sinx to obtain 4cos⁡x4\cos x4cosx
    • 1 mark for differentiating −3cos⁡x-3\cos x−3cosx to obtain 3sin⁡x3\sin x3sinx
    • 1 mark for differentiating 2ex−72e^x-72ex−7 to obtain 2ex2e^x2ex
  4. 4.Calculate[2 marks]

    Calculate the slope of y=sin⁡x+ln⁡xy=\sin x+\ln xy=sinx+lnx at x=1x=1x=1.

    Show mark schemeHide mark scheme

    Model answer

    y′=cos⁡x+1xy'=\cos x+\frac{1}{x}y′=cosx+x1​, so the slope at x=1x=1x=1 is cos⁡1+1\cos 1+1cos1+1.

    • 1 mark for finding y′=cos⁡x+1xy'=\cos x+\frac{1}{x}y′=cosx+x1​
    • 1 mark for substituting x=1x=1x=1 to obtain cos⁡1+1\cos 1+1cos1+1
  5. 5.Explain[2 marks]

    Explain why the slope of y=cos⁡xy=\cos xy=cosx at x=0x=0x=0 is zero.

    Show mark schemeHide mark scheme

    Model answer

    The derivative of cos⁡x\cos xcosx is −sin⁡x-\sin x−sinx. At x=0x=0x=0, this equals −sin⁡0=0-\sin 0=0−sin0=0.

    • 1 mark for using the derivative −sin⁡x-\sin x−sinx
    • 1 mark for evaluating −sin⁡0-\sin 0−sin0 as zero

Practice this topic

10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)

0 right0 of 10 answered

Includes the quick check in the note above.

2.

Easy·Identify[1 mark]

At x=π2x=\frac{\pi}{2}x=2π​, what is the slope of y=cos⁡xy=\cos xy=cosx?
Show answer and explanation

Answer: A · Worked explanation

Since ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x=-\sin xdxd​cosx=−sinx, the slope at x=π2x=\frac{\pi}{2}x=2π​ is −sin⁡(π2)=−1-\sin(\frac{\pi}{2})=-1−sin(2π​)=−1. The choice 1 misses the negative sign in the cosine derivative.
3.

Easy·State[1 mark]

For which inputs is the derivative formula ddxln⁡x=1x\frac{d}{dx}\ln x=\frac{1}{x}dxd​lnx=x1​ valid?
Show answer and explanation

Answer: C · Worked explanation

The natural logarithm ln⁡x\ln xlnx is defined only for x>0x>0x>0, so its derivative formula applies on that domain. The choice x≠0x\ne 0x=0 incorrectly includes negative inputs, where the real-valued natural logarithm is not defined.
4.

Easy·Identify[1 mark]

Which expression is the derivative of 5ex−45e^x-45ex−4?
Show answer and explanation

Answer: C · Worked explanation

The derivative of exe^xex is exe^xex, so the constant multiple contributes 5ex5e^x5ex, while the constant -4 differentiates to zero. The tempting expression 5ex−45e^x-45ex−4 incorrectly leaves the constant term unchanged.
5.

Medium·Determine[2 marks]

A function is p(x)=2sin⁡x+3cos⁡xp(x)=2\sin x+3\cos xp(x)=2sinx+3cosx. Determine p′(π2)p'(\frac{\pi}{2})p′(2π​).
Show answer and explanation

Answer: B · Worked explanation

Differentiate each term to get p′(x)=2cos⁡x−3sin⁡xp'(x)=2\cos x-3\sin xp′(x)=2cosx−3sinx. Substituting x=π2x=\frac{\pi}{2}x=2π​ gives 2(0)−3(1)=−32(0)-3(1)=-32(0)−3(1)=−3. The tempting value 3 results from losing the negative sign in the derivative of the cosine term.
6.

Medium·Calculate[2 marks]

For q(x)=4ex+ln⁡xq(x)=4e^x+\ln xq(x)=4ex+lnx, calculate the slope at x=1x=1x=1.
Show answer and explanation

Answer: A · Worked explanation

Differentiate to obtain q′(x)=4ex+1xq'(x)=4e^x+\frac{1}{x}q′(x)=4ex+x1​. At x=1x=1x=1, the slope is 4e1+1=4e+14e^1+1=4e+14e1+1=4e+1. The tempting answer 4e4e4e omits the contribution 11=1\frac{1}{1}=111​=1 from the logarithm.
7.

Medium·Deduce[2 marks]

At an input a>0a>0a>0, the slope of r(x)=ln⁡xr(x)=\ln xr(x)=lnx is 15\frac{1}{5}51​. Deduce the value of aaa.
Show answer and explanation

Answer: D · Worked explanation

The derivative is r′(x)=1xr'(x)=\frac{1}{x}r′(x)=x1​, so the stated slope means 1a=15\frac{1}{a}=\frac{1}{5}a1​=51​. Therefore a=5a=5a=5, which satisfies the required positive domain. The value 15\frac{1}{5}51​ confuses the slope with the input.
8.

Medium·Determine[2 marks]

For s(x)=7−2cos⁡x+sin⁡xs(x)=7-2\cos x+\sin xs(x)=7−2cosx+sinx, determine s′(0)s'(0)s′(0).
Show answer and explanation

Answer: B · Worked explanation

Term-by-term differentiation gives s′(x)=2sin⁡x+cos⁡xs'(x)=2\sin x+\cos xs′(x)=2sinx+cosx, because the derivative of −2cos⁡x-2\cos x−2cosx is 2sin⁡x2\sin x2sinx. Thus s′(0)=2(0)+1=1s'(0)=2(0)+1=1s′(0)=2(0)+1=1. The tempting answer -1 comes from assigning the wrong sign to the derivative of the cosine term.
9.

Medium·Compare[2 marks]

Two functions are u(x)=sin⁡xu(x)=\sin xu(x)=sinx and v(x)=cos⁡xv(x)=\cos xv(x)=cosx. At x=πx=\pix=π, which statement correctly compares their slopes?
Show answer and explanation

Answer: C · Worked explanation

The derivatives are u′(x)=cos⁡xu'(x)=\cos xu′(x)=cosx and v′(x)=−sin⁡xv'(x)=-\sin xv′(x)=−sinx. Since cos⁡π=−1\cos\pi=-1cosπ=−1 and sin⁡π=0\sin\pi=0sinπ=0, their slopes are -1 and 0, respectively. The tempting option with u′(π)=1u'(\pi)=1u′(π)=1 uses the wrong value for cosine at π\piπ.
10.

Hard·Determine[2 marks]

A function is F(x)=asin⁡x+bcos⁡xF(x)=a\sin x+b\cos xF(x)=asinx+bcosx, where F(0)=3F(0)=3F(0)=3 and F′(0)=4F'(0)=4F′(0)=4. Determine F′(π2)F'(\frac{\pi}{2})F′(2π​).
Show answer and explanation

Answer: B · Worked explanation

From F(0)=asin⁡0+bcos⁡0F(0)=a\sin 0+b\cos 0F(0)=asin0+bcos0, we get b=3b=3b=3. Also, F′(x)=acos⁡x−bsin⁡xF'(x)=a\cos x-b\sin xF′(x)=acosx−bsinx, so F′(0)=a=4F'(0)=a=4F′(0)=a=4. Hence F′(π2)=4(0)−3(1)=−3F'(\frac{\pi}{2})=4(0)-3(1)=-3F′(2π​)=4(0)−3(1)=−3. The tempting value 3 loses the negative sign on the cosine coefficient in the derivative.

Keep going

Next topic2.8 Product rulePrevious topic2.6 Constant, sum, difference and constant multiple rules

More in Unit 2 · Differentiation: Definition and Fundamental Properties

  1. 2.2Definition of the derivativeNotes · 10 questions
  2. 2.3Estimating derivatives at a pointNotes · 10 questions
  3. 2.4Differentiability and continuityNotes · 10 questions
  4. 2.5Power ruleNotes · 10 questions
  5. 2.6Constant, sum, difference and constant multiple rulesNotes · 10 questions
  6. 2.7Derivatives of sin x, cos x, e^x and ln xNotes · 10 questions
  7. 2.8Product ruleNotes · 10 questions
  8. 2.9Quotient ruleNotes · 10 questions
  9. 2.10Derivatives of tan, cot, sec and cscNotes · 10 questions

All AP Calculus BC topics →

Draft: written by Scribe and checked automatically, not yet by a subject reviewer.

Practice questions are original, written by Scribe and checked automatically for correctness.

Topic codes follow the official numbering. Not endorsed by College Board or any exam board.

On this page

0/4 read

  1. 1Sine and cosine have related derivative patterns
  2. 2The exponential and natural logarithm have simple derivatives
  3. 3Basic rules combine these derivatives in one expression
  4. 4Evaluate the derivative to find a slope
  5. Check your recall
  6. Practice: 10 questions
All coursesScribeHow it worksPricingPrivacyTerms

Notes and questions are written by Scribe in our own words. Topic codes follow the official course numbering so you can find your place. Not produced or endorsed by the IB, College Board, AQA, OCR, Pearson Edexcel or any exam board.

© 2026 Scribe

Sine and cosine near zero

y-1.5-1-0.500.511.5-1-0.500.51x (radians)
  • sine
  • cosine
  • (0, 0)
  • (0, 1)