Mixed Differentiation Practice (Strict Parentheses Version)

This web exercise gives practice applying differentiation rules to a variety of differentiation problems.

All the calculus steps are shown in the solutions, but only minimal algebraic simplication is done.

If you want practice with the formulas only, then study Differentiation Formula Practice.

There are two versions of this exercise—you may want to look at both to see which works best for you.

The Strict Version (This Page)

The page you are on uses strict parentheses.

For example, $\,\ln(x)\,$ is never abbreviated as $\,\ln x\,.$ Parentheses are always used to hold the function input.

Also, parentheses are always used for the $\,\frac{d}{dx}\,$ operator. For example, $\,\frac{d}{dx}\bigl(f(x)\bigr)\,$ is never abbreviated as $\,\frac{d}{dx} f(x)\,.$

Strict parenthesis usage often requires more parentheses, but eliminates any possible ambiguity in order of operations.

The Casual Version

This other version is more casual in its use of parentheses.

For example, when using multi-letter function names (like ‘$\,\sin\,$’ or ‘$\,\ln\,$’), parentheses are dropped if there is no confusion about the desired order of operations. Thus, $\,\sin(x)\,$ might be abbreviated as $\,\sin x\,.$

For your convenience, the differentiation rules are repeated next, with strict parentheses. You may want to compare with more casual parenthesis usage.

A ‘log trick’ is needed to differentiate variable expressions raised to a variable power (like, e.g., $\,x^{2x}\,$). The log trick is discussed here.

Differentiation Rules

In this lesson, as needed, functions are assumed to be differentiable and to have all required properties.

For example:

Slide Constants Out

You can ‘slide constants out’ of the differentiation process:

$$\frac{d}{dx}\bigl( kf(x)\bigr) = k\,\frac{d}{dx} \bigl(f(x)\bigr)$$

Or, using prime notation for the derivative on the right side:

$$\frac{d}{dx}\bigl( kf(x)\bigr) = k\,f'(x)$$

Derivative of a Sum

The derivative of a sum is the sum of the derivatives:

$$\frac{d}{dx} \bigl( f(x) + g(x) \bigr) = \frac{d}{dx} \bigl(f(x)\bigr) + \frac{d}{dx} \bigl(g(x)\bigr)$$

Since subtraction is just adding the opposite, this also works for differences.

Above, Leibniz notation is used on both sides of the equation. The equation can also be written using prime notation on the right:

$$\frac{d}{dx} \bigl( f(x) + g(x) \bigr) = f'(x) + g'(x)$$

Derivative of a Product

The derivative of a product is not the product of the derivatives!

The Product Rule is:

$$\frac{d}{dx}\bigl( f(x)g(x)\bigr) = f(x)g'(x) + g(x)f'(x)$$

Verbalize: the derivative of a product is the first, times the derivative of the second, plus the second, times the derivative of the first.

Some people memorize the formula in a different way (where the order of the factors is preserved):

$$\frac{d}{dx}\bigl( f(x)g(x)\bigr) = f'(x)g(x) + f(x)g'(x)$$

Verbalize: the derivative of a product is the derivative of the first, times the second, plus the first, times the derivative of the second.

Since both multiplication and addition are commutative, there are actually many different ways to state the product rule. The second version given here has two main advantages:

Derivative of a Quotient

The derivative of a quotient is not the quotient of the derivatives!

The Quotient Rule is:

$$\frac{d}{dx}\left( \frac{f(x)}{g(x)}\right) = \frac{g(x)f'(x) - f(x)g'(x)}{(g(x))^2}$$

Verbalize: the derivative of a quotient is the bottom, times the derivative of the top, minus the top, times the derivative of the bottom, all over the bottom squared.

Some people memorize the formula in a different way:

$$\frac{d}{dx}\left( \frac{f(x)}{g(x)}\right) = \frac{f'(x)g(x) - f(x)g'(x)}{(g(x))^2}$$

Verbalize: the derivative of a quotient is the derivative of the top, times the bottom, minus the top, times the derivative of the bottom, all over the bottom squared.

Derivative of a Composite Function

In the composite function $\,f\bigl(g(x)\bigr)\,,$ we can call $\,f\,$ the ‘outer function’ and $\,g\,$ the ‘inner function’.

Note the order of operations indicated by $\,f\bigl(g(x)\bigr)\,$:  $\,g\,$ acts on $\,x\,$ first; then $\,f\,$ acts on $\,g(x)\,.$

The Chain Rule tells how to differentiate composite functions:

