AP-CALCBC-2.7

U2.7 Derivatives of sin, cos, eˣ, and ln x

Master the derivatives of sin x, cos x, eˣ, and ln x for AP Calculus BC — definitions, memory tricks, common errors, and worked exam problems.

What you'll do in this lesson

A voice-first session with the Crimsora tutor on U2.7 Derivatives of sin, cos, eˣ, and ln x, then targeted practice and FRQs — with the tutor adapting to where you get stuck.

What this lesson covers

Four functions show up on nearly every AP Calculus exam: sinx\sin x, cosx\cos x, exe^x, and lnx\ln x. Their derivatives are so common that you must recall them instantly, without deriving them each time. This lesson locks in the four rules, explains why each one makes sense, and shows how the exam disguises them inside larger problems.

You already know the power rule and linearity from earlier lessons, so here we simply add these transcendental building blocks. Once memorized, they combine with the product, quotient, and chain rules you meet next. Get these four solid now and the rest of Unit 2 becomes routine.

The Four Core Rules

Commit these to memory exactly as written:ddx[sinx]=cosx\frac{d}{dx}[\sin x] = \cos xddx[cosx]=sinx\frac{d}{dx}[\cos x] = -\sin xddx[ex]=ex\frac{d}{dx}[e^x] = e^xddx[lnx]=1x\frac{d}{dx}[\ln x] = \frac{1}{x}Notice the patterns. The derivative of sine is cosine with a positive sign, but the derivative of cosine picks up a negative sign. This minus sign is the single most common source of lost points, so overlearn it.

The function exe^x is special: it is its own derivative. No other basic function has this property, which is exactly why ee is the natural base. Every derivative of exe^x — first, second, hundredth — is still exe^x.

For lnx\ln x, the derivative 1x\frac{1}{x} is defined only for x>0x > 0, matching the domain of the natural log. The output is a rational function, not another logarithm, which surprises many students.
FunctionDerivative
sinx\sin xcosx\cos x
cosx\cos xsinx-\sin x
exe^xexe^x
lnx\ln x1x\frac{1}{x}
All four assume xx is measured in radians. Degree-based angles change the constant and are never used on the AP exam.

Why These Rules Are True

Understanding the source of each rule helps you remember it and defend it if asked.

For sine, apply the limit definition and the identity sin(x+h)=sinxcosh+cosxsinh\sin(x+h) = \sin x \cos h + \cos x \sin h. After rearranging you rely on the two fundamental limits limh0sinhh=1\lim_{h\to 0}\frac{\sin h}{h} = 1 and limh0cosh1h=0\lim_{h\to 0}\frac{\cos h - 1}{h} = 0. These squeeze the difference quotient down to exactly cosx\cos x. The same technique on cosx\cos x produces sinx-\sin x; the minus sign comes directly from the cosine angle-addition identity.

The rotation pattern is worth noting. Differentiating repeatedly cycles through four functions: sinxcosxsinxcosxsinx\sin x \to \cos x \to -\sin x \to -\cos x \to \sin x. Every four derivatives you return to the start. This cycle lets you find high-order derivatives quickly by taking the order modulo 4.

For exe^x, the defining feature of the natural exponential is that its rate of change equals its current value, so the slope at every point equals the height. For lnx\ln x, since lnx\ln x is the inverse of exe^x, implicit differentiation of y=lnxy = \ln x, i.e. ey=xe^y = x, gives eydydx=1e^y \frac{dy}{dx} = 1, so dydx=1ey=1x\frac{dy}{dx} = \frac{1}{e^y} = \frac{1}{x}. You are not required to reproduce these proofs on demand, but recognizing them cements the results.

Combining With Linearity and Constants

On the exam these four rarely appear alone. Most often you differentiate a sum with constant coefficients, using the linearity rule from U2.5:ddx[af(x)+bg(x)]=af(x)+bg(x)\frac{d}{dx}[a f(x) + b g(x)] = a f'(x) + b g'(x)For example, ddx[3sinx5ex+2lnx]=3cosx5ex+2x\frac{d}{dx}[3\sin x - 5e^x + 2\ln x] = 3\cos x - 5e^x + \frac{2}{x}. Constants multiply straight through; each term is handled separately.

Watch the boundaries with the chain rule, which comes later. In this lesson the argument is always plain xx. If you see sin(2x)\sin(2x) or e3xe^{3x}, those require the chain rule and are not yet in scope — but knowing the base derivatives is the prerequisite.

