Skip to main content

Section 2.4 Derivatives of other trigonometric functions

One of the powerful themes in trigonometry comes from a very simple idea: locating a point on the unit circle.

Figure 2.4.1. The unit circle and the definition of the sine and cosine functions.

Because each angle \(\theta\) in standard position corresponds to one and only one point \((x,y)\) on the unit circle, the \(x\)- and \(y\)-coordinates of this point are each functions of \(\theta\text{.}\) In fact, this is the very definition of \(\cos(\theta)\) and \(\sin(\theta)\text{:}\) \(\cos(\theta)\) is the \(x\)-coordinate of the point on the unit circle corresponding to the angle \(\theta\text{,}\) and \(\sin(\theta)\) is the \(y\)-coordinate. From this simple definition, all of trigonometry is founded. For instance, the Fundamental Trigonometric Identity,

\begin{equation*} \sin^2(\theta) + \cos^2(\theta) = 1\text{,} \end{equation*}

is a restatement of the Pythagorean Theorem, applied to the right triangle shown in Figure 2.4.1.

There are four other trigonometric functions, each defined in terms of the sine and/or cosine functions.

  • The tangent function is defined by \(\tan(\theta) = \frac{\sin(\theta)}{\cos(\theta)}\text{;}\)
  • the cotangent function is its reciprocal: \(\cot(\theta) = \frac{\cos(\theta)}{\sin(\theta)}\text{.}\)
  • The secant function is the reciprocal of the cosine function, \(\sec(\theta) = \frac{1}{\cos(\theta)}\text{;}\)
  • and the cosecant function is the reciprocal of the sine function, \(\csc(\theta) = \frac{1}{\sin(\theta)}\text{.}\)

These six trigonometric functions together offer us a wide range of flexibility in problems involving right triangles.

Because we know the derivatives of the sine and cosine function, we can now develop shortcut differentiation rules for the tangent, cotangent, secant, and cosecant functions. In this section's preview activity, we work through the steps to find the derivative of \(y = \tan(x)\text{.}\)

Preview Activity 2.4.1.

