Finding derivatives of functions by using the definition of the derivative can be a lengthy and, for certain functions, a rather challenging process. For example, previously we found that\[\dfrac{d}{dx}\left(\sqrt{x}\right)=\dfrac{1}{2\sqrt{x}} \nonumber \]by using a process that involved multiplying an expression by a conjugate before evaluating a limit.
The process that we could use to evaluate \(\frac{d}{dx}\left(\sqrt[3]{x}\right)\) using the definition, while similar, is more complicated.
In this section, we develop rules for finding derivatives that allow us to bypass this process. We begin with the basics.
The Basic Rules
The functions \(f(x)=c\) and \(g(x)=x^n\) where \(n\) is a positive integer are the building blocks from which all polynomials and rational functions are constructed. To find derivatives of polynomials and rational functions efficiently without resorting to the limit definition of the derivative, we must first develop formulas for differentiating these basic functions.
The Constant Rule
We first apply the limit definition of the derivative to find the derivative of the constant function, \(f(x)=c\). For this function, both \(f(x)=c\) and \(f(x+h)=c\), so we obtain the following result:\[\begin{array}{rclcl}
f^{\prime}(x) & = & \displaystyle \lim_{h \to 0} \dfrac{f(x+h)−f(x)}{h} & & \\[16pt]
& = & \displaystyle \lim_{h \to 0}\dfrac{c−c}{h} & & \\[16pt]
& = & \displaystyle \lim_{h \to 0}\dfrac{0}{h} & & \\[16pt]
& = & \displaystyle \lim_{h \to 0}0 & \quad & \left( \text{Before evaluating the limit, perform any simple arithmetic. Zero over something nonzero is zero.} \right)\\[16pt]
& = & 0. & \\[16pt]
\end{array}\nonumber\]The rule for differentiating constant functions is called the Constant Rule. It states that the derivative of a constant function is zero; that is, since a constant function is a horizontal line, the slope, or the rate of change, of a constant function is \(0\). We restate this rule in the following theorem.
Theorem: The Constant Rule
Let \(c\) be a constant. If \(f(x)=c\), then \(f^{\prime}(x)=0\).
Alternatively, we may express this rule as\[\dfrac{d}{dx}(c)=0. \nonumber \]
Example \(\PageIndex{1}\): Applying the Constant Rule
Find the derivative of \(f(x)=8\).
- Solution
-
This is just a one-step application of the rule: \(f^{\prime}(x)=0\).
Checkpoint \(\PageIndex{1}\)
Find the derivative of \(g(x)=−3\).
- Answer
-
0
The Power Rule
During our exploration of the limit definition of the derivative, we showed that\[\dfrac{d}{dx}\left(x^2\right)=2x\quad\text{ and }\quad\dfrac{d}{dx}\left(x^{1/2}\right)=\dfrac{1}{2}x^{−1/2}. \nonumber \]At this point, you might see a pattern beginning to develop for derivatives of the form \(\frac{d}{dx}\left(x^n\right)\). We continue our examination of derivative formulas by differentiating power functions of the form \(f(x)=x^n\) where \(n\) is a positive integer. We develop formulas for derivatives of this type of function in stages, beginning with positive integer powers. Before stating and proving the general rule for derivatives of functions of this form, we take a look at a specific case, \(\frac{d}{dx}(x^3)\), as the technique used in this case is essentially the same as the technique used to prove the general case.
Example \(\PageIndex{2}\): Differentiating \(x^3\)
Find \(\frac{d}{dx}\left(x^3\right)\).
- Solution
-
\[ \begin{array}{rclcl}
\displaystyle \dfrac{d}{dx}\left(x^3\right) & = & \displaystyle \lim_{h \to 0}\dfrac{(x+h)^3−x^3}{h} & & \\[16pt]
& = & \displaystyle \lim_{h \to 0}\dfrac{x^3+3x^2h+3xh^2+h^3−x^3}{h} & \quad & \left( \text{distributing} \right) \\[16pt]
& = & \displaystyle \lim_{h \to 0}\dfrac{3x^2h+3xh^2+h^3}{h} & \quad & \left( \text{combining like terms} \right) \\[16pt]
& = & \displaystyle \lim_{h \to 0}\dfrac{h(3x^2+3xh+h^2)}{h} & \quad & \left( \text{factoring} \right) \\[16pt]
& = & \displaystyle \lim_{h \to 0}\dfrac{\cancel{h}(3x^2+3xh+h^2)}{\cancelto{1}{h}} & \quad & \left( \text{canceling like factors} \right) \\[16pt]
& = & \displaystyle \lim_{h \to 0}(3x^2+3xh+h^2) & & \\[16pt]
& \overset{\text{D.S.}}{=} & 3x^2 & & \\[16pt]
\end{array} \nonumber \]
Checkpoint \(\PageIndex{2}\)
Find \(\frac{d}{dx}\left(x^4\right)\).
- Answer
-
\(\frac{d}{dx}\left(x^4\right) = 4x^3\)
As we shall see, the procedure for finding the derivative of the general form \(f(x)=x^n\) is very similar. Although it is often unwise to draw general conclusions from specific examples, we note that when we differentiate \(f(x)=x^3\), the derivative becomes the product of the original power and \(x\) to a power one less than it was before. A lot of students think of it as follows:
When you take the derivative of \(x^n\), you move the power to the front and subtract \(1\) from the exponent.
The following theorem states that the Power Rule holds for all positive integer powers of \(x\).
Theorem: The Power Rule (positive integer exponents only)
Let \(n\) be a positive integer. If \(f(x)=x^n\), then\[f^{\prime}(x)=nx^{n−1}. \nonumber \]Alternatively, we may express this rule as\[\dfrac{d}{dx}\left(x^n\right)=nx^{n−1.} \nonumber \]
- Proof
-
For \(f(x)=x^n\) where \(n\) is a positive integer, we have\[f^{\prime}(x)=\lim_{h \to 0}\dfrac{(x+h)^n−x^n}{h}. \nonumber \]Since\[ (x+h)^n=x^n+nx^{n−1}h+\binom{n}{2}x^{n−2}h^2+\binom{n}{3}x^{n−3}h^3+ \ldots +nxh^{n−1}+h^n, \nonumber \]we see that\[ (x+h)^n−x^n=nx^{n−1}h+\binom{n}{2}x^{n−2}h^2+\binom{n}{3}x^{n−3}h^3+ \ldots +nxh^{n−1}+h^n. \nonumber \]Next, divide both sides by h:\[ \dfrac{(x+h)^n−x^n}{h}=\dfrac{nx^{n−1}h+\binom{n}{2}x^{n−2}h^2+\binom{n}{3}x^{n−3}h^3+ \ldots +nxh^{n−1}+h^n}{h}. \nonumber \]Thus,\[ \dfrac{(x+h)^n−x^n}{h}=nx^{n−1}+\binom{n}{2}x^{n−2}h+\binom{n}{3}x^{n−3}h^2+ \ldots +nxh^{n−2}+h^{n−1}. \nonumber \]Finally,\[ \begin{array}{rcl}
f^{\prime}(x) & = & \displaystyle \lim_{h \to 0}(nx^{n−1}+\binom{n}{2}x^{n−2}h+\binom{n}{3}x^{n−3}h^2+ \ldots +nxh^{n−2}+h^{n-1}) \\[16pt]
& = & nx^{n−1}. \\[16pt]
\end{array} \nonumber \]
Q.E.D.
Example \(\PageIndex{3}\): Applying the Power Rule
Find the derivative of the function \(f(x)=x^{10}\) by applying the Power Rule.
- Solution
-
Using the Power Rule with \(n=10\), we obtain\[f^{\prime}(x)=10x^{10−1}=10x^9. \nonumber \]
Checkpoint \(\PageIndex{3}\)
Find the derivative of \(f(x)=x^7\).
- Answer
-
\(f^{\prime}(x)=7x^6\)
This theorem holds for all powers (not just positive integers). Despite being unable to prove it at this point in the course, we allow ourselves the luxury of using it.
Theorem: The Power Rule (General Version)
Let \(n \in \mathbb{R}\). If \(f(x)=x^n\),then\[\dfrac{d}{dx}\left(x^n\right)=nx^{n−1.} \nonumber \]
Caution
As a reminder, we have yet to prove the previous theorem. We are allowing ourselves the ability to use it for now. Still, I promise this fact will be proved rigorously when we have better mathematical "technology."
Example \(\PageIndex{4}\): Using the Extended Power Rule
Find \(\frac{d}{dx}(x^{−4})\).
- Solution
-
By applying the extended Power Rule with \(k=−4\), we obtain\[\dfrac{d}{dx}(x^{−4})=−4x^{−4−1}=−4x^{−5}.\nonumber \]
Example \(\PageIndex{5}\): Using the Extended Power Rule and the Constant Multiple Rule
Use the extended Power Rule and the Constant Multiple Rule to find \(f(x)=\frac{6}{x^2}\).
- Solution
-
It may seem tempting to use the Quotient Rule to find this derivative, and it would undoubtedly be correct. However, it is far easier to differentiate this function by first rewriting it as \(f(x)=6x^{−2}\).\[\begin{array}{rclcl}
f^{\prime}(x) & = & \dfrac{d}{dx}\left(\dfrac{6}{x^2}\right) & \\[16pt]
& = & \dfrac{d}{dx}\left(6x^{−2}\right) & \quad & \left( \text{Laws of Exponents} \right) \\[16pt]
& = & 6\dfrac{d}{dx}\left(x^{−2}\right) & \quad & \left( \text{Constant Multiple Rule} \right) \\[16pt]
& = & 6(−2x^{−3}) & \quad & \left( \text{Power Rule} \right) \\[16pt]
& = & −12x^{−3} & \quad & \left( \text{simplifying} \right) \\[16pt]
\end{array} \nonumber\]
Checkpoint \(\PageIndex{5}\)
Find the derivative of \(g(x)=\frac{1}{x^7}\) using the extended Power Rule.
- Answer
-
\(g^{\prime}(x)=−7x^{−8}\).
Example \(\PageIndex{6}\): Applying the General Power Rule
Differentiate each of the following functions.
- \( f(x) = \frac{1}{x^{18}}\)
- \(g(x) = \sqrt[5]{x^3} \)
- Solutions
-
- Following the Mathematical Mantra, we handle any Algebra before performing Calculus. This function can be rewritten as \(f(x) = x^{-18}\). Applying the General Power Rule, we get\[ \dfrac{d}{dx} [f(x)] = -18 x^{-18 - 1} = -18 x^{-19} \nonumber \]
- Again, following the Mathematical Mantra, we simplify this function first.\[ \dfrac{d}{dx}\left( \sqrt[5]{x^3} \right) = \dfrac{d}{dx} \left( x^{3/5} \right) = \dfrac{3}{5} x^{3/5 - 1} = \dfrac{3}{5} x^{-2/5} \nonumber \]
Before stepping into the next subsection, a critical warning needs to be issued.
Caution
The Power Rule only applies to algebraic functions of the form \(y = x^n\). It does not apply to functions that raise a constant to a variable power, such as \(f(x)=3^x\). That is,\[\dfrac{d}{dx} \left( 3^x \right) \ne x 3^{x - 1}.\nonumber\]
The Sum, Difference, and Constant Multiple Rules
We find our next differentiation rules by looking at derivatives of sums, differences, and constant multiples of functions. Just as when we work with functions, there are rules that make it easier to find derivatives of functions that we add, subtract, or multiply by a constant. These rules are summarized in the following theorem.
Theorem: Sum, Difference, and Constant Multiple Rules
Let \(f(x)\) and \(g(x)\) be differentiable functions and \(k\) be a constant. Then, each of the following equations holds.
Sum Rule. The derivative of the sum of a function \(f\) and a function \(g\) is the same as the sum of the derivative of \(f\) and the derivative of \(g\).\[\dfrac{d}{dx}\big(f(x)+g(x)\big)=\dfrac{d}{dx}\big(f(x)\big)+\dfrac{d}{dx}\big(g(x)\big); \nonumber \]that is,\[\text{for }s(x)=f(x)+g(x),\quad s^{\prime}(x)=f^{\prime}(x)+g^{\prime}(x). \nonumber \]
Difference Rule. The derivative of the difference of a function \(f\) and a function \(g\) is the same as the difference of the derivative of \(f\) and the derivative of \(g\) :\[\dfrac{d}{dx}(f(x)−g(x))=\dfrac{d}{dx}(f(x))−\dfrac{d}{dx}(g(x)); \nonumber \]that is,\[\text{for }d(x)=f(x)−g(x),\quad d^{\prime}(x)=f^{\prime}(x)−g^{\prime}(x). \nonumber \]
Constant Multiple Rule. The derivative of a constant \(k\) multiplied by a function \(f\) is the same as the constant multiplied by the derivative:\[\dfrac{d}{dx}\big(kf(x)\big)=k\dfrac{d}{dx}\big(f(x)\big); \nonumber \]that is,\[\text{for }m(x)=kf(x),\quad m^{\prime}(x)=kf^{\prime}(x). \nonumber \]
- Proof
-
We provide only the proof of the Sum Rule here. The rest follow similarly.
For differentiable functions \(f(x)\) and \(g(x)\), we set \(s(x)=f(x)+g(x)\). Using the limit definition of the derivative we have\[s^{\prime}(x)=\lim_{h \to 0}\dfrac{s(x+h)−s(x)}{h}.\nonumber \]By substituting \(s(x+h)=f(x+h)+g(x+h)\) and \(s(x)=f(x)+g(x),\) we obtain\[s^{\prime}(x)=\lim_{h \to 0}\dfrac{\big(f(x+h)+g(x+h)\big)−\big(f(x)+g(x)\big)}{h}.\nonumber \]Rearranging and regrouping the terms, we have\[s^{\prime}(x)=\lim_{h \to 0}\left(\dfrac{f(x+h)−f(x)}{h}+\dfrac{g(x+h)−g(x)}{h}\right).\nonumber \]We now apply the Sum Law for limits and the definition of the derivative to obtain\[s^{\prime}(x)=\lim_{h \to 0}\dfrac{f(x+h)−f(x)}{h}+\lim_{h \to 0}\dfrac{g(x+h)−g(x)}{h}=f^{\prime}(x)+g^{\prime}(x).\nonumber \]
Q.E.D.
Example \(\PageIndex{7}\): Applying the Constant Multiple Rule
Find the derivative of \(g(x)=3x^2\) and compare it to the derivative of \(f(x)=x^2\).
- Solution
-
We use the Power Rule directly:\[g^{\prime}(x)=\dfrac{d}{dx}(3x^2)=3\dfrac{d}{dx}(x^2)=3(2x)=6x.\nonumber \]Since \(f(x)=x^2\) has derivative \(f^{\prime}(x)=2x\), we see that the derivative of \(g(x)\) is 3 times the derivative of \(f(x)\). This relationship is illustrated in Figure \(\PageIndex{1}\).