A frequent trap: ddx[ex]\frac{d}{dx}[e^x] is exe^x, but ddx[xe]\frac{d}{dx}[x^e] uses the power rule and equals exe1e x^{e-1}. The exponent being a variable versus a constant completely changes the rule. Similarly, ddx[lnx]=1x\frac{d}{dx}[\ln x]=\frac{1}{x} but ddx[xlnx]\frac{d}{dx}[x \ln x] needs the product rule.
ExpressionRule to useDerivative
exe^xexponentialexe^x
xex^epowerexe1e x^{e-1}
lnx\ln xlog1x\frac{1}{x}
x1x^{-1}powerx2-x^{-2}
Read each term carefully and identify which rule governs it before writing anything.

How the Exam Tests These

Multiple-choice questions often bury one of these derivatives inside a larger expression, then test whether you tracked signs and coefficients. A classic distractor gives +sinx+\sin x instead of sinx-\sin x for the derivative of cosine, or offers 1x\frac{1}{x} when the correct answer required the chain rule. Always double-check the cosine sign and confirm the argument is simply xx.

Another common item asks for a second or higher derivative. Because trig derivatives cycle, you can be asked for f(50)(x)f^{(50)}(x) where f(x)=sinxf(x)=\sin x. Divide 50 by 4 to get remainder 2, so f(50)(x)=sinxf^{(50)}(x) = -\sin x. For exe^x, every derivative stays exe^x, so higher-order questions there are freebies.

Free-response problems fold these into slope, tangent-line, and motion contexts. You may need f(a)f'(a) to build a tangent line, or evaluate a derivative at a specific xx such as ddx[lnx]\frac{d}{dx}[\ln x] at x=4x=4, giving 14\frac{1}{4}. Calculator-active sections still expect you to know the exact symbolic derivative before plugging in.

A reliable strategy: rewrite the function into clean terms, differentiate term by term, then simplify. Show each derivative explicitly, since AP readers award partial credit for a correctly stated derivative even if arithmetic slips afterward.

Key terms

Transcendental function.
A function that is not algebraic, such as sinx\sin x, cosx\cos x, exe^x, and lnx\ln x; the four functions whose derivatives this lesson memorizes.
Natural exponential function.
The function exe^x with base e2.718e\approx 2.718; it equals its own derivative, ddx[ex]=ex\frac{d}{dx}[e^x]=e^x.
Natural logarithm.
The inverse of exe^x, written lnx\ln x, defined for x>0x>0, with derivative 1x\frac{1}{x}.
Radian measure.
The angle unit required for all trig derivative rules; ddx[sinx]=cosx\frac{d}{dx}[\sin x]=\cos x holds only in radians.
Linearity of the derivative.
The property that ddx[af+bg]=af+bg\frac{d}{dx}[af+bg]=af'+bg', letting you differentiate sums term by term with constants pulled out.
Higher-order derivative.
A derivative taken more than once; for sinx\sin x and cosx\cos x the results cycle with period 4.
Difference quotient.
The expression f(x+h)f(x)h\frac{f(x+h)-f(x)}{h} whose limit defines the derivative and proves these four rules.

Worked example

Let f(x)=4sinx2cosx+3ex5lnxf(x) = 4\sin x - 2\cos x + 3e^x - 5\ln x. Find f(x)f'(x), then evaluate f(π2)f'\left(\frac{\pi}{2}\right) using eπ/24.810e^{\pi/2}\approx 4.810.
Differentiate term by term using linearity. Pull each constant through and apply the core rule to each function.

The derivative of 4sinx4\sin x is 4cosx4\cos x.

The derivative of 2cosx-2\cos x is 2(sinx)=2sinx-2(-\sin x) = 2\sin x. Be careful: the minus sign in the cosine rule combines with the coefficient's minus sign to give a positive result.

The derivative of 3ex3e^x is 3ex3e^x, since exe^x is its own derivative.

The derivative of 5lnx-5\ln x is 51x=5x-5\cdot\frac{1}{x} = -\frac{5}{x}.