$$\frac{d}{dx} \Bigl(f\bigl(g(x)\bigr)\Bigr) = f'\bigl(g(x)\bigr)\cdot g'(x)$$

There are two factors in the expression $\,f'\bigl(g(x)\bigr)\cdot g'(x)\,.$ The first factor is $\,f'\bigl(g(x)\bigr)\,,$ and the second factor is $\,g'(x)\,.$

verbalizing the Chain Rule

So, we can verbalize the Chain Rule: the derivative of a composite function is the outer function's derivative, evaluated at the inner function, times the derivative of the inner function.

The expression $\,f'\bigl(g(x)\bigr)\,$ is read aloud as ‘$\,f\,$ prime of $\,g\,$ of $\,x\,$’.

The chain rule is used to extend each ‘basic rule’ below to the ‘general rule’.

Notice the pattern to extend from the Basic Rule to the General Rule:  replace every $\,x\,$ in the Basic Rule with $\,f(x)\,,$ and then multiply by $\,f'(x)\,.$

How to Differentiate Power Functions

Power functions have a variable base, and a constant in the exponent. The Power Rules tell how to differentiate power functions.

The Basic Rule is called the Simple Power Rule:

$$\frac{d}{dx} (x^n) = nx^{n-1}$$

The General Rule is called the General Power Rule:

$$\frac{d}{dx} \Bigl(\bigl(f(x)\bigr)^n\Bigr) = n\bigl(f(x)\bigr)^{n-1}f'(x)$$

How to Differentiate the Natural Exponential Function

Exponential functions have a constant base; the variable is in the exponent.

The base of the natural exponential function is the irrational number $\,\text{e}\,$:  $f(x) = \text{e}^x$

Basic Rule:

$$\frac{d}{dx} ({\text{e}}^x) = {\text{e}}^x$$

For this special function (the exponential function with base $\,\text{e}\,$), its derivative is itself! That is, the $y$-value of a point on the graph of $y = {\text{e}}^x$ is the same as the slope of the tangent line at the point!

General rule:

$$\frac{d}{dx} \bigl({\text{e}}^{f(x)}\bigr) = {\text{e}}^{f(x)}\cdot f'(x)$$

How to Differentiate Exponential Functions with Any Allowable Base

Exponential functions have a constant base; the variable is in the exponent.

The variable $\,a\,$ is often used as the base of a general exponential function:  $f(x) = a^x$

The allowable bases for exponential functions are $\,a \gt 0\,,$ $\,a\ne 1\,.$

Basic Rule:

$$\frac{d}{dx} (a^x) = a^x\,\ln (a)$$

General Rule:

$$\frac{d}{dx} \bigl(a^{f(x)}\bigr) = a^{f(x)}\bigl(\ln (a)\bigr)\cdot f'(x)$$

Note that $\,\ln(\text{e}) = 1\,,$ so the constant ‘$\,\ln (a)\,$’ disappears when the base of the exponential function is the irrational number $\,\text{e}\,.$

How to Differentiate the Natural Logarithmic Function

The natural logarithmic function has base $\,\text{e}\,$:

$$f(x) = \ln (x) = \log_{\text{e}} (x)$$

Basic Rule:

$$\frac{d}{dx} \bigl(\ln (x)\bigr) = \frac{1}{x}$$

General Rule:

$$\frac{d}{dx} \Bigl(\ln \bigl(f(x)\bigr)\Bigr) = \frac{1}{f(x)}\cdot f'(x)$$

The derivatives of logarithmic functions involve the reciprocal of the input.

How to Differentiate Logarithmic Functions with Any Allowable Base

The variable $\,a\,$ is often used as the base of a general logarithmic function:  $f(x) = \log_a (x)$

The allowable bases for logarithmic functions are $\,a \gt 0\,,$ $\,a\ne 1\,.$

Basic Rule:

$$\frac{d}{dx}\bigl( \log_a (x)\bigr) = \frac{1}{x\ln (a)}$$

General Rule:

$$\frac{d}{dx} \Bigl(\log_a \bigl(f(x)\bigr)\Bigr) = \frac{1}{f(x)\ln (a)}\cdot f'(x)$$

Note that $\,\ln(\text{e}) = 1\,,$ so the constant ‘$\,\ln (a)\,$’ disappears when the base of the logarithmic function is the irrational number $\,\text{e}\,.$

How to Differentiate the Trigonometric Functions Sine and Cosine

Basic Rules:

