# Video: Finding the Slope of the Tangent to a Graph Using Differentiation of Trigonometric Functions

Suppose that the function 𝑔 satisfies 𝑔(𝑥) = 2 cos (𝜋𝑥) − 4𝑥³. What is the slope of the line tangent to the graph of 𝑔 at the point 𝑥 = 1/2?

03:01

### Video Transcript

Suppose that the function 𝑔 satisfies 𝑔 of 𝑥 equals two cos 𝜋𝑥 minus four 𝑥 cubed. What is the slope of the line tangent to the graph of 𝑔 at the point 𝑥 equals one-half?

If the line is tangent to the graph of a function at a particular point, then it has the same slope as the curve at that point. We know that we can find the slope of a curve by evaluating its first derivative at that point. We therefore need to find an expression for the first derivative, 𝑔 prime of 𝑥. Now, looking at our function 𝑔 of 𝑥, it’s composed of two terms. One is a trigonometric term, two cos of 𝜋𝑥. And one is a polynomial term, negative four 𝑥 cubed. So, we need to recall two rules of differentiation.

Firstly, for the trigonometric term, we recall that the derivative with respect to 𝑥 of cos of 𝑎𝑥 for some constant 𝑎 is equal to negative 𝑎 sin 𝑎𝑥. And remember, 𝜋 is just a constant. The factor of two is a multiplicative constant, so we can just multiply our derivative by two. We have then that the derivative of the first term will be equal to two multiplied by negative 𝜋 sin of 𝜋𝑥.

To differentiate the second term, we need to recall how to find the derivative of a polynomial term. We recall that the derivative with respect to 𝑥 of 𝑎𝑥 to the power of 𝑛 for real values of 𝑎 and 𝑛 is equal to 𝑎𝑛𝑥 to the power of 𝑛 minus one. We multiply by the exponent and then reduce the exponent by one. So, the derivative of our second term will be equal to negative four multiplied by three 𝑥 squared. Simplifying each term slightly and we have that 𝑔 prime of 𝑥 is equal to negative two 𝜋 sin of 𝜋𝑥 minus 12𝑥 squared.

Now, this gives a general expression for the slope function of this curve. But we want to know the slope of the line tangent at a particular point, the point where 𝑥 is equal to one-half. So, we now need to evaluate this first derivative at 𝑥 equals one-half. Substituting 𝑥 equals one-half throughout our derivative gives that 𝑔 prime of one-half is equal to negative two 𝜋 sin of 𝜋 by two minus 12 multiplied by one-half squared. We should know that sin of 𝜋 by two is equal to one. It’s one of those exact trigonometric values which we should know of by heart. Or we could also see this by sketching the graph of sin 𝑥.

One-half squared is equal to one-quarter. So, we have negative two 𝜋 multiplied by one minus 12 multiplied by one-quarter. 12 multiplied by one-quarter is the same as 12 divided by four, which is three. So, we have our answer to the problem. By finding the first derivative of our function, 𝑔 prime of 𝑥, and then evaluating it when 𝑥 equals a half, we’ve found that the slope of the line tangent to the graph of 𝑔 at this point is negative two 𝜋 minus three.