Introduction
A function can contain several exponential terms at once. For example, one term may grow rapidly, another may decay, and a third may be constant. To differentiate such a function, treat each term carefully: identify its coefficient and exponent rate, differentiate it, and then add the resulting terms.
The main principle is simple, but accuracy depends on keeping distinct roles distinct. In \(Ce^{kx}\), the constant \(C\) multiplies the exponential, while \(k\) comes from differentiating the exponent. The coefficient remains in the derivative; the exponent rate supplies an additional factor.
The Term-by-Term Rule
Let \(C_1,\ldots,C_n\) and \(k_1,\ldots,k_n\) be real constants. A finite sum of natural exponential terms has the form \(f(x)=\sum_{j=1}^{n} C_j e^{k_jx}\). Its derivative is
For a fixed positive base \(a\), a finite sum of terms with that base has the form \(g(x)=\sum_{j=1}^{n} C_j a^{k_jx}\), and its derivative is
In each formula, the sum is finite, so every term can be differentiated separately and the results added. The constants \(C_j\), \(k_j\), and \(a\) do not vary with \(x\). The base in the second formula must satisfy \(a>0\), so that \(\ln(a)\) is defined. The formula also works for \(a=1\): then \(\ln(1)=0\), and each term \(C_j1^{k_jx}=C_j\) is constant.
These rules follow by combining the constant-multiple rule, the sum rule, and the chain rule with the exponential derivative formulas. In particular, the inside function \(kx\) has derivative \(k\). For a general base, differentiating \(a^u\) contributes the factor \(\ln(a)\), in addition to the derivative of \(u\).
Why Finite Sums Differentiate Term by Term
The reason the sum rule works can be seen directly from the definition of a derivative. Suppose \(f_1,\ldots,f_n\) are differentiable at \(x\), and let \(F(x)=f_1(x)+\cdots+f_n(x)\). For nonzero \(h\), its difference quotient is
Because the sum has finitely many terms, the limit of the sum is the sum of the limits whenever each limit exists. Therefore, taking \(h\) to zero gives the following complete justification:
Since \(F=\sum_{j=1}^{n}f_j\), expand both \(F(x+h)\) and \(F(x)\) as finite sums and subtract corresponding terms.
For \(h\ne 0\), division by \(h\) distributes across the sum, yielding \(\frac{F(x+h)-F(x)}{h}=\sum_{j=1}^{n}\frac{f_j(x+h)-f_j(x)}{h}\).
Each summand tends to \(f_j'(x)\), so \(F'(x)=\lim_{h\to0}\sum_{j=1}^{n}\frac{f_j(x+h)-f_j(x)}{h}=\sum_{j=1}^{n}f_j'(x)\). This proves the finite sum rule.
Applying this result to exponential terms lets us use their individual derivative formulas without needing a new rule for every possible sum.
Worked Examples
Worked Example: A Sum of Natural Exponentials
Differentiate \(f(x)=4e^{3x}-2e^{-x}+7e^x\).
Differentiate each term. For the first term, the coefficient is \(4\) and the exponent rate is \(3\):
For the second term, the coefficient is \(-2\) and the exponent rate is \(-1\):
For the third term, the exponent rate is \(1\):
Add the three derivatives:
Check: Applying the rule again to each original term gives \(12e^{3x}\), \(2e^{-x}\), and \(7e^x\), respectively. Their sum is exactly the stated derivative.
Worked Example: Terms with a General Base
Differentiate \(g(x)=5\cdot2^{3x}+3\cdot2^x-4\cdot2^{-2x}\).
Each term has base \(2\), so its derivative includes \(\ln(2)\). For the first term, the exponent rate is \(3\):
For the second term, the exponent rate is \(1\):
For the third term, both the coefficient and the exponent rate are negative, so their product is positive:
Thus,
Check: The term-by-term formula gives the same three contributions: \(5(3)\ln(2)2^{3x}\), \(3(1)\ln(2)2^x\), and \((-4)(-2)\ln(2)2^{-2x}\). Their sum is the displayed result.
Worked Example: Combining Terms That Represent the Same Function
Differentiate \(h(x)=2e^{2x}+3\cdot2^x+5\cdot4^{x/2}-e^x\), and simplify where possible.
First differentiate each term. The first and last terms use the natural exponential rule:
For \(3\cdot2^x\), the exponent rate is \(1\):
For \(5\cdot4^{x/2}\), the exponent rate is \(1/2\):
Since \(4^{x/2}=(\sqrt{4})^x=2^x\), and \(\ln(4)=\ln(2^2)=2\ln(2)\), the fourth term’s derivative becomes
Now combine the two derivatives that are multiples of \(2^x\):
Check: Differentiating the original four terms separately gives \(4e^{2x}\), \(3\ln(2)2^x\), \(5\ln(2)2^x\), and \(-e^x\). Adding the middle two coefficients gives \(8\ln(2)2^x\), agreeing with the simplified result.
When Can Terms Be Combined?
Terms can be combined by adding their coefficients only when they multiply the same function of \(x\). For example, \(3e^{2x}+5e^{2x}=8e^{2x}\). Likewise, the identity \(a^{kx}=e^{kx\ln(a)}\), valid for \(a>0\), can help determine whether terms written with different bases are the same exponential function.
For instance, \(4^{x/2}=2^x\), so those two expressions can be combined after rewriting one of them. In general, \(a^{kx}=e^{(k\ln a)x}\). Thus two positive-base exponential terms have the same \(x\)-dependent factor when their exponent rates in this natural-exponential form agree. Terms with different rates are not like terms and should remain separate.
A Common Coefficient and Chain-Rule Mistake
A frequent error is to keep the exponent rate but lose the coefficient, or to forget the rate entirely. For example, the following calculation is wrong:
The factor \(3\) correctly comes from differentiating \(3x\), but the original coefficient \(4\) still multiplies the result. The corrected calculation is
A related error for a general base is to omit \(\ln(a)\). The correct rule is \(\frac{d}{dx}(Ca^{kx})=Ck\ln(a)a^{kx}\), not merely \(Ck a^{kx}\). As a quick check, the general-base formula agrees with the natural-exponential formula when the base is \(e\), because \(\ln(e)=1\).
Why the Method Matters
Finite sums let a model represent several exponential contributions at once, such as components with different growth or decay rates. Differentiating each contribution separately shows how much each term contributes to the total rate of change. Keeping unlike terms separate preserves that information; combining genuinely identical terms can make a result easier to read without changing the function.
A reliable routine is to mark the coefficient and exponent rate in every term, apply the appropriate derivative rule, retain all signs and factors, and simplify only after the derivatives have been found. This routine also makes errors easier to locate: if one term is wrong, its coefficient or chain factor can be checked independently.
Check Your Understanding
For each question, keep coefficients and exponent rates distinct, and simplify only when the exponential factors match.
- Differentiate \(f(x)=6e^{-2x}+e^{4x}\).
- Differentiate \(g(x)=2\cdot3^{2x}-5\cdot3^{-x}\).
- In \(p(x)=4e^x+2\cdot4^{x/2}\), which terms can be combined after rewriting, and what is their combined expression?
- Explain why the derivative of \(Ce^{kx}\) contains the product \(Ck\).
- What additional factor appears when differentiating \(Ca^{kx}\) rather than \(Ce^{kx}\), and what condition on \(a\) ensures the formula is defined?