Historical Context & Motivation
Calculus didn't appear overnight. For centuries, mathematicians struggled with a seemingly simple question: how do you measure the rate at which something changes at a single instant? The functions sin x, cos x, ex, and ln x kept showing up in problems about planetary motion, population growth, and sound waves. Finding their derivatives — the formulas that describe how these functions change — became one of the great achievements of early calculus. Understanding the history helps you see why these four results matter so much.
So what exactly are the derivatives of sin x, cos x, ex, and ln x, and why do they take the forms they do? That's the question this lesson answers, step by step.
Core Principles & Definitions
Before memorizing formulas, you need to understand what a derivative actually tells you. The derivative of a function at any point gives the instantaneous rate of change — the slope of the tangent line at that point. For functions like sin x and ex, these slopes follow elegant patterns that you can capture with simple formulas.
d/dx [sin x] = cos x
d/dx [cos x] = −sin x
d/dx [eˣ] = eˣ
d/dx [ln x] = 1/x
Visual Explanation — Functions and Their Derivatives
The best way to understand these derivative relationships is to see a function and its derivative plotted together. In the diagram below, you can observe how the slope of each original function (the solid curve) matches the value of its derivative (the dashed curve) at every point.
This visual pattern reveals a deep truth: the value of the derivative at any x-coordinate equals the slope of the original function at that same x-coordinate. When you see the sine curve at a hilltop, its slope is zero, and sure enough, the cosine curve passes through zero right there. When the sine curve is falling steeply, the cosine curve dips to its most negative value.
Mathematical Framework
Each of these four derivative formulas can be proven using the limit definition of the derivative: f′(x) = lim(h→0) [f(x + h) − f(x)] / h. Here we state each result precisely, define the variables, and note the domain.
Detailed Breakdown — How the Four Derivatives Compare
Seeing all four derivative rules side by side makes it easier to spot patterns and avoid mix-ups. The table below summarizes each function, its derivative, domain, and a quick memory tip. The diagram that follows shows the exponential and logarithm pair together.
| Function f(x) | Derivative f′(x) | Domain | Memory Tip |
|---|---|---|---|
| sin x | cos x | All real numbers | "Sine becomes cosine" — they cycle together. |
| cos x | −sin x | All real numbers | "Cosine picks up a negative." Don't forget the minus! |
| eˣ | eˣ | All real numbers | "e to the x is its own twin." It never changes. |
| ln x | 1/x | x > 0 | "Log drops down to one over x." Reciprocal of the input. |
Notice a beautiful pattern: ex and ln x are inverse functions (each undoes the other). Similarly, sin and cos are deeply linked — differentiating sin gives cos, and differentiating cos gives −sin. If you differentiate sin x four times, you cycle back to sin x. These cyclic and inverse relationships are why these four functions form a tightly connected family in calculus.
Worked Example
Let's put these derivative rules to work with a function that combines all four types. We'll find the derivative of f(x) = 3 sin x + 2ex − 5 cos x + 4 ln x. This will require the constant multiple rule and the sum/difference rule alongside our four formulas.
Common Errors & How to Avoid Them
These four derivative formulas are simple to state, but students frequently make errors when applying them. The table below lists the most common mistakes and provides strategies to avoid each one.
| Common Error | What Goes Wrong | How to Fix It |
|---|---|---|
| Missing the negative in d/dx [cos x] | Writing cos x → sin x instead of −sin x | Remember: "cosine carries a negative." Write −sin x immediately. |
| Using degrees instead of radians | The formulas give wrong slopes because they assume radian measure. | Always convert to radians. Set your calculator to radian mode. |
| Writing d/dx [eˣ] = xeˣ⁻¹ | Confusing the exponential rule with the power rule d/dx [xⁿ] = nxⁿ⁻¹. | The power rule is for x raised to a constant. eˣ has the variable in the exponent — totally different. |
| Writing d/dx [ln x] = 1/(ln x) | Confusing 1/x with 1/(ln x). | The derivative of ln x is 1/x, not 1 divided by ln x. They look similar but are completely different expressions. |
| Forgetting domain of ln x | Evaluating d/dx [ln x] at x = 0 or x < 0. | ln x and 1/x share the domain x > 0. Neither exists at x = 0. |
Connection to the Chain Rule & Beyond
So far, we've differentiated simple versions of these functions — sin x, cos x, ex, and ln x. But in real problems, you'll see things like sin(3x), e2x, or ln(x²). To handle those, you'll need the chain rule, which multiplies your derivative by the derivative of the inner function. The table below previews how these formulas extend.
| Basic Rule (This Lesson) | With Chain Rule (Coming Soon) |
|---|---|
| d/dx [sin x] = cos x | d/dx [sin(u)] = cos(u) × u′ |
| d/dx [cos x] = −sin x | d/dx [cos(u)] = −sin(u) × u′ |
| d/dx [eˣ] = eˣ | d/dx [eᵘ] = eᵘ × u′ |
| d/dx [ln x] = 1/x | d/dx [ln(u)] = (1/u) × u′ |
The formulas you learned today are the building blocks. Once you master the chain rule, you'll be able to differentiate nearly any function involving trig, exponentials, and logarithms. You'll also encounter implicit differentiation and logarithmic differentiation, both of which lean heavily on d/dx [ln x] = 1/x. Mastering these four basic rules now sets you up for success in every calculus topic ahead.
Practice Problems
Test your understanding of the four derivative formulas with these five problems, arranged from conceptual to challenging. Try each one on paper before reading the answer.
Lesson Summary
This lesson covered the four fundamental derivative formulas that every calculus student must know. The derivative of sin x is cos x, and the derivative of cos x is −sin x — with the crucial negative sign that many students forget. The derivative of eˣ is eˣ itself, making it the only function that equals its own derivative. Finally, the derivative of ln x is 1/x, valid only for x > 0. All trig derivatives require radian measure.
These formulas combine with the constant multiple rule and sum/difference rule to let you differentiate any linear combination of these functions. Do not confuse the exponential rule with the power rule — the power rule handles xⁿ while the exponential rule handles eˣ. Looking ahead, the chain rule will extend these formulas to handle compositions like sin(3x) and e2x. Master these four building blocks, and the rest of differential calculus becomes far more accessible.