Differentiation Rules
Differentiation rules turn the derivative from a limit that must be recomputed every time into a practical calculus tool. The rules are shortcuts, but they are not arbitrary tricks. Each one follows from the limit definition and the algebra of functions.
The main task is to recognize structure. A complicated expression may be a sum, product, quotient, or composition of simpler functions. Once that structure is clear, the derivative is found by applying the appropriate rule in the correct order, while keeping domain restrictions and units in mind.
Definitions
The derivative of is
when the limit exists. Differentiation rules tell how to compute this limit for functions assembled from simpler pieces.
Basic rules:
The product rule is
The quotient rule is
The chain rule is
It says to differentiate the outside function while leaving the inside function in place, then multiply by the derivative of the inside function.
Common elementary derivatives include:
Inverse trigonometric derivatives also appear frequently:
These formulas are valid on their natural domains. The absolute value in the derivative of is a reminder that inverse-function derivatives often carry domain choices.
Key results
The power rule for positive integers follows from expanding :
Then
so the limit as is . The rule extends to many real exponents on their domains, with special care around roots and negative powers.
The product rule can be derived by adding and subtracting :
Taking the limit gives . This proof also explains why the derivative of a product is not simply .
The quotient rule can be obtained by writing and using the product and chain rules. The denominator appears because differentiating gives .
Trigonometric derivatives used throughout calculus include
Exponential and logarithmic derivatives are
The chain rule is the most important rule because every nontrivial formula is built from nested operations. If , the outside function is sine and the inside function is , so
If , the outside function is the tenth power and the inside function is , so
Logarithmic differentiation is a strategy, not a new rule. It is helpful when a product, quotient, or variable exponent would be messy to differentiate directly. Taking natural logs converts products to sums and powers to factors. For example, if for , then
Differentiating implicitly gives
so
The rule set should be used with simplification in mind. Sometimes it is easier to simplify before differentiating; for example, for . Sometimes simplifying first creates algebraic work or hides a domain restriction. The safest habit is to record the original domain, simplify where valid, and then state the derivative on that same domain.
A chain-rule proof sketch uses a small change in the inside variable. Let and . For a change , the inside changes by . When ,
As , differentiability of gives , and differentiability of gives . The limit becomes
This proof also explains the notation: the formal derivative is not simple fraction cancellation, but the notation records a true limiting relationship.
Higher derivatives are computed by applying the same rules repeatedly. If gives slope, then gives the rate of change of slope. In applications, is velocity and is acceleration. In graphing, helps determine concavity and inflection points. The same derivative rules therefore support both computation and interpretation.
A good workflow is to identify the outermost operation first. If the top-level operation is addition, differentiate term by term. If it is multiplication, use the product rule before simplifying. If it is a power of a nontrivial expression, use the chain rule. If several rules are needed, write intermediate labels such as and ; this reduces sign errors and makes the final expression easier to audit.
Domain awareness remains part of differentiation. The formula for a derivative is only meaningful where the original function is defined and where the derivative limit exists. For instance, is defined at , but its tangent is vertical there, so the derivative is not finite at . Similarly, is defined and continuous at , but the left and right derivative limits disagree. Rules speed up computation, but they do not erase the need to check exceptional points.
When answers will be used for graphing or optimization, leave factors visible when possible. A derivative such as immediately shows sign and zero information, while its expanded form hides that structure and makes later interval testing slower.
Clean form is part of correctness because it supports the next mathematical decision clearly afterward.
Visual
| Rule | Pattern | Derivative | Common cue |
|---|---|---|---|
| Constant multiple | Number times a function | ||
| Sum | Terms separated by plus or minus | ||
| Product | Two variable factors multiplied | ||
| Quotient | Variable expression in denominator | ||
| Chain | Function nested inside function |
Worked example 1: product and chain rules together
Problem. Differentiate
Method.
- Identify a product:
- Differentiate using the chain rule. The outside function is and the inside is :
- Differentiate :
- Apply the product rule:
- Substitute:
Checked answer. A factored equivalent form is
Both forms are correct.
Worked example 2: quotient rule with simplification
Problem. Differentiate
for .
Method.
- Identify numerator and denominator:
- Differentiate them:
- Apply the quotient rule:
- Substitute:
- Expand the numerator:
- Subtract:
Checked answer.
The derivative is valid only where the original function is defined, so .
As a check, rewrite the numerator by polynomial division:
Differentiating this equivalent form gives
which matches the quotient-rule result.
Code
def central_difference(f, x, h=1e-6):
return (f(x + h) - f(x - h)) / (2 * h)
def f(x):
return (x**2 + 3*x) / (x - 1)
def f_prime_formula(x):
return (x**2 - 2*x - 3) / ((x - 1)**2)
for x in [2, 3, 5]:
print(x, central_difference(f, x), f_prime_formula(x))
Common pitfalls
- Applying the power rule to a sum, such as treating as . Use the chain rule.
- Forgetting the second term in the product rule. The derivative of is not .
- Reversing signs in the quotient rule. Keep the order as denominator times derivative of numerator minus numerator times derivative of denominator.
- Dropping the inner derivative in the chain rule.
- Simplifying the original function across a restricted point and then forgetting the original domain.
- Mixing radians and degrees. The standard trigonometric derivatives assume radian measure.
- Applying a formula outside its domain. For example, requires , and has a one-sided derivative issue at .
- Expanding everything automatically. Factored derivatives often reveal zeros and signs more clearly in applications.
- Confusing with . The first is ; the second is .
Connections
- Derivatives and Rates: rules compute the derivative defined by a limit.
- Implicit Differentiation and Linearization: chain rule thinking supports implicit differentiation.
- Exponential Log and Inverse Functions: exponential, logarithmic, and inverse derivatives extend the rule set.
- Applications of Derivatives: derivative computations become graph and optimization tools.