Hello! Welcome to our next lesson in the world of differentiation.
In our previous lessons, we've built a solid toolkit for finding derivatives of polynomials, power functions, and all six trigonometric functions, frequently using the Product, Quotient, and Chain rules. Today, we'll add the final major pieces to that toolkit: exponential and logarithmic functions.
Your goal for this lesson is to learn how to find the derivatives of functions like , , and their variations with different bases, such as and . We will see that the number , often called Euler's number, possesses a truly remarkable property that makes it fundamental to calculus.
1. The Star of the Show: The Natural Exponential Function,
Before we can differentiate , it's helpful to understand what the number actually is and why it's so special. It's not just a random constant; it arises naturally in many areas, including finance, population growth, and, as we'll see, calculus itself.
To get some intuition for this, let's explore the origin of through the concept of continuous compounding.
What is e and ln(x)? (Euler's Number and The Natural Logarithm)
This first part of a video from Mathacy provides a great explanation of where the number e comes from by looking at a financial problem of maximizing compound interest. This provides excellent context for its importance.
Please watch the beginning of the video, from 0:04 to 3:30.
As the video shows, is the limit of as approaches infinity, approximately equal to 2.718. This 'natural' base has a unique and beautiful property when it comes to differentiation.
Let's see this property derived from first principles. The next part of the same video will show what happens when we try to differentiate a general exponential function , and why choosing the base is so convenient.
What is e and ln(x)? (Euler's Number and The Natural Logarithm)
Watch this segment to see the derivation of the derivative of an exponential function. It reveals that the derivative of a^x is proportional to a^x itself, and that for the special base e, the constant of proportionality is exactly 1.
Continue watching from 3:18 to 6:35.
This leads us to one of the most elegant results in all of calculus:
The derivative of is simply .
This means the value of the function at any point is equal to the gradient (slope) of its tangent line at that same point. It is its own derivative.
Of course, we'll often combine this with the Chain Rule. For a differentiable function :
Example: Find the derivative of .
- The outer function is , and the inner function is .
- The derivative of the inner function is .
- Applying the Chain Rule: .
2. The Inverse: The Natural Logarithmic Function,
Every exponential function has an inverse: a logarithmic function. The inverse of the natural exponential function is the natural logarithm, written as or, more commonly, .
Let's continue with the video to see this relationship and then derive the derivative of .
What is e and ln(x)? (Euler's Number and The Natural Logarithm)
This next segment introduces the natural logarithm as the inverse of e^x and then, using a similar first-principles approach, derives its derivative.
Please watch from 6:35 to 10:10. Pay attention to how properties of logarithms are used to simplify the expression within the limit.
The derivation reveals another simple and powerful rule:
The derivative of is .
When combined with the Chain Rule for a differentiable function :
This pattern—the derivative of the inside function over the original inside function—is extremely common.
Test your understanding!
Find the derivative of .
Show answer
Here, the inner function is , and its derivative is .
Using the formula , we get:
3. General Bases: and
What if the base is not ? How do we find the derivative of or ? We don't need to go back to first principles. Instead, we can use a clever trick to convert any base into base , allowing us to use the rules we just learned.
The key is to remember that . This allows us to rewrite any exponential or logarithmic function in terms of its natural counterpart.
To see how this is done and to get the final two rules, please read the following text.
4.6 Derivatives of Exponential & Logarithmic Functions
This resource from Simon Fraser University clearly explains how to find the derivatives for general exponential and logarithmic functions. It uses the exact 'base conversion' trick we just mentioned.
Read the section titled 'What about the functions a^x and log_a x?'. This starts after Theorem 4.58. Read from 'What about the functions...' down to just before 'Example 4.60'. Focus on how a^x is rewritten as e^(x ln a) and how log_a x is rewritten using the change of base formula.
Let's summarise the results from that reading:
1. Derivative of :
By rewriting and using the Chain Rule, we get:
Rule:
2. Derivative of :
By using the change of base formula , we get:
Rule:
4. Summary of Rules and Practice
We now have our four key rules for this family of functions. This summary image is a great reference.

The final step is to practice applying these rules in combination with the Product, Quotient, and Chain rules, just as we did with trigonometric functions.
The same web resource we used before has a fantastic collection of worked examples. Studying them is an efficient way to see these rules in action.
4.6 Derivatives of Exponential & Logarithmic Functions
Let's review some worked examples to see how these new rules are applied to more complex problems.
Please study the following examples from the resource: Example 4.61: f(x) = 2^(x^2). This shows the chain rule with a general base exponential. Example 4.64: R(q) = q / (10^q + 5). A good example of the quotient rule. Example 4.65: y = log_2(sqrt(x-5)). The chain rule with a general base logarithm. Example 4.66: g(t) = ln(t^2 * e^(-t^2)). This is a crucial example showing how simplifying with log properties before differentiating can save a lot of work.
Conclusion
Congratulations on completing your core toolkit for differentiation! You can now find the derivative of nearly any elementary function you're likely to encounter by combining the rules you've learned.
Key Takeaways:
- The natural exponential function is its own derivative: .
- The derivative of the natural logarithm is .
- For a general base , the derivatives are:
- You can derive the general base rules by converting to base and using the Chain Rule.
- Always be on the lookout for opportunities to use logarithm properties to simplify an expression before you differentiate.
In our next lesson, we will learn a new technique called implicit differentiation. This will allow us to find derivatives of equations that aren't written as explicit functions of , such as the equation of a circle .