Consider the function \(f(x) = \tan(x)\text{,}\) and remember that \(\tan(x) = \frac{\sin(x)}{\cos(x)}\text{.}\)

  1. What is the domain of \(f\text{?}\)

  2. Use the quotient rule to show that one expression for \(f'(x)\) is

    \begin{equation*} f'(x) = \frac{\cos(x)\cos(x) + \sin(x)\sin(x)}{\cos^2(x)}\text{.} \end{equation*}
  3. What is the Fundamental Trigonometric Identity? How can this identity be used to find a simpler form for \(f'(x)\text{?}\)

  4. Recall that \(\sec(x) = \frac{1}{\cos(x)}\text{.}\) How can we express \(f'(x)\) in terms of the secant function?

  5. For what values of \(x\) is \(f'(x)\) defined? How does this set compare to the domain of \(f\text{?}\)

Subsection 2.4.1 Derivatives of the cotangent, secant, and cosecant functions

In Preview Activity 2.4.1, we found that the derivative of the tangent function can be expressed in several ways, but most simply in terms of the secant function. Next, we develop the derivative of the cotangent function.

Let \(g(x) = \cot(x)\text{.}\) To find \(g'(x)\text{,}\) we observe that \(g(x) = \frac{\cos(x)}{\sin(x)}\) and apply the quotient rule. Hence

\begin{align*} g'(x) =\mathstrut \amp \frac{\sin(x)(-\sin(x)) - \cos(x) \cos(x)}{\sin^2(x)}\\ =\mathstrut \amp -\frac{\sin^2(x) + \cos^2(x)}{\sin^2(x)} \end{align*}

By the Fundamental Trigonometric Identity, we see that \(g'(x) = -\frac{1}{\sin^2(x)}\text{,}\) and recalling that \(\csc(x) = \frac{1}{\sin(x)}\text{,}\) it follows that we can express \(g'\) by the rule

\begin{equation*} g'(x) = -\csc^2(x)\text{.} \end{equation*}

Note that neither \(g\) nor \(g'\) is defined when \(\sin(x) = 0\text{,}\) which occurs at every integer multiple of \(\pi\text{.}\) Hence we have the following rule.

Cotangent Function.

For all real numbers \(x\) such that \(x \ne k\pi\text{,}\) where \(k = 0, \pm 1, \pm 2, \ldots\text{,}\)

\begin{equation*} \frac{d}{dx} [\cot(x)] = -\csc^2(x)\text{.} \end{equation*}

Notice that the derivative of the cotangent function is very similar to the derivative of the tangent function we discovered in Preview Activity 2.4.1.

Tangent Function.

For all real numbers \(x\) such that \(x \ne \frac{(2k+1)\pi}{2}\text{,}\) where \(k = \pm 1, \pm 2, \ldots\text{,}\)

\begin{equation*} \frac{d}{dx} [\tan(x)] = \sec^2(x)\text{.} \end{equation*}

In the next two activities, we develop the rules for differentiating the secant and cosecant functions.

Activity 2.4.2.

Let \(h(x) = \sec(x)\) and recall that \(\sec(x) = \frac{1}{\cos(x)}\text{.}\)

  1. What is the domain of \(h\text{?}\)

  2. Use the quotient rule to develop a formula for \(h'(x)\) that is expressed completely in terms of \(\sin(x)\) and \(\cos(x)\text{.}\)

  3. How can you use other relationships among trigonometric functions to write \(h'(x)\) only in terms of \(\tan(x)\) and \(\sec(x)\text{?}\)

  4. What is the domain of \(h'\text{?}\) How does this compare to the domain of \(h\text{?}\)

Hint
  1. For what values of \(x\) is \(\cos(x) = 0\text{?}\)

  2. Don't forget that \(\frac{d}{dx}[1] = 0\text{.}\)

  3. Consider rewriting \(\frac{\sin(x)}{\cos^2(x)}\) as \(\frac{1}{\cos(x)} \cdot \frac{\sin(x)}{\cos(x)}\text{.}\)

  4. Observe that \(\cos(x)\) is still present in the denominator of \(h'(x)\text{.}\)

Answer
  1. All real numbers \(x\) such that \(x \ne \frac{k\pi}{2}\text{,}\) where \(k = \pm 1, \pm 2, \ldots\text{.}\)

  2. \(h'(x) = \frac{\sin(x)}{\cos^2(x)}\text{.}\)

  3. \(h'(x) = \sec(x) \tan(x)\text{.}\)

  4. \(h\) and \(h'\) have the same domain: all real numbers \(x\) such that \(x \ne \frac{k\pi}{2}\text{,}\) where \(k = \pm 1, \pm 2, \ldots\text{.}\)

Solution
  1. \(h(x) = \sec(x)\) is defined for all \(x\) for which \(\cos(x) \ne 0\text{.}\) Hence the domain of \(h\) is all real numbers \(x\) such that \(x \ne \frac{k\pi}{2}\text{,}\) where \(k = \pm 1, \pm 2, \ldots\text{.}\)

  2. By the quotient rule,

    \begin{equation*} h'(x) = \frac{0 - 1 (-\sin(x))}{\cos^2(x)} = \frac{\sin(x)}{\cos^2(x)}\text{.} \end{equation*}
  3. Observe that \(h'(x) = \frac{\sin(x)}{\cos^2(x)} = \frac{1}{\cos(x)} \cdot \frac{\sin(x)}{\cos(x)}\text{,}\) so

    \begin{equation*} h'(x) = \sec(x) \tan(x)\text{.} \end{equation*}
  4. The derivative \(h'(x)\) is, like \(h(x)\text{,}\) defined for all values of \(x\) for which \(\cos(x) \ne 0\text{.}\) Therefore, \(h\) and \(h'\) have the same domain: all real numbers \(x\) such that \(x \ne \frac{k\pi}{2}\text{,}\) where \(k = \pm 1, \pm 2, \ldots\text{.}\)

Activity 2.4.3.

Let \(p(x) = \csc(x)\) and recall that \(\csc(x) = \frac{1}{\sin(x)}\text{.}\)

  1. What is the domain of \(p\text{?}\)

  2. Use the quotient rule to develop a formula for \(p'(x)\) that is expressed completely in terms of \(\sin(x)\) and \(\cos(x)\text{.}\)

  3. How can you use other relationships among trigonometric functions to write \(p'(x)\) only in terms of \(\cot(x)\) and \(\csc(x)\text{?}\)

  4. What is the domain of \(p'\text{?}\) How does this compare to the domain of \(p\text{?}\)

Hint
  1. For what values of \(x\) is \(\sin(x) = 0\text{?}\)

  2. Don't forget that \(\frac{d}{dx}[1] = 0\text{.}\)

  3. Consider rewriting \(\frac{\cos(x)}{\sin^2(x)}\) as \(\frac{1}{\sin(x)} \cdot \frac{\cos(x)}{\sin(x)}\text{.}\)

  4. Observe that \(\sin(x)\) is still present in the denominator of \(h'(x)\text{.}\)

Answer
  1. All real numbers \(x\) such that \(x k\pi\text{,}\) where \(k = 0, \pm 1, \pm 2, \ldots\text{.}\)

  2. \(h'(x) -\frac{\cos(x)}{\sin^2(x)}\text{.}\)

  3. \(h'(x) = -\csc(x) \cot(x)\text{.}\)

  4. \(p\) and \(p'\) have the same domain: all real numbers \(x\) such that \(x \ne k\pi\text{,}\) where \(k = 0, \pm 1, \pm 2, \ldots\text{.}\)

Solution
  1. \(p(x) = \csc(x)\) is defined for all \(x\) for which \(\sin(x) \ne 0\text{.}\) Hence the domain of \(h\) is all real numbers \(x\) such that \(x k\pi\text{,}\) where \(k = 0, \pm 1, \pm 2, \ldots\text{.}\)

  2. By the quotient rule,

    \begin{equation*} h'(x) = \frac{0 - 1 \cdot (\cos(x))}{\sin^2(x)} = -\frac{\cos(x)}{\sin^2(x)}\text{.} \end{equation*}
  3. Observe that \(h'(x) = -\frac{\cos(x)}{\sin^2(x)} = -\frac{1}{\sin(x)} \cdot \frac{\cos(x)}{\sin(x)}\text{,}\) so

    \begin{equation*} h'(x) = -\csc(x) \cot(x)\text{.} \end{equation*}
  4. The derivative \(p'(x)\) is, like \(p(x)\text{,}\) defined for all values of \(x\) for which \(\sin(x) \ne 0\text{.}\) Therefore, \(p\) and \(p'\) have the same domain: all real numbers \(x\) such that \(x \ne k\pi\text{,}\) where \(k = 0, \pm 1, \pm 2, \ldots\text{.}\)

Using the quotient rule we have determined the derivatives of the tangent, cotangent, secant, and cosecant functions, expanding our overall library of functions we can differentiate. Observe that just as the derivative of any polynomial function is a polynomial, and the derivative of any exponential function is another exponential function, so it is that the derivative of any basic trigonometric function is another function that consists of basic trigonometric functions. This makes sense because all trigonometric functions are periodic, and hence their derivatives will be periodic, too.

The derivative retains all of its fundamental meaning as an instantaneous rate of change and as the slope of the tangent line to the function under consideration.

Activity 2.4.4.

Answer each of the following questions. Where a derivative is requested, be sure to label the derivative function with its name using proper notation.

  1. Let \(f(x) = 5 \sec(x) - 2\csc(x)\text{.}\) Find the slope of the tangent line to \(f\) at the point where \(x =\frac{\pi}{3}\text{.}\)

  2. Let \(p(z) = z^2\sec(z) - z\cot(z)\text{.}\) Find the instantaneous rate of change of \(p\) at the point where \(z = \frac{\pi}{4}\text{.}\)

  3. Let \(h(t) = \displaystyle \frac{\tan (t)}{t^2+1} - 2e^t \cos(t)\text{.}\) Find \(h'(t)\text{.}\)

  4. Let \(g(r) = \displaystyle \frac{r \sec(r) }{5^r}\text{.}\) Find \(g'(r)\text{.}\)

  5. When a mass hangs from a spring and is set in motion, the object's position oscillates in a way that the size of the oscillations decrease. This is usually called a damped oscillation. Suppose that for a particular object, its displacement from equilibrium (where the object sits at rest) is modeled by the function

    \begin{equation*} s(t) = \frac{15 \sin(t)}{e^t}\text{.} \end{equation*}

    Assume that \(s\) is measured in inches and \(t\) in seconds. Sketch a graph of this function for \(t \ge 0\) to see how it represents the situation described. Then compute \(ds/dt\text{,}\) state the units on this function, and explain what it tells you about the object's motion. Finally, compute and interpret \(s'(2)\text{.}\)

Hint
  1. What rule(s) can help you determine \(f'(x)\text{?}\)

  2. Note that \(p\) is a sum of two functions. What rule is needed to differentiate each term in the sum?

  3. Observe that \(h\) is a sum of two functions; the first term in the sum is a quotient, while the second is a product.

  4. What is the overall structure of \(g\text{?}\) What is the algebraic structure of the numerator of \(g\text{?}\)

  5. Keep in mind that the derivative of position tells us the instantaneous velocity.

Answer
  1. \(m = f'(\frac{\pi}{3}) =10\sqrt{3} + \frac{4}{3}\text{.}\)

  2. \(p'(\frac{\pi}{4}) = \frac{\pi^2}{16} \sqrt{2} + \frac{\sqrt{2}\pi}{2} + \frac{\pi}{2} - 1\text{.}\)

  3. \(h'(t) = \frac{(t^2+1) \sec^2(t) - 2t \tan(t)}{(t^2 + 1)^2} + 2e^t \sin(t) - 2 e^t\cos(t)\text{.}\)

  4. \(g'(r) = \frac{r \sec(r) \tan(r) + \sec(r) - r 5^r \sec(r)}{5^r}\text{.}\)

  5. \(s'(2) = \frac{15\cos(2) - 15\sin(2)}{e^2} \approx -2.69\) inches per second.

Solution
  1. Using the sum and constant multiple rules along with the formulas for the derivatives of \(\sec(x)\) and \(\csc(x)\text{,}\) we find that

    \begin{equation*} f'(x) = 5 \sec(x)\tan(x) + 2\csc(x)\cot(x)\text{.} \end{equation*}

    Therefore, the slope of the tangent line to \(f\) at the point where \(x =\frac{\pi}{3}\) is given by

    \begin{align*} m =\mathstrut \amp f'(\frac{\pi}{3}) = 5 \sec(\frac{\pi}{3})\tan(\frac{\pi}{3}) + 2\csc(\frac{\pi}{3})\cot(\frac{\pi}{3})\\ =\mathstrut \amp 5 \cdot 2 \cdot \sqrt{3} + 2 \cdot \frac{2}{\sqrt{3}} \cdot \frac{1}{\sqrt{3}} = 10\sqrt{3} + \frac{4}{3}\text{.} \end{align*}
  2. By the sum rule and two applications of the product rule, we have

    \begin{align*} p'(z) =\mathstrut \amp \frac{d}{dz}[z^2\sec(z)] - \frac{d}{dz}[z\cot(z)]\\ =\mathstrut \amp [z^2 \sec(z) \tan(z) + \sec(z) \cdot 2z] - [z(-\csc^2(z)) + \cot(z) \cdot 1]\\ =\mathstrut \amp z^2 \sec(z) \tan(z) + 2z\sec(z) + z\csc^2(z) - \cot(z)\text{.} \end{align*}

    Thus, the instantaneous rate of change of \(p\) at the point where \(z = \frac{\pi}{4}\) is

    \begin{align*} p'(\frac{\pi}{4}) =\mathstrut \amp (\frac{\pi}{4})^2 \sec(\frac{\pi}{4}) \tan(\frac{\pi}{4}) + 2\frac{\pi}{4}\sec(\frac{\pi}{4}) + \frac{\pi}{4}\csc^2(\frac{\pi}{4}) - \cot(\frac{\pi}{4})\\ =\mathstrut \amp \frac{\pi^2}{16} \sqrt{2} + 2\frac{\pi}{4}\sqrt{2} + \frac{\pi}{4}2 - 1\\ =\mathstrut \amp \frac{\pi^2}{16} \sqrt{2} + \frac{\sqrt{2}\pi}{2} + \frac{\pi}{2} - 1 \end{align*}
  3. Using the sum and constant multiple rules, followed by the quotient rule on the first term and the product rule on the second, we find that

    \begin{align*} h'(t) =\mathstrut \amp \frac{d}{dt}\left[ \frac{\tan (t)}{t^2+1} \right] - 2\frac{d}{dt}\left[e^t \cos(t)\right]\\ =\mathstrut \amp \frac{(t^2+1) \sec^2(t) - \tan(t) (2t)}{(t^2 + 1)^2} - 2(e^t(-\sin(t)) + \cos(t)e^t)\\ =\mathstrut \amp \frac{(t^2+1) \sec^2(t) - 2t \tan(t)}{(t^2 + 1)^2} + 2e^t \sin(t) - 2 e^t\cos(t) \end{align*}
  4. Note that \(g\) is fundamentally a quotient, so we need to use the quotient rule. But the numerator of \(g\) is a product, so the product rule will be required to compute the derivative of the top function. Executing the quotient rule and proceeding, we find that

    \begin{align*} g'(r) =\mathstrut \amp \frac{5^r \frac{d}{dr}[r \sec(r)] - r\sec(r) \cdot 5^r \ln(5) }{(5^r)^2}\\ =\mathstrut \amp \frac{5^r [r \sec(r) \tan(r) + \sec(r) \cdot 1] - r\sec(r) \cdot 5^r \ln(5) }{(5^r)^2}\\ =\mathstrut \amp \frac{r \sec(r) \tan(r) + \sec(r) - r 5^r \sec(r)}{5^r} \end{align*}
  5. By the quotient rule,

    \begin{equation*} \frac{ds}{dt} = \frac{e^t \cdot 15 \cos(t) - 15\sin(t) \cdot e^t}{(e^t)^2} = \frac{15\cos(t) - 15\sin(t)}{e^t}\text{.} \end{equation*}

    The function \(\frac{ds}{dt} = s'(t)\) measures the instantaneous vertical velocity of the mass that is attached to the spring. In particular, \(s'(2) = \frac{15\cos(2) - 15\sin(2)}{e^2} \approx -2.69\) inches per second, which tells us at the instant \(t = 2\text{,}\) the mass is moving downward at an instantaneous rate of 2.69 inches per second.

Subsection 2.4.2 Summary

  • The derivatives of the other four trigonometric functions are

    \begin{equation*} \frac{d}{dx}[\tan(x)] = \sec^2(x), \ \ \frac{d}{dx}[\cot(x)] = -\csc^2(x)\text{,} \end{equation*}
    \begin{equation*} \frac{d}{dx}[\sec(x)] = \sec(x)\tan(x), \ \text{and} \ \frac{d}{dx}[\csc(x)] = -\csc(x)\cot(x)\text{.} \end{equation*}

    Each derivative exists and is defined on the same domain as the original function. For example, both the tangent function and its derivative are defined for all real numbers \(x\) such that \(x \ne \frac{k\pi}{2}\text{,}\) where \(k = \pm 1, \pm 2, \ldots\text{.}\)

  • The four rules for the derivatives of the tangent, cotangent, secant, and cosecant can be used along with the rules for power functions, exponential functions, and the sine and cosine, as well as the sum, constant multiple, product, and quotient rules, to quickly differentiate a wide range of different functions.

Exercises 2.4.3 Exercises

1. A sum and product involving \(\tan(x)\).
2. A quotient involving \(\tan(t)\).
3. A quotient of trigonometric functions.
4. A quotient that involves a product.
5. Finding a tangent line equation.
6.

An object moving vertically has its height at time \(t\) (measured in feet, with time in seconds) given by the function \(h(t) = 3 + \frac{2\cos(t)}{1.2^t}\text{.}\)

  1. What is the object's instantaneous velocity when \(t =2\text{?}\)

  2. What is the object's acceleration at the instant \(t = 2\text{?}\)

  3. Describe in everyday language the behavior of the object at the instant \(t = 2\text{.}\)

Answer
  1. \(h'(2) = \frac{-2\sin(2) - 2\cos(2) \ln(1.2)}{1.2^2} \approx -1.1575\) feet per second.

  2. \(h''(2) = \frac{\cos(2)(-2 + 2ln^2(1.2)) + 4\ln(1.2)\sin(2))}{1.2^2} \approx 1.0193\) feet per second per second.

  3. The object is falling and slowing down.

Solution
  1. The object's instantaneous velocity at \(t=2\) is given by \(h'(2)\text{.}\) Since \(h(t) = 3 + \frac{2\cos(t)}{1.2^t}\text{,}\) by the quotient rule we can determine that

    \begin{align*} h'(t) &= \frac{1.2^t \cdot (-2\sin(t)) - 2\cos(t) \cdot 1.2^t \ln(1.2)}{(1.2^t)^2}\\ &= \frac{1.2^t (-2\sin(t) - 2\cos(t) \ln(1.2))}{(1.2^t)^2}\\ &= \frac{-2\sin(t) - 2\cos(t) \ln(1.2)}{1.2^t}\text{.} \end{align*}

    Thus, \(h'(2) = \frac{-2\sin(2) - 2\cos(2) \ln(1.2)}{1.2^2} \approx -1.1575\) feet per second is the instanateous (vertical) velocity of the object at \(t=2\text{.}\)

  2. To find the object's acceleration at \(t=2\text{,}\) we compute \(h''(2)\text{.}\) First, by the quotient rule,

    \begin{align*} h''(t) &= \frac{1.2^t(-2\cos(t) + 2\sin(t) \ln(1.2)) - (-2\sin(t) - 2\cos(t) \ln(1.2))1.2^t \ln(1.2)}{(1.2^t)^2}\\ &= \frac{-2\cos(t) + 2\sin(t) \ln(1.2)) + 2\sin(t)\ln(1.2) + 2\cos(t) \ln^2(1.2)}{1.2^t}\\ &= \frac{\cos(t)(-2 + 2\ln^2(1.2)) + 4\ln(1.2)\sin(t))}{1.2^t}\text{.} \end{align*}

    Therefore, the acceleration at \(t = 2\) is \(h''(2) = \frac{\cos(2)(-2 + 2\ln^2(1.2)) + 4\ln(1.2)\sin(2))}{1.2^2} \approx 1.0193\) feet per second per second.

  3. At \(t=2\text{,}\) the object is falling and slowing down. We know the object is falling because its velocity is negative, and slowing down because its negative velocity is increasing (due to \(h''(2)\) being positive) and thus getting less negative.

7.

Let \(f(x) = \sin(x) \cot(x)\text{.}\)

  1. Use the product rule to find \(f'(x)\text{.}\)

  2. True or false: for all real numbers \(x\text{,}\) \(f(x) = \cos(x)\text{.}\)

  3. Explain why the function that you found in (a) is almost the opposite of the sine function, but not quite. (Hint: convert all of the trigonometric functions in (a) to sines and cosines, and work to simplify. Think carefully about the domain of \(f\) and the domain of \(f'\text{.}\))

Answer
  1. \(f'(x) = \sin(x) \cdot (-\csc^2(x)) + \cot(x) \cdot \cos(x)\text{.}\)

  2. False.

  3. \(f'(x) = \frac{-\sin^2(x)}{\sin(x)} = -\sin(x)\) for \(x \ne \frac{\pi}{2} + k\pi\) for some integer value of \(k\text{.}\)

Solution
  1. Since \(f(x) = \sin(x) \cot(x)\text{,}\) by the product rule we know that \(f'(x) = \sin(x) \cdot (-\csc^2(x)) + \cot(x) \cdot \cos(x)\text{.}\)

  2. False. Since \(\cot(x) = \frac{\cos(x)}{\sin(x)}\text{,}\) we can write \(f(x) = \sin(x) \cdot \frac{\cos(x)}{\sin(x)}\text{.}\) From here, it is tempting to ``cancel'' the \(\sin(x)\) term in the numerator and denominator. However, note that because of the \(\sin(x)\) in the denominator, \(f\) is not defined for \(x = \frac{\pi}{2} + k\pi\) for any integer \(k\text{.}\) In other words, the domain of \(f\) is all real numbers except odd multiples of \(\frac{\pi}{2}\text{.}\) Thus, we can say that \(f(x) = \cos(x)\) for all real numbers except odd multiples of \(\frac{\pi}{2}\text{.}\) But it is not the case that \(f(x) = \cos(x)\) for every value of \(x\text{.}\)

  3. Taking our result from (a) and converting \(\csc(x)\) and \(\cot(x)\) to expressions involving the sine and cosine functions, we have

    \begin{align*} f'(x) &= \sin(x) \cdot (-\csc^2(x)) + \cot(x) \cdot \cos(x)\\ &= \sin(x) \cdot \left(-\frac{1}{\sin^2(x)}\right) + \frac{\cos(x)}{\sin(x)} \cdot \cos(x) \end{align*}

    Provided that \(x \ne \frac{\pi}{2} + k\pi\) for some integer value of \(k\text{,}\) it follows that

    \begin{equation*} f'(x) = -\frac{1}{\sin(x)} + \frac{\cos^2(x)}{\sin(x)} = \frac{\cos^2(x)-1}{\sin(x)}\text{.} \end{equation*}

    By the Fundamental Trigonometric Identity, recall that \(\cos^2(x) + \sin^2(x) = 1\text{,}\) and thus \(\cos^2(x)-1 = -\sin^2(x)\text{.}\) Hence, for \(x \ne \frac{\pi}{2} + k\pi\) for some integer value of \(k\text{,}\) we have \(f'(x) = \frac{-\sin^2(x)}{\sin(x)} = -\sin(x)\text{.}\) Again, this equality holds only for \(x \ne \frac{\pi}{2} + k\pi\) for some integer value of \(k\) because those values of \(x\) are not in the domain of the original function \(f\text{.}\)

8.

Let \(p(z)\) be given by the rule

\begin{equation*} p(z) = \frac{z\tan(z)}{z^2\sec(z) + 1} + 3 e^z + 1\text{.} \end{equation*}
  1. Determine \(p'(z)\text{.}\)

  2. Find an equation for the tangent line to \(p\) at the point where \(z = 0\text{.}\)

  3. At \(z = 0\text{,}\) is \(p\) increasing, decreasing, or neither? Why?

Answer
  1. \(p'(z) = \frac{\left(z^2\sec(z) +1 \right)\left(z\sec^2(z)+\tan(z)\right) - z\tan(z) \left(z^2\sec(z)\tan(z)+2z\sec(z)\right)}{\left(z^2\sec(z) + 1\right)^2} +3e^z\)

  2. \(y - 4 = 3(x-0)\text{.}\)

  3. Increasing.

Solution
  1. We use the quotient, product, sum, and constant multiple rules to obtain

    \begin{align*} p'(z) &= \frac{d}{dz}\left(\frac{z\tan(z)}{z^2\sec(z) + 1} + 3 e^z + 1\right)\\ &= \frac{d}{dz}\left(\frac{z\tan(z)}{z^2\sec(z) + 1}\right) + \frac{d}{dz} \left(3 e^z \right) + \frac{d}{dz}(1)\\ &= \frac{\left(z^2\sec(z) +1 \right)\frac{d}{dz}\left(z\tan(z)\right) - z\tan(z) \frac{d}{dz}\left(z^2\sec(z) + 1\right)}{\left(z^2\sec(z) + 1\right)^2} +3e^z\\ &= \frac{\left(z^2\sec(z) +1 \right)\left(z\sec^2(z)+\tan(z)\right) - z\tan(z) \left(z^2\sec(z)\tan(z)+2z\sec(z)\right)}{\left(z^2\sec(z) + 1\right)^2} +3e^z \end{align*}
  2. We have \(p(0) = 0+3+1 = 4\) and \(p'(0) = 0+3=3\text{,}\) so an equation for the tangent line to \(p\) at the point where \(z=0\) is \(y - 4 = 3(x-0)\text{.}\)

  3. We found that \(p'(0) = 3\) is positive, so \(p\) is increasing at \(t=0\text{.}\)