Figure \(\PageIndex{1}\): The derivative of \(g(x)\) is 3 times the derivative of \(f(x)\).
Example \(\PageIndex{8}\): Applying Basic Derivative Rules
Find the derivative of \(f(x)=2x^5 +7\).
- Solution
-
We begin by applying the rule for differentiating the sum of two functions, followed by the rules for differentiating constant multiples of functions and the rule for differentiating powers. To better understand the sequence in which the differentiation rules are applied, we use Leibniz notation throughout the solution:\[\begin{array}{rclcl}
f^{\prime}(x) & = & \dfrac{d}{dx}\left(2x^5+7\right) & & \\[16pt]
& = & \dfrac{d}{dx}(2x^5)+\dfrac{d}{dx}(7) & \quad & \left( \text{Sum Rule} \right) \\[16pt]
& = & 2\dfrac{d}{dx}(x^5)+\dfrac{d}{dx}(7) & \quad & \left( \text{Constant Multiple Rule} \right) \\[16pt]
& = & 2(5x^4)+0 & \quad & \left( \text{Power and Constant Rules}\right) \\[16pt]
& = & 10x^4 & \quad & \left( \text{simplifying} \right) \\[16pt]
\end{array}\nonumber\]
Checkpoint \(\PageIndex{8}\)
Find the derivative of \(f(x)=2x^3−6x^2+3\).
- Answer
-
\(f^{\prime}(x)=6x^2−12x\).
The following example illustrates that we can use several rules within a single problem. It also emphasizes the need to pay attention to the Mathematical Mantra.
Example \(\PageIndex{9}\)
Compute the derivative of \(g(x) = x^2 + \frac{3 x^3 - 4 x + \sqrt{x}}{x} + x\left(x^2 - 1\right)^2\).
- Solution
-
\[ \begin{array}{rcl}
\dfrac{d}{dx} \left( x^2 + \dfrac{3 x^3 - 4 x + \sqrt{x}}{x} + x\left(x^2 - 1\right)^2 \right) & = & \dfrac{d}{dx} \left( x^2 + 3 x^2 - 4 + \dfrac{1}{\sqrt{x}} + x\left(x^4 - 2 x^2 + 1\right) \right) \\[16pt]
& = & \dfrac{d}{dx} \left( x^2 + 3 x^2 - 4 + \dfrac{1}{\sqrt{x}} + x^5 - 2 x^3 + x \right) \\[16pt]
& = & \dfrac{d}{dx} \left(x^5 - 2 x^3 + 4 x^2 + x + x^{-1/2} - 4 \right) \\[16pt]
& = & 5 x^4 - 6 x^2 + 8 x + 1 - \dfrac{1}{2} x^{-3/2} \\[16pt]
\end{array} \nonumber \]
Applications of Differentiation: Physics
As we have mentioned previously, if \( s(t) \) is the position of a particle at time \( t \), then its velocity is\[ v(t) = \dfrac{ds}{dt} \nonumber \]and its acceleration is\[ a(t) = \dfrac{dv}{dt} = \dfrac{ds^2}{dt^2}. \nonumber \]
Example \(\PageIndex{13}\): Ballistic Motion
A rocket is fired vertically upward. Its height in meters above the ground \( t \) seconds after launch is given by\[ h(t) = -4.9t^2 + 154t + 388. \nonumber \]
- How high was the rocket when it was launched?
- How high is the rocket after 6 seconds?
- What is the velocity of the rocket after 6 seconds?
- What is the acceleration of the rocket after 6 seconds?
- Solutions
-
- The initial height is given by \( h(0) = 388 \). Therefore, the initial height of the rocket is \(388\) meters.
- \( h(6) = 1,135.6 \). Therefore, the height of the rocket \( 6 \) seconds after launch is \( 1,135.6 \) meters.
- To compute the velocity, we need to find the derivative of \( h(t) \).\[ v(t) = h^{\prime}(t) = -9.8t + 154 \nonumber \]Evaluating \( h^{\prime} \) at \( 6 \), we get\[ v(6) = h^{\prime}(6) = -9.8(6) + 154 = 95.2. \nonumber \]This means that the velocity of the rocket exactly \( 6 \) seconds after launch is \( 95.2 \) meters per second. Since this velocity is positive, the rocket is still climbing upward.
- To compute the acceleration, we need to find the derivative of the velocity.\[ a(t) = v'(t) = -9.8 \nonumber \]Hence, the acceleration is always \( -9.8 \) meters per second squared. That is, the rocket is deceleratingat 9.8 meters per second squared the entire time. While this idea of "slowing down" makes sense on the rise, how can we make sense of it as the rocket begins to fall? Well, the negative acceleration implies the rocket's velocity is decreasing as the rocket rises. At some point, the velocity would have to hit \( 0 \). At that moment, the rocket begins its descent back to Earth. The velocity becomes negative as the distance between the rocket and the Earth decreases, and the rate of this descent increases (in the negative direction) until the rocket crashes into the ground. The negative acceleration acted to slow the ascent and speed the descent.
Applications of Differentiation: Business
Most individuals taking this course are moving into a STEM field - not business; however, it is always nice to know what the news channels imply when they mention revenue, cost, profit, marginal cost, etc. To simplify the conversation, I have decided to forgo any lengthy discussion and jump right to the point.
- Revenue is the product of the price of the item and the number of items sold. Mathematically, \( R(n) = p(n) \cdot n \), where \( p(n) \) is the price-demand function (the price the company charges when the market demands \( n \) items) and \( n \) is the number of items sold.
- Profit is the difference between the revenue from sales and the cost of producing an item. Mathematically, \( P(n) = R(n) - C(n) \), where \( R(n) \) is the revenue function and \( C(n) \) is the cost function.
- Marginal cost is the change in the total cost that arises when the quantity produced is incremented. That is, it is the change in cost with respect to the number of items produced. Mathematically, \( M_C(n) = \frac{dC}{dn} \), where \( C(n) \) is the cost function (i.e., the cost of producing \( n \) items).
- Marginal profit is the change in the total profit that arises when the quantity produced is incremented. That is, it is the change in profit with respect to the number of items produced. Mathematically, \( M_P(n) = \frac{dP}{dn} \), where \( P(n) \) is the profit function.
- Marginal revenue is the change in the total revenue that arises when the quantity produced is incremented. That is, it is the change in revenue with respect to the number of items produced. Mathematically, \( M_R(n) = \frac{dR}{dn} \), where \( R(n) \) is the revenue function.
Thus, when you hear "marginal [insert business phrasing here]," it means that you need to take the derivative of that "business phrasing." The result will represent the cost, profit, revenue, etcetera associated with one additional item being produced.
Example \(\PageIndex{14}\)
Suppose a product's revenue function is given by \( R(q) = -2q^2 + 800q \) , where \( R(q) \) is in dollars and \( q \) is units sold. Also, its cost function is given by \( C(q) = 153q + 40,000 \), where \( C \) is in dollars and \( q \) is units produced. Find an expression for the item's marginal profit function (\( MP(q) \)) and use it to determine and interpret \( MP(220) \).
- Solution
-
Marginal profit is the derivative of the profit function, which they did not explicitly hand us; however, we know that profit is revenue minus cost. Thus,\[ P(q) = R(q) - C(q) = -2q^2 + 800q - \left( 153q + 40,000 \right) = -2q^2 + 647q - 40,000. \nonumber \]Therefore, the marginal profit function is\[ MP(q) = P^{\prime}(q) = -4q + 647. \nonumber \]Hence,\[ MP(220) = -233. \nonumber \]This means that if the company produces and sells 220 units, its profit will drop by $233 if it sells another unit. This is usually tough for students to understand at first, so let's take a moment to dive a little deeper. The derivative, \( \frac{dP}{dq} \), is the rate of change of profit with respect to the number of units produced (and sold). Since \( \frac{dP}{dq}(220) = -233 = \frac{-233}{1} \), we can interpret this as losing $233 in profit per 1 unit produced and sold when we have produced and sold exactly 220 units.
It's important to note that marginal profit is not the profit. In fact, the profit if the company produces and sells 220 units is \( P(220) = 5540 \). That is, the company is still making a profit of $5,540 at that moment, but producing more units will eat into those profits.