$$ \begin{gather} \frac{d}{dx} \bigl(\sin (x)\bigr) = \cos (x)\cr\cr \frac{d}{dx} \bigl(\cos (x)\bigr) = -\sin (x) \end{gather} $$

General Rules:

$$ \begin{gather} \frac{d}{dx} \Bigl(\sin \bigl(f(x)\bigr)\Bigr) = \cos \bigl(f(x)\bigr)\cdot f'(x)\cr\cr \frac{d}{dx} \Bigl(\cos \bigl(f(x)\bigr)\Bigr) = -\sin \bigl(f(x)\bigr)\cdot f'(x) \end{gather} $$

Sine and cosine are ‘cofunctions’.

Note the pattern to find the derivative of a cofunction:  replace each function in the derivative formula by its cofunction, and introduce a minus sign.

pattern to find the derivative of a cofunction

How to Differentiate the Trigonometric Functions Tangent and Cotangent

Basic Rules:

$$ \begin{gather} \frac{d}{dx} \bigl(\tan (x)\bigr) = \sec^2 (x)\cr\cr \frac{d}{dx} \bigl(\cot (x)\bigr) = -\csc^2 (x) \end{gather} $$

General Rules:

$$ \begin{gather} \frac{d}{dx} \Bigl(\tan \bigl(f(x)\bigr)\Bigr) = \sec^2 \bigl(f(x)\bigr)\cdot f'(x)\cr\cr \frac{d}{dx} \Bigl(\cot \bigl(f(x)\bigr)\Bigr) = -\csc^2 \bigr(f(x)\bigr)\cdot f'(x) \end{gather} $$

Tangent and cotangent are ‘cofunctions’.

Note the pattern to find the derivative of a cofunction:  replace each function in the derivative formula by its cofunction, and introduce a minus sign.

How to Differentiate the Trigonometric Functions Secant and Cosecant

Basic Rules:

$$ \begin{gather} \frac{d}{dx} \bigl(\sec (x)\bigr) = \sec (x)\,\tan (x)\cr\cr \frac{d}{dx} \bigl(\csc (x)\bigr) = -\csc (x)\,\cot (x) \end{gather} $$

General Rules:

$$ \begin{gather} \frac{d}{dx} \Bigl(\sec \bigl(f(x)\bigr)\Bigr) = \sec\bigl(f(x)\bigr)\,\tan \bigl(f(x)\bigr)\cdot f'(x)\cr\cr \frac{d}{dx} \Bigl(\csc \bigl(f(x)\bigr)\Bigr) = -\csc \bigl(f(x)\bigr)\,\cot \bigl(f(x)\bigr)\cdot f'(x) \end{gather} $$

Secant and cosecant are ‘cofunctions’.

Note the pattern to find the derivative of a cofunction:  replace each function in the derivative formula by its cofunction, and introduce a minus sign.

How to Differentiate the Inverse Trigonometric Functions

Basic Rules:

$$ \begin{gather} \frac{d}{dx} \bigl(\arcsin (x)\bigr) = \frac{1}{\sqrt{1-x^2}}\cr\cr \frac{d}{dx} \bigl(\arccos (x)\bigr) = \frac{-1}{\sqrt{1-x^2}}\cr\cr \frac{d}{dx} \bigl(\arctan (x)\bigr) = \frac{1}{1+x^2} \end{gather} $$

General Rules:

$$ \begin{gather} \frac{d}{dx} \Bigl(\arcsin \bigl(f(x)\bigr)\Bigr) = \frac{1}{\sqrt{1-(f(x))^2}}\cdot f'(x)\cr\cr \frac{d}{dx} \Bigl(\arccos \bigl(f(x)\bigr)\Bigr) = \frac{-1}{\sqrt{1-(f(x))^2}}\cdot f'(x)\cr\cr \frac{d}{dx} \Bigl(\arctan \bigl(f(x)\bigr)\Bigr) = \frac{1}{1+(f(x))^2}\cdot f'(x) \end{gather} $$

There is alternative notation for the inverse trigonometric functions:

$$ \begin{gather} \arcsin(x) = \sin^{-1}(x)\cr\cr \arccos(x) = \cos^{-1}(x)\cr\cr \arctan(x) = \tan^{-1}(x) \end{gather} $$

In the exercises below, the calculus steps in finding the derivatives are shown. However, only minimal simplification is done:

Your teacher may want a different ‘name’ for the answer than the one given here!

The solutions given in these exercises use the versions of the Product and Quotient rules that preserve the order of the factors.

Concept Practice