(D1) Basic Derivative Rules#

By the end of the lesson you will be able to:

  • compute derivatives of basic functions (derivatives that can ultimately be solved by using the sum/difference, or constant multiple rules in conjunction with our list of elementary forms and the power rule).

Lecture Videos#


Slope of a Curve and the Derivative#

The main focus of this lesson will be to introduce the fundamental rules for quickly calculating the derivative of a function. We will see the power rule, constant-multiple rule, sum rule, and then our list of elementary form derivatives.

Before we get there though, it is good to remind ourselves that the derivative is really related to the slope of the curve. This is very apparent if we consider the derivative of two basic functions, a linear function of the form \(f(x)=mx+b\) and a constant function \(f(x)=b\).

\[ f(x)=mx+b \xrightarrow{\quad\text{Derivative}\quad} f'(x)=m \]
Graph of a linear function

Since the graph of this function is a line, the value of its derivative should make sense: the slope of this curve at any \(x\)-value is \(m\). (Remember that \(y=mx+b\) is the equation of a line in slope-intercept form.)

\[ f(x)=b \xrightarrow{\quad\text{Derivative}\quad} f'(x)=0 \]
Graph of a linear function

Another line, but this time horizontal. The slope at any point on this line is \(0\) (horizontal lines have a slope of \(0\)) and so the derivative of a constant function must be \(0\) as well.

Power Rule#

Power Rule

If \(f(x)=x^r\) then

\[ f'(x)=rx^{r-1} \]
The Process

We tend to think of the power rule as a 3-step process:

  1. Bring down the old exponent and put it in front.

  2. Keep the variable the same.

  3. Subtract 1 from the old exponent to get the new exponent.


Example 1#

Compute \(f'(x)\) for each of the following functions:

  1. \(f(x)=x^2\)

  2. \(f(x)=x^3\)

  3. \(f(x)=\sqrt{x}\)

  4. \(f(x)=1/x\)

Differentiate the function: \(f(x)=x^2\).

This is a power function, so we can directly apply the power rule:

\[ f(x)=x^2\xrightarrow{\quad\text{Power Rule}\quad} f'(x)=2x^{2-1}=2x \]

Differentiate the function: \(f(x)=x^3\).

Another power function, so we can directly apply the power rule again:

\[ f(x)=x^3\xrightarrow{\quad\text{Power Rule}\quad} f'(x)=3x^{3-1}=3x^2 \]

Note that we don’t normally show the \(3x^{3-1}\) step in our work, we’re only doing it now because these are the first few examples of using power rule.

Differentiate the function: \(f(x)=\sqrt{x}\).

For this one, we have a root function that needs to be rewritten first before we can actually apply the power rule:

\[ \textbf{Rewrite}\quad f(x)=\sqrt{x}=x^{1/2} \]

Now we’re ready for the power rule:

\[ f(x)=x^{1/2}\xrightarrow{\quad\text{Power Rule}\quad}f'(x)=\tfrac{1}{2}x^{\tfrac{1}{2}-1}=\tfrac{1}{2}x^{-1/2} \]

Differentiate the function: \(f(x)=\dfrac{1}{x}\).

As written this function is a quotient and so power rule is not immediately applicable. However, we can rewrite this fraction using negative exponents to get into a better form (for using power rule):

\[ \textbf{Rewrite}\quad f(x)=\dfrac{1}{x}=x^{-1} \]

Now we’re ready for the power rule:

\[ f(x)=x^{-1}\xrightarrow{\quad\text{Power Rule}\quad}f'(x)=-x^{-1-1}=-x^{-2}=\dfrac{-1}{x^2} \]

Constant-Multiple Rule#

Constant-Multiple Rule

For constant \(k\):

\[ \dfrac{d}{dx}\big[k\cdot f(x)\big] = k\cdot \dfrac{d}{dx}\big[f(x)\big] \]
Interpretation

Essentially, this rule tells us that we can bring any constant multiples outside of the derivative.

  • Focus on differentiating the variable part.

  • And then any constant multiple that was in the original function stays in the derivative as well.

Example 2#

Differentiate the following:

  1. \(\dfrac{d}{dx}\big[2x^5\big]\)

  2. \(\dfrac{d}{dx}\bigg[\dfrac{x^3}{4}\bigg]\)

  3. \(\dfrac{d}{dx}\bigg[-\dfrac{3}{x^2}\bigg]\)

  4. \(\dfrac{d}{dx}\big[5\sqrt[3]{x}\big]\)

Calculate the derivative: \(\dfrac{d}{dx}\big[2x^5\big]\).

The function here is a constant multiple of a power function, so we will first want to apply the constant multiple rule and then to finish, the power rule.

\[\begin{split} \dfrac{d}{dx}\big[2x^5\big] & = 2 \dfrac{d}{dx}\big[x^5\big] & \qquad \text{Constant Multiple Rule} \\ & \\ & = 2 \big(5x^4\big) & \qquad \text{Power Rule} \\ & \\ & = 10x^4 & \\ \end{split}\]

Calculate the derivative: \(\dfrac{d}{dx}\bigg[\dfrac{x^3}{4}\bigg]\).

Before we use the constant-multiple rule, we need to separate the constant and variable pieces of this function:

\[ \textbf{Rewrite}\quad \dfrac{x^3}{4}= \tfrac{1}{4}\cdot x^3 \]

Doing this, allows us to identify the \(\tfrac{1}{4}\) constant multiple.

\[\begin{split} \dfrac{d}{dx}\bigg[\tfrac{1}{4}x^3\bigg] & = \tfrac{1}{4} \dfrac{d}{dx}\big[x^3\big] & \qquad \text{Constant Multiple Rule} \\ & \\ & = \tfrac{1}{4} \big(3x^2\big) & \qquad \text{Power Rule} \\ & \\ & = \tfrac{3}{4}x^2 & \\ \end{split}\]

Calculate the derivative: \(\dfrac{d}{dx}\bigg[-\dfrac{3}{x^2}\bigg]\).

This function is a quotient with a variable term in the denominator, and as we’ve seen it will be helpful to rewrite this fraction using negative exponents:

\[ \textbf{Rewrite}\quad -\dfrac{3}{x^2} =-3x^{-2} \]

Now we can start the differentiation:

\[\begin{split} \dfrac{d}{dx}\bigg[-3x^{-2}\bigg] & = -3 \dfrac{d}{dx}\big[x^{-2}\big] & \qquad \text{Constant Multiple Rule} \\ & \\ & = -3 \big(-2x^{-3}\big) & \qquad \text{Power Rule} \\ & \\ & = 6x^{-3} & \\ \end{split}\]

Calculate the derivative: \(\dfrac{d}{dx}\big[5\sqrt[3]{x}\big]\).

Another root function, another helpful rewrite (so we can later use power rule):

\[ \textbf{Rewrite}\quad 5\sqrt[3]{x} = 5x^{1/3} \]

Now for the differentiation:

\[\begin{split} \dfrac{d}{dx}\bigg[5x^{1/3}\bigg] & = 5 \dfrac{d}{dx}\big[x^{1/3}\big] & \qquad \text{Constant Multiple Rule} \\ & \\ & = 5 \big(\tfrac{1}{3}x^{-2/3}\big) & \qquad \text{Power Rule} \\ & \\ & = \tfrac{5}{3}x^{-2/3} & \\ \end{split}\]

Sum Rule#

Sum Rule

Given differentiable functions \(f\) and \(g\):

\[ \dfrac{d}{dx}\big[f(x)+ g(x)\big] = \dfrac{d}{dx}\big[f(x)\big] + \dfrac{d}{dx}\big[g(x)\big] \]

This rule also works for subtraction:

\[ \dfrac{d}{dx}\big[f(x) - g(x)\big] = \dfrac{d}{dx}\big[f(x)\big] - \dfrac{d}{dx}\big[g(x)\big] \]
Term-By-Term Differentiation

Essentially, this rule tells us that we can split up the derivative at \(+\) and \(-\) signs. We generally call this term-by-term differentiation.

  • Write each term in the form \(ax^r\) (where applicable)

  • Differentiate each term separately.

  • Keep the original addition or subtraction signs.

Example 3#

Differentiate the following:

  1. \(\dfrac{d}{dx}\big[x^3+5x\big]\)

  2. \(\dfrac{d}{dx}\bigg[x^4-\dfrac{3}{x^2}\bigg]\)

  3. \(\dfrac{d}{dx}\big[2x^7-x^5+8\big]\)

Calculate the derivative: \(\dfrac{d}{dx}\big[x^3+5x\big]\).

\[\begin{split} \dfrac{d}{dx}\bigg[x^3+5x\bigg] & = \big[x^{3}\big]' + \big[5x\big]'& \qquad \text{Sum Rule} \\ & \\ & = 3x^2+ \big[5x\big]' & \qquad \text{Power Rule} \\ & \\ & = 3x^2 + 5 & \qquad (mx+b)\text{-form} \\ \end{split}\]

Calculate the derivative: \(\dfrac{d}{dx}\bigg[x^4-\dfrac{3}{x^2}\bigg]\).

\[\begin{split} \dfrac{d}{dx}\bigg[x^4-\dfrac{3}{x^2}\bigg] & = \bigg[x^{4}\bigg]' + \bigg[-\dfrac{3}{x^2}\bigg]'& \qquad \text{Sum Rule} \\ & \\ & = 4x^3+ \bigg[-\dfrac{3}{x^2}\bigg]' & \qquad \text{Power Rule} \\ & \\ & = 4x^3 + 6x^{-3} & \qquad \text{Example 2.3} \\ \end{split}\]

Calculate the derivative: \(\dfrac{d}{dx}\big[2x^7-x^5+8\big]\).

\[\begin{split} \dfrac{d}{dx}\bigg[2x^7-x^5+8\bigg] & = \bigg[2x^{7}\bigg]' - \bigg[x^5\bigg]' + \bigg[8\bigg]'& \qquad \text{Sum Rule} \\ & \\ & = 2\cdot\bigg[x^{7}\bigg]' - \bigg[x^5\bigg]' + \bigg[8\bigg]'& \qquad \text{Constant Multiple Rule} \\ & \\ & = 14x^6+-5x^4 + \bigg[8\bigg]'& \qquad \text{Power Rule} \\ & \\ & = 14x^6+-5x^4 + 0 & \qquad \text{Derivative of Constant is 0} \\ & \\ & = 14x^6+-5x^4 & \\ \end{split}\]

Other Variables#

Sometimes we use variables other than \(x\) and \(y\), but the differentiation process is essentially the same. Consider two different instances of the “squared” function: similar expressions, with different variables:

\[\begin{split} y=x^2 \xrightarrow{\quad\text{Power Rule}\quad} \dfrac{dy}{dx}=y'=2x \\ \\ v=t^2 \xrightarrow{\quad\text{Power Rule}\quad} \dfrac{dv}{dt}=v'=2t \\ \end{split}\]

The Leibniz notation for the derivative is helpful here, since it gives us an indication of the variable we are differentiating with respect to. For instance when we write \(\dfrac{dy}{dx}\):

  • the \(y\) tells us that we are differentiatng an expression with the name \(y\).

  • the \(x\) tells us that the independent variable we are differentiatng with respect to is \(x\).

To see this in action, let’s try a little example:

Calculate the derivative \(\dfrac{d}{dt}\big[at^2+St^{-1}+S^2\big]\)

The first step is to identify which variable we are differentiating with respect to. We see that the derivative operator is \(\dfrac{d}{dt}\), so this means \(t\) is our variable. Thus, for the purposes of calculating this derivative:

  • \(t\) is the variable

  • \(a\), \(S\) are constants

Now, we can just go through our usual term-by-term differentiation. Since we are treating \(a\) and \(S\) like constants, we can use the constant-multiple rule to bring them outside the differentiation for the first two terms.

\[\begin{split} \dfrac{d}{dt}\big[at^2+St^{-1}+S^2\big] &= a\big[t^2\big]'+S\big[t^{-1}\big]'+\big[S^2\big]' \\ & \\ &= a\big(2t\big)+S\big(-t^{-2}\big)+0 \\ & \\ &= 2at-St^{-2} \\ \end{split}\]

(Note that since \(S\) is a constant, its derivative is \(0\).)

Elementary Forms#

All (or almost all) of the functions we will be discussing in this course are some algebraic combination of power, trigonometric, inverse trigonomentric, exponential, or logarithmic functions. It sure would be nice to know the derivative of these elementary functions.

A few comments about the functions listed in the tables below:

  • When we talk about trigonometric functions, the variable is understood to be in radians not degrees. This is a convention that we will be using throughout the course. Why is this? The derivative rules listed below are for the radian versions, they would be slightly more complicated if we were using degrees.

  • Hint: If the trigonometric functions begins with the letter “c” then there is a minus sign in the derivative.

  • The most common of the inverse trigonometric functions are listed below. There are also derivative formulas for \(\csc^{-1}x\), \(\sec^{-1} x\), and \(\cot^{-1} x\).

Derivative of Trigonometric and Inverse Trigonometric Functions
Derivative of Exponential and Logarithmic Functions

Example 4#

Differentiate each of the following functions:

  1. \(y=2\sin x +3\tan x\)

  2. \(f(t)=2\sin^{-1} t +3\tan^{-1} t\)

  3. \(g(x)=5e^x+x\sqrt{x}\)

  4. \(h(t)=\dfrac{t^2+1}{t} + 7\ln t\)

Calculate the derivative of the function: \(y=2\sin x +3\tan x\).

\[\begin{split} y' & = \bigg[2\sin x\bigg]' + \bigg[3\tan x\bigg]'& \qquad \text{Sum Rule} \\ & \\ & = 2\cdot \bigg[\sin x\bigg]' + 3\cdot \bigg[\tan x\bigg]'& \qquad \text{Constant-Multiple Rule} \\ & \\ & = 2\cos x+ 3\sec^2 x & \qquad \text{Elementary Forms} \\ \end{split}\]

Calculate the derivative of the function: \(f(t)=2\sin^{-1} t +3\tan^{-1} t\).

\[\begin{split} f'(t) & = \bigg[2\sin^{-1} t\bigg]' + \bigg[3\tan^{-1} t\bigg]'& \qquad \text{Sum Rule} \\ & \\ & = 2\cdot \bigg[\sin^{-1} t\bigg]' + 3\cdot \bigg[\tan^{-1} t\bigg]'& \qquad \text{Constant-Multiple Rule} \\ & \\ & = \dfrac{2}{\sqrt{1-t^2}}+ \dfrac{3}{1+t^2} & \qquad \text{Elementary Forms} \\ \end{split}\]

Calculate the derivative of the function: \(g(x)=5e^x+x\sqrt{x}\).

Before we start differentiating this function we need to first rewrite the second term. As written, it’s a product of two \(x\)-terms, not currently in a format we can differentiate:

\[ \textbf{Rewrite}\quad x\sqrt{x}= x\cdot x^{1/2} =x^{3/2} \]
\[\begin{split} g'(x) & = \bigg[5e^x\bigg]' + \bigg[x^{3/2}\bigg]'& \qquad \text{Sum Rule} \\ & \\ & = 5\cdot \bigg[e^x\bigg]' + \bigg[x^{3/2}\bigg]'& \qquad \text{Constant-Multiple Rule} \\ & \\ & = 5e^x+ \tfrac{3}{2}x^{1/2} & \qquad \text{Elementary Form and Power Rule} \\ \end{split}\]

Calculate the derivative of the function: \(h(t)=\dfrac{t^2+1}{t} + 7\ln t\).

Before we start differentiating this function we need to first rewrite the first term. As written, it’s a quotient of two variable-terms, not currently a format we can differentiate:

\[ \textbf{Rewrite}\quad \dfrac{t^2+1}{t}= \dfrac{t^2}{t}+\dfrac{1}{t} = t + t^{-1} \]
\[\begin{split} h'(t) & = \bigg[t \bigg]' + \bigg[t^{-1}\bigg]'+\bigg[7\ln t\bigg]'& \qquad \text{Sum Rule} \\ & \\ & = \bigg[t \bigg]' + \bigg[t^{-1}\bigg]'+7\cdot \bigg[\ln t\bigg]'& \qquad \text{Constant-Multiple Rule} \\ & \\ & = 1-t^{-2} +\dfrac{7}{t} & \qquad \text{Elementary Form and Power Rule} \\ \end{split}\]

Example 5#

If \(s=t^3-2t^2+3t\), find

\[ \dfrac{ds}{dt}\Bigl|_{t=-2}\quad \text{and} \quad \dfrac{d^{2}s}{dt^{2}}\Bigl|_{t=-2} \]

Before we do any evaluation, we first need to calculate the derivatives.

Differentiating we get:

\[\begin{split} s' & = \bigg[t^3 \bigg]' - \bigg[2t^2\bigg]'+\bigg[3t\bigg]'& \qquad \text{Sum Rule} \\ & \\ & = \bigg[t^3 \bigg]' -2\cdot \bigg[t^2\bigg]'+3\cdot \bigg[ t\bigg]'& \qquad \text{Constant-Multiple Rule} \\ & \\ & = 3t^2 -4t+3 & \qquad \text{Power Rule} \\ \end{split}\]

Now we’re ready to evaluate:

\[ \dfrac{ds}{dt}\Bigl|_{t=-2} = 3(-2)^2-4(-2)+3 = 23 \]

In order to calculate the second derivative, we differentiate the first derivative:

\[\begin{split} s'' & = \bigg[3t^2 -4t+3 \bigg]' \\ \end{split}\]

Then we apply the usual Sum and Constant-Multiple Rule combination:

\[\begin{split} s'' & = 3\bigg[t^2 \bigg]' - 4\bigg[t\bigg]'+\bigg[3\bigg]'\\ & \\ & = 6t -4 \\ \end{split}\]

(When differentiating the \(3\), remember that the derivative of a lone constant term is 0.)

Now we’re ready to evaluate:

\[ \dfrac{d^2s}{dt^2}\Bigl|_{t=-2} = 6(-2) -4 = -16 \]