Combining:f(x)=4cosx+2sinx+3ex5xf'(x) = 4\cos x + 2\sin x + 3e^x - \frac{5}{x}Now evaluate at x=π2x=\frac{\pi}{2}. We know cosπ2=0\cos\frac{\pi}{2}=0 and sinπ2=1\sin\frac{\pi}{2}=1.f(π2)=4(0)+2(1)+3eπ/25π/2f'\left(\tfrac{\pi}{2}\right) = 4(0) + 2(1) + 3e^{\pi/2} - \frac{5}{\pi/2}That is 0+2+3(4.810)10π0 + 2 + 3(4.810) - \frac{10}{\pi}. Compute: 3(4.810)=14.4303(4.810)=14.430 and 10π3.183\frac{10}{\pi}\approx 3.183.f(π2)2+14.4303.183=13.247f'\left(\tfrac{\pi}{2}\right) \approx 2 + 14.430 - 3.183 = 13.247So the slope of ff at x=π2x=\frac{\pi}{2} is about 13.2513.25.

Practice questions

What is ddx[2excosx]\frac{d}{dx}\left[2e^x - \cos x\right]?
  1. 2ex+sinx2e^x + \sin x
  2. 2exsinx2e^x - \sin x
  3. 2xex1+sinx2xe^{x-1} + \sin x
  4. 2ex1x2e^x - \frac{1}{x}

Answer: 2ex+sinx2e^x + \sin x

The derivative of 2ex2e^x is 2ex2e^x because exe^x is its own derivative. The derivative of cosx\cos x is sinx-\sin x, so the derivative of cosx-\cos x is (sinx)=+sinx-(-\sin x)=+\sin x. Combining gives 2ex+sinx2e^x+\sin x. Choice with sinx-\sin x drops the double-negative; the xe1x^{e-1} choice wrongly uses the power rule on exe^x.
If f(x)=sinxf(x)=\sin x, find f(19)(x)f^{(19)}(x), the nineteenth derivative.

Answer: f(19)(x)=cosxf^{(19)}(x) = -\cos x

Derivatives of sinx\sin x cycle every four steps: sinxcosxsinxcosxsinx\sin x \to \cos x \to -\sin x \to -\cos x \to \sin x. Divide 19 by 4 to get remainder 3. A remainder of 1 gives cosx\cos x, 2 gives sinx-\sin x, 3 gives cosx-\cos x, and 0 returns to sinx\sin x. Since the remainder is 3, f(19)(x)=cosxf^{(19)}(x)=-\cos x.
Find the equation of the tangent line to g(x)=lnxg(x)=\ln x at x=ex=e.

Answer: y=1e(xe)+1y = \frac{1}{e}(x-e) + 1, equivalently y=xey = \frac{x}{e}

First, g(e)=lne=1g(e)=\ln e = 1, so the point is (e,1)(e,1). The derivative is g(x)=1xg'(x)=\frac{1}{x}, so the slope at x=ex=e is g(e)=1eg'(e)=\frac{1}{e}. Point-slope form gives y1=1e(xe)y-1=\frac{1}{e}(x-e). Distributing, y=xe1+1=xey = \frac{x}{e} - 1 + 1 = \frac{x}{e}, a clean simplification.

FAQ

Why is the derivative of cosine negative but sine positive?
It comes from the angle-addition identities used in the limit definition. When you expand cos(x+h)\cos(x+h), the leading surviving term produces sinx-\sin x, while expanding sin(x+h)\sin(x+h) produces +cosx+\cos x. Graphically, cosine is decreasing where sine is positive, which the minus sign reflects.
Do these derivative rules work if the angle is in degrees?
No. The rule ddx[sinx]=cosx\frac{d}{dx}[\sin x]=\cos x only holds in radians, because the proof relies on limh0sinhh=1\lim_{h\to 0}\frac{\sin h}{h}=1, which is true only for radian measure. The AP exam always uses radians for calculus.
How is ddx[ex]\frac{d}{dx}[e^x] different from ddx[xe]\frac{d}{dx}[x^e]?
They use different rules. In exe^x the base is constant and the exponent is the variable, so its derivative is exe^x. In xex^e the base is the variable and the exponent is a constant, so you apply the power rule to get exe1ex^{e-1}. Read which part is the variable before choosing a rule.
Why is the domain of the derivative of ln x restricted to positive numbers?
Because lnx\ln x itself is only defined for x>0x>0, its derivative 1x\frac{1}{x} is also only meaningful there. Even though 1x\frac{1}{x} is defined for negative xx, that value does not represent the slope of lnx\ln x, which does not exist for x0x\le 0.

Learn this with a teacher, not a page

The Crimsora tutor teaches U2.7 Derivatives of sin, cos, eˣ, and ln x live — explaining on a whiteboard, asking you questions, and adapting to where you get stuck.