Derivative of trigonometric functions

Theorem 1

We have the following derivatives of the trigonometric functions:

Equation 1
sin(x)cos(x)cos(x)sin(x)tan(x)1cos2(x)\begin{array}{ll} \sin(x) & \overset{\prime}{\rightarrow} & \cos(x)\\ \cos(x) & \overset{\prime}{\rightarrow} & -\sin(x)\\ \tan(x) & \overset{\prime}{\rightarrow} & \frac{1}{\cos^2(x)} \end{array}

Derivative of trigonometric functions

Note: The input variable xx must be in radians, otherwise the derivatives above will not be correct!

Proof

The only justification we give for the correctness of the derivatives of sin(x)\sin(x) and cos(x)\cos(x) is a graphical one (see the exercise below). The prove for the derivative of the tangent will be postponed, as we first need to learn about another differential rule (quotient rule).

To find the derivative of sin(x)\sin(x) and cos(x)\cos(x) we graphically differentiate those. And we then see imediately that the formulus above must be correct.

If you want to learn more about the sin(x)\sin(x) for xx in radians and xx in degrees, uncollapse.

Show

The shape of the graph of f(x)=sin(x)f(x)=\sin(x), with xx in radians, differs from the graph of g(x)=sin(x)g(x)=\sin(x), with xx in degrees. The two graphs are shown in the figure below.

Exercise 1
  1. Describe the geometrical operation (shift, rotation, reflection, dilation, ...) to get from the graph of ff to the graph of gg.

  2. Determine the slope of the tangent to ff at x=0x=0. Given this value, can you find the slope of the tangent to gg at x=0x=0? An intuitive geometrical argument is enough. Hint: Think about what happens to the tangent of a graph if you apply the geometrical transformation identified in (1).

  3. Use the result in (1) and (2) to determine g(x)g'(x).

Solution
  1. The graph of ff crosses the xx-axis at x=0,π,2π,...x=0,\pi, 2\pi, ..., and the graph of gg at x=0,180,360,...x=0, 180, 360, .... This indicates that by stretching\underline{stretching} the graph of ff in xx-direction by the factor 3602π=57.3\frac{360}{2\pi}=\underline{57.3} we get the graph of gg.
  2. Let's denote the tangents at x=0x=0 to the two graphs ff and gg by tft_f and tggtg_g, and their slopes by afa_f and aga_g. It is af=f(0)=cos(0)=1a_f=f'(0)=\cos(0)=\underline{1}. To find aga_g, we can argue intuitively as follows: We already know that by stretching the graph of ff in xx-direction, we get the graph of gg. Intuitively, this has to be true for their tangents as well: stretching tft_f in xx-direction we get tgt_g. And because the stretching factor is 57.357.3, the slope aga_g must be 57.357.3 times smaller than afa_f (make a figure and compare the slope triangles). Thus ag=af57.3=157.3=0.0175a_g=\frac{a_f}{57.3}=\frac{1}{57.3}=0.0175.
  3. The argument in (2) is valid for the tangents tft_f and tgt_g at every xx, so we have g(x)=157.3f(x)=0.0175cos(x)g'(x)=\frac{1}{57.3}\cdot f'(x)=\underline{0.0175\cdot \cos(x)}
Exercise 2
  1. Determine the slope of the tangent to the graph of the function ff at x=1x=1:

    1. f(x)=3cos(x)f(x)=3\cos(x)
    2. f(x)=sin(x)2cos(x)+3x4ln(x)+51.5xf(x)=\sin(x) - 2\cos(x) + 3\sqrt{x} - 4\ln(x)+5\cdot 1.5^x
    3. f(x)=sin2(x)+cos2(x)f(x)=\sin^2(x)+\cos^2(x)
  2. At what angle does the Sine intersect the Cosine?

  3. A tangent to the graph of f(x)=4sin(x)0.5x+1f(x)=4\sin(x)-0.5x+1 forms a 3030^\circ angle with the xx-axis. Where does this tangent intersect the yy-axis?

Solution
  1. We have
    1. f(x)=3(sin(x))=3sin(x)f'(x)=3\cdot(-\sin(x))=-3\sin(x), thus f(1)=3sin(1)=2.524f'(1)=-3\cdot \sin(1)=\underline{-2.524}
    2. f(x)=cos(x)+2sin(x)+1.5x1/24x+5ln(1.5)1.5xf'(x)=\cos(x)+2\sin(x)+1.5 x^{-1/2}-\frac{4}{x}+5\ln(1.5)\cdot 1.5^x, thus f(1)=cos(1)+2sin(1)+1.54+5ln(1.5)1.5=2.764f'(1)=\cos(1)+2\sin(1) + 1.5 -4+5\ln(1.5)\cdot 1.5 = \underline{2.764}
    3. Note that f(x)=1f(x)=1 for all xx (horizontal line at y=1y=1), so f(x)=0f'(x)=0 everywhere.
  2. f(x)=sin(x)f(x)=\sin(x), g(x)=cos(x)g(x)=\cos(x). Intersection point: find xx with sin(x)=cos(x)tan(x)=1\sin(x)=\cos(x)\rightarrow \tan(x)=1 and thus x=arctan(1)=π/4x=\arctan(1)=\pi/4. Angle between ff and xx axis: αf=arctan(f(π/4))=35.26\alpha_f = \arctan(f'(\pi/4)) =35.26^\circ, angle between Cosine and xx axis: αg=arctan(g(π/4))=35.26\alpha_g = \arctan(g'(\pi/4)) =-35.26^\circ. From a figure(!) we see that the smallest angle between the two graphs is α=35.26+35.26=70.52\alpha=35.26+35.26=\underline{70.52^\circ}
  3. First, we find the point PP where the tangent touches the graph. The slope of the tangent at PP is tan(30)=13=0.577...\tan(30^\circ)=\frac{1}{\sqrt{3}}=0.577.... Find xx with f(x)=4cos(x)0.5=0.577f'(x)=4\cos(x)-0.5=0.577 thus x=arccos(0.269)=1.298x=\arccos(0.269)=1.298 and y=f(1.298)=4.203y=f(1.298)=4.203. It follows P(1.2984.203)\underline{P(1.298\vert 4.203)}. Second, to find the intersection of the tangent with the yy-axis, we find the equation of the tangent, which is t(x)=0.577x+bt(x)=0.577\cdot x + b, and with t(1.298)=4.203t(1.298)=4.203 it follows 0.5771.298+b=4.2030.577\cdot 1.298+b=4.203 and thus b=3.454b=\underline{3.454} (bb is the yy-intercept, that is, the position where the tangent intersects the yy-axis.)