Navigation

Computing derivatives

4.2 Trigonometric functions and their derivatives

32 problems · hints, answers and solutions shown beside each one

Stage 1 · Conceptual

Q1Stage 1

Graph sine and cosine on the same axes, from x=2πx=-2\pi to x=2πx=2\pi. Mark the points where sinx\sin x has a horizontal tangent. What do these points correspond to, on the graph of cosine?

Hint

A horizontal tangent line is where the graph appears to “level off."

Answer

Figure from prob_s2.8, line 1

Figure from prob_s2.8, line 1

The graph f(x)=sinxf(x)=\sin x has horizontal tangent lines precisely at those points where cosx=0\cos x=0.

Full solution

Figure from prob_s2.8, line 1

Figure from prob_s2.8, line 1

The graph f(x)=sinxf(x)=\sin x has horizontal tangent lines precisely at those points where cosx=0\cos x=0. This must be true, since ddx{sinx}=cosx\diff{}{x}\{\sin x\}=\cos x: where the derivative of sine is zero, cosine itself is zero.

Q2Stage 1

Graph sine and cosine on the same axes, from x=2πx=-2\pi to x=2πx=2\pi. Mark the points where sinx\sin x has a tangent line of maximum (positive) slope. What do these points correspond to, on the graph of cosine?

Hint

You are going to mark there points on the sine graph where the graph is the steepest, going up.

Answer

Figure from prob_s2.8, line 1

Figure from prob_s2.8, line 1

The graph f(x)=sinxf(x)=\sin x has maximum slope at those points where cosx\cos x has a maximum. That is, where cosx=1\cos x = 1.

Full solution

Figure from prob_s2.8, line 1

Figure from prob_s2.8, line 1

The graph f(x)=sinxf(x)=\sin x has maximum slope at those points where cosx\cos x has a maximum. This makes sense, because f(x)=cosxf'(x)=\cos x: the maximum values of the slope of sine correspond to the maximum values of cosine.

Q3Stage 1

The height of a particle at time tt seconds is given by h(t)=costh(t)=-\cos t. Is the particle speeding up or slowing down at t=1t=1?

Hint

h(t)h'(t) gives the velocity of the particle, and h(t)h''(t) gives its acceleration–the rate the velocity is changing.

Answer

speeding up

Full solution

The velocity of the particle is given by h(t)=sinth'(t)=\sin t. Note 0<1<π0<1<\pi, so h(1)>0h'(1)>0–the particle is rising (moving in the positive direction, in this case “up"). The acceleration of the particle is h(t)=costh''(t)=\cos t. Since 0<1<π20<1<\frac{\pi}{2}, h(t)>0h''(t)>0, so h(t)h'(t) is increasing: the particle is moving up, and it's doing so at an increasing rate. So, the particle is speeding up.

Q4Stage 1

The height of a particle at time tt seconds is given by h(t)=t3t25t+10h(t)=t^3-t^2-5t+10. Is the particle's motion getting faster or slower at t=1t=1?

Hint

h(t)h'(t) gives the velocity of the particle, and h(t)h''(t) gives its acceleration–the rate the velocity is changing. Be wary of signs–as in legends, they may be misleading.

Answer

slower

Full solution

For this problem, remember that velocity has a sign indicating direction, while speed does not.

The velocity of the particle is given by h(t)=3t22t5h'(t)=3t^2-2t-5. At t=1t=1, the velocity of the particle is 4-4, so the particle is moving downwards with a speed of 4 units per second. The acceleration of the particle is h(t)=6t2h''(t)=6t-2, so when t=1t=1, the acceleration is (positive) 44 units per second per second. That means the velocity (currently 4-4 units per second) is becoming a bigger number–since the velocity is negative, a bigger number is closer to zero, so the speed of the particle is getting smaller. (For instance, a velocity of 3-3 represents a slower motion than a velocity of 4-4.) So, the particle is slowing down at t=1t=1.

Q5Stage 1

Which statements below are true, and which false?

  1. d4dx4sinx=sinx\ds\ddiff{4}{}{x} \sin x = \sin x

  2. d4dx4cosx=cosx\ds\ddiff{4}{}{x} \cos x = \cos x

  3. d4dx4tanx=tanx\ds\ddiff{4}{}{x} \tan x = \tan x

Hint

To show that two functions are unequal, you can show that one input results in different outputs.

Answer

(a) true (b) true (c) false

Full solution

For (a) and (b), notice the following:

ddxsinx=cosxddxcosx=sinxddx{sinx}=cosxddx{cosx}=sinxddxsinx=cosx\begin{align*}\diff{}{x} \sin x &= \cos x\\ \diff{}{x} \cos x &= -\sin x\\ \diff{}{x} \{-\sin x\} &= -\cos x\\ \diff{}{x} \{-\cos x\} &= \sin x\\ \diff{}{x} \sin x &= \cos x\end{align*}

The fourth derivative is sinx\sin x is sinx\sin x, and the fourth derivative of cosx\cos x is cosx\cos x, so (a) and (b) are true.

ddxtanx=sec2xddxsec2x=2secx(secxtanx)=2sec2xtanxddx{2sec2xtanx}=(4secxsecxtanx)tanx+2sec2xsec2x=4sec2xtan2x+2sec4xddx{4sec2xtan2x+2sec4x}=(8secxsecxtanx)tan2x+4sec2x(2tanxsec2x)+8sec3xsecxtanx=8sec2xtan3x+16sec4xtanx\begin{align*}\diff{}{x}\tan x &=\sec^2 x\\ \diff{}{x}\sec^2 x &=2\sec x (\sec x \tan x)=2\sec^2x\tan x\\ \diff{}{x}\{2\sec^2x\tan x\}&=(4\sec x \cdot \sec x \tan x)\tan x+2\sec^2x\sec^2x\\ &=4\sec^2x\tan^2x+2\sec^4x\\ \diff{}{x}\{4\sec^2x\tan^2x+2\sec^4x\}&=(8\sec x \cdot \sec x \tan x)\tan^2x+4\sec^2x(2\tan x \cdot\sec^2x)\\&\quad+8\sec^3x\cdot\sec x \tan x\\ &=8\sec^2x\tan^3x+16\sec^4x\tan x\end{align*}

So, d4dx4tanx=8sec2xtan3x+16sec4xtanx\ds\ddiff{4}{}{x} \tan x =8\sec^2x\tan^3x+16\sec^4x\tan x. It certainly seems like this is not the same as tanx\tan x, but remember that sometimes trig identities can fool you: tan2x+1=sec2x\tan^2x+1=\sec^2x, and so on. So, to be absolutely sure that these are not equal, we need to find a value of xx so that the output of one is not the same as the output of the other. When x=π4x=\frac{\pi}{4}:

8sec2xtan3x+16sec4xtanx=8(2)2(1)3+16(2)4(1)=801=tanx.8\sec^2x\tan^3x+16\sec^4x\tan x = 8\left({\sqrt{2}}\right)^2(1)^3+16\left({\sqrt{2}}\right)^4(1)=80\neq 1=\tan x.

So, (c) is false.

Stage 2 · Procedural

Q6Stage 2

Differentiate f(x)=sinx+cosx+tanxf(x)=\sin x + \cos x +\tan x.

Hint

You need to memorize the derivatives of sine, cosine, and tangent.

Answer

f(x)=cosxsinx+sec2xf'(x)=\cos x - \sin x + \sec^2 x

Full solution

You should memorize the derivatives of sine, cosine, and tangent.
f(x)=cosxsinx+sec2xf'(x)=\cos x - \sin x + \sec^2 x

Q7Stage 2

For which values of xx does the function f(x)=sinx+cosxf(x)=\sin x + \cos x have a horizontal tangent?

Hint

There are infinitely many values. You need to describe them all.

Answer

x=π4+πnx=\frac{\pi}{4}+\pi n, for any integer nn.

Full solution

f(x)=cosxsinxf'(x)=\cos x - \sin x, so f(x)=0f'(x)=0 precisely when sinx=cosx\sin x = \cos x. This happens at π/4\pi/4, but it also happens at 5π/45\pi/4. By looking at the unit circle, it is clear that sinx=cosx\sin x = \cos x whenever x=π4+πnx = \frac{\pi}{4}+\pi n for some integer nn.

Figure from prob_s2.8, line 2

Figure from prob_s2.8, line 2

Q8Stage 2

Differentiate f(x)=sin2x+cos2xf(x)=\sin^2 x + \cos^2 x.

Hint

Simplify first.

Answer

0

Full solution
  • Solution 1: f(x)=sin2x+cos2x=1f(x)=\sin^2x+\cos^2x=1, so f(x)=ddx{1}=0f'(x)=\diff{}{x}\{1\}=0.

  • Solution 2: Using the formula for the derivative of a squared function,

    f(x)=2sinxcosx+2cosx(sinx)=2sinxcosx2sinxcosx=0.\begin{align*} f'(x)=2\sin x \cos x + 2\cos x(- \sin x)=2\sin x \cos x - 2 \sin x \cos x =0. \end{align*}
Q9Stage 2

Differentiate f(x)=2sinxcosxf(x)=2\sin x \cos x.

Hint

The identity won't help you.

Answer

f(x)=2(cos2xsin2x)f'(x)=2(\cos^2 x - \sin ^2 x)

Full solution

It is true that 2sinxcosx=sin(2x)2\sin x \cos x = \sin (2x), but we don't know the derivative of sin(2x)\sin(2x). So, we use the product rule:

f(x)=2cosxcosx+2sinx(sinx)=2(cos2xsin2x).f'(x)=2\cos x \cos x+2\sin x (-\sin x)=2(\cos^2 x - \sin ^2 x).
Q10Stage 2

Differentiate f(x)=excotxf(x)=e^x\cot x.

Answer

f(x)=ex(cotxcsc2x)f'(x)=e^x(\cot x - \csc^2 x)

Full solution
  • Solution 1: using the product rule,

    f(x)=excotx+ex(csc2x)=ex(cotxcsc2x).f'(x)=e^x\cot x + e^x(-\csc^2 x)=e^x(\cot x - \csc^2 x).
  • Solution 2: using the formula from Question 12, Section 3.5,

    f(x)=ex(cotxcsc2x).f'(x)=e^x(\cot x - \csc^2 x).
Q11Stage 2

Differentiate f(x)=2sinx+3tanxcosx+tanxf(x) = \dfrac{2\sin x + 3 \tan x}{\cos x + \tan x}

Hint

Quotient rule

Answer

f(x)=2+3secx+2sinx2tanxsecx+3sinxtanx(cosx+tanx)2f'(x)=\dfrac{2+3 \sec x + 2 \sin x -2\tan x \sec x+3\sin x \tan x }{(\cos x + \tan x)^2}

Full solution

We use the quotient rule.

f(x)=(cosx+tanx)(2cosx+3sec2x)(2sinx+3tanx)(sinx+sec2x)(cosx+tanx)2=2cos2x+3cosxsec2x+2cosxtanx+3tanxsec2x(cosx+tanx)2    +2sin2x2sinxsec2x+3sinxtanx3tanxsec2x(cosx+tanx)2=2+3secx+2sinx2tanxsecx+3sinxtanx(cosx+tanx)2\begin{align*} f'(x)&=\dfrac{(\cos x + \tan x)(2\cos x + 3 \sec^2 x)-(2\sin x+3\tan x)(-\sin x + \sec^2 x)}{(\cos x + \tan x)^2}\\ &=\frac{2\cos^2x+3\cos x \sec^2 x + 2 \cos x \tan x + 3 \tan x \sec^2 x}{(\cos x + \tan x)^2}\\ &~~~~ +\frac{2\sin^2x-2\sin x \sec^2x+3\sin x \tan x -3\tan x \sec^2 x}{(\cos x + \tan x)^2}\\ &=\frac{2+3 \sec x + 2 \sin x -2\tan x \sec x+3\sin x \tan x }{(\cos x + \tan x)^2} \end{align*}
Q12Stage 2

Differentiate f(x)=5secx+1exf(x) = \dfrac{5\sec x+1}{e^x}.

Answer

f(x)=5secxtanx5secx1exf'(x)=\dfrac{5\sec x \tan x - 5 \sec x - 1}{e^x}

Full solution

We use the quotient rule.

f(x)=ex(5secxtanx)(5secx+1)ex(ex)2=5secxtanx5secx1ex\begin{align*} f'(x) &= \frac{e^x(5\sec x \tan x)-(5\sec x + 1) e^x}{(e^{x})^2}\\ &=\frac{5\sec x \tan x - 5 \sec x - 1}{e^x} \end{align*}
Q13Stage 2

Differentiate f(x)=(ex+cotx)(5x6cscx)f(x)=(e^x+\cot x)(5x^6-\csc x).

Answer

f(x)=(ex+cotx)(30x5+cscxcotx)+(excsc2x)(5x6cscx)f'(x)=(e^x+\cot x)(30x^5+\csc x \cot x)+(e^x-\csc^2x)(5x^6-\csc x)

Full solution

We use the product rule:

f(x)=(ex+cotx)(30x5+cscxcotx)+(excsc2x)(5x6cscx)\begin{align*} f'(x)&=(e^x+\cot x)(30x^5+\csc x \cot x)+(e^x-\csc^2x)(5x^6-\csc x) \end{align*}
Q14Stage 2

Differentiate f(θ)=sin(π2θ)f(\theta)=\sin\left(\frac{\pi}{2}-\theta \right).

Hint

Use an identity.

Answer

sin(θ)-\sin(\theta)

Full solution

We don't know how to differentiate this function as it is written, but an identity helps us. Since sin(π2θ)=cosθ\sin\left(\frac{\pi}{2}-\theta \right)=\cos \theta, we see f(θ)=ddθ{cosθ}=sin(θ)f'(\theta)=\diff{}{\theta}\{\cos \theta\}=-\sin(\theta).

Q15Stage 2

Differentiate f(x)=sin(x)+cos(x)f(x)=\sin(-x)+\cos(-x).

Hint

How can you move the negative signs to a location that you can more easily deal with?

Answer

f(x)=cosxsinxf'(x)=-\cos x - \sin x

Full solution

We know the derivative of sinx\sin x, but not of sin(x)\sin(-x). So we re-write f(x)f(x) using identities:

f(x)=sin(x)+cos(x)=sinx+cosxf(x)=cosxsinx\begin{align*} f(x)&=\sin(-x)+\cos(-x)\\ &=-\sin x + \cos x\\ f'(x)&=-\cos x - \sin x \end{align*}
Q16Stage 2

Differentiate s(θ)=cosθ+sinθcosθsinθs(\theta)=\dfrac{\cos \theta + \sin \theta}{\cos \theta - \sin\theta}.

Hint

Apply the quotient rule.

Answer

(cosθ+sinθcosθsinθ)2+1\left(\dfrac{\cos\theta+\sin\theta}{\cos\theta-\sin\theta}\right)^2+1

Full solution

We apply the quotient rule.

s(θ)=(cosθsinθ)(sinθ+cosθ)(cosθ+sinθ)(sinθcosθ)(cosθsinθ)2=(cosθsinθ)2+(cosθ+sinθ)2(cosθsinθ)2=1+(cosθ+sinθcosθsinθ)2\begin{align*} s'(\theta)&=\frac{(\cos \theta-\sin\theta)(-\sin\theta+\cos\theta)-(\cos\theta+\sin\theta)(-\sin\theta-\cos\theta)}{(\cos\theta-\sin\theta)^2}\\ &=\frac{(\cos \theta-\sin\theta)^2+(\cos\theta+\sin\theta)^2}{(\cos\theta-\sin\theta)^2}\\ &=1+\left(\frac{\cos\theta+\sin\theta}{\cos\theta-\sin\theta}\right)^2 \end{align*}
Q17Stage 2Past exam · 2007H

Find the values of the constants aa and bb for which

f(x)={cos(x)x0ax+bx>0f(x) = \left\{ \begin{array}{cc} \cos(x) & x\le 0\\ ax + b & x> 0\end{array} \right.

is differentiable everywhere.

Hint

The only spot to worry about is when x=0x=0. For f(x)f(x) to be differentiable, it must be continuous, so first find the value of bb that makes ff continuous at x=0x=0. Then, find the value of aa that makes the derivatives from the left and right of x=0x=0 equal to each other.

Answer

a=0a=0, b=1b=1.

Full solution

In order for ff to be differentiable at x=0x=0, it must also be continuous at x=0x=0. This forces

limx0f(x)=limx0+f(x)=f(0)orlimx0cos(x)=limx0+(ax+b)=1\lim_{x\to 0^-}f(x) = \lim_{x\to 0^+}f(x) =f(0)\qquad\text{or}\qquad \lim_{x\to 0^-}\cos(x) = \lim_{x\to 0^+}(ax+b) =1

or b=1b=1. In order for ff to be differentiable at x=0x=0, we need the limit

limh0f(0+h)f(0)h\lim_{h\to 0}\frac{f(0+h)-f(0)}{h}

to exist. This is the case if and only if the two one–sided limits

limh0f(0+h)f(0)h=limh0cos(h)cos(0)h\begin{align*}\lim_{h\to 0^-}\frac{f(0+h)-f(0)}{h} &=\lim_{h\to 0^-}\frac{\cos(h)-\cos(0)}{h}\end{align*}

and

limh0+f(0+h)f(0)h=limh0+(ah+b)cos(0)h=asince b=1\begin{align*}\lim_{h\to 0^+}\frac{f(0+h)-f(0)}{h} &=\lim_{h\to 0^+}\frac{(ah+b)-\cos(0)}{h} =a\qquad\text{since }b=1\end{align*}

exist and are equal. Because cos(x)\cos(x) is differentiable at x=0x=0 we have

limh0cos(h)cos(0)h=ddxcos(x)x=0=sin(x)x=0=0\begin{align*}\lim_{h\to 0^-}\frac{\cos(h)-\cos(0)}{h} &= \diff{}{x}\cos(x)\bigg|_{x=0} = -\sin(x)\Big|_{x=0}=0\end{align*}

So, we need a=0a=0 and b=1b=1.

Q18Stage 2Past exam · 2015Q

Find the equation of the line tangent to the graph of y=cos(x)+2xy=\cos(x)+2x at x=π2x=\dfrac{\pi}{2}.

Answer

yπ=1(xπ/2)y - \pi = 1\cdot (x-\pi/2)

Full solution

We compute the derivative of cos(x)+2x\cos(x)+2x as being sin(x)+2-\sin(x)+2, which evaluated at x=π2x=\frac{\pi}{2} yields 1+2=1-1+2=1. Since we also compute cos(π/2)+2(π/2)=0+π\cos(\pi/2)+2(\pi/2)=0+\pi, then the equation of the tangent line is

yπ=1(xπ/2).\begin{align*} y - \pi = 1\cdot (x-\pi/2). \end{align*}

Stage 3 · Application

Q19Stage 3Past exam · 2015Q

Evaluate $\displaystyle \lim_{x\to 2015}\left( \dfrac{\cos(x)-\cos(2015)}{x-2015}\right).$

Hint

Compare this to one of the forms given in the text for the definition of the derivative.

Answer

sin(2015)-\sin(2015)

Full solution

This limit represents the derivative computed at x=2015x=2015 of the function f(x)=cos(x)f(x)=\cos(x). To see this, simply use the definition of the derivative at a=2015a=2015 with f(x)=cosxf(x)=\cos x:

ddx{f(x)}a=limxaf(x)f(a)xaddx{cosx}2015=limx2015cos(x)cos(2015)x2015\begin{align*} \left.\diff{}{x}\{f(x)\}\right|_{a} &= \lim_{x \to a}\frac{f(x)-f(a)}{x-a}\\ \left.\diff{}{x}\{\cos x\}\right|_{2015} &= \lim_{x\to2015}\frac{\cos(x)-\cos(2015)}{x-2015} \end{align*}

Since the derivative of f(x)f(x) is sin(x)-\sin(x), its value at x=2015x=2015 is exactly sin(2015)-\sin(2015).

Q20Stage 3Past exam · 2015Q

Evaluate $\displaystyle \lim_{x\to \pi/3}\left( \dfrac{\cos(x)-1/2}{x-\pi/3}\right).$

Hint

Compare this to one of the forms given in the text for the definition of the derivative.

Answer

3/2-\sqrt{3}/2

Full solution

This limit represents the derivative computed at x=π/3x=\pi/3 of the function f(x)=cosxf(x)=\cos x. To see this, simply use the definition of the derivative at a=π/3a=\pi/3 with f(x)=cosxf(x)=\cos x:

ddx{f(x)}a=limxaf(x)f(a)xaddx{cosx}π/3=limxπ/3cos(x)cos(π/3)xπ/3=limxπ/3cos(x)1/2xπ/3\begin{align*} \left.\diff{}{x}\{f(x)\}\right|_{a} &= \lim_{x \to a}\frac{f(x)-f(a)}{x-a}\\ \left.\diff{}{x}\{\cos x\}\right|_{\pi/3} &= \lim_{x\to\pi/3}\frac{\cos(x)-\cos(\pi/3)}{x-\pi/3}\\ &=\lim_{x\to\pi/3} \frac{\cos(x)-1/2}{x-\pi/3} \end{align*}

Since the derivative of f(x)f(x) is sinx-\sin x, then its value at x=π/3x=\pi/3 is exactly
sin(π/3)=3/2-\sin(\pi/3)=-\sqrt{3}/2.

Q21Stage 3Past exam · 2015Q

Evaluate limxπ(sin(x)xπ).\displaystyle \lim_{x\to \pi}\left(\dfrac{\sin(x)}{x-\pi}\right).

Hint

Compare this to one of the forms given in the text for the definition of the derivative.

Answer

1-1

Full solution

This limit represents the derivative computed at x=πx=\pi of the function f(x)=sin(x)f(x)=\sin(x). To see this, simply use the definition of the derivative at a=πa=\pi with f(x)=sinxf(x)=\sin x:

ddx{f(x)}a=limxaf(x)f(a)xaddx{sinx}π=limxπsin(x)sin(π)xπ=limxπsin(x)xπ\begin{align*} \left.\diff{}{x}\{f(x)\}\right|_{a} &= \lim_{x \to a}\frac{f(x)-f(a)}{x-a}\\ \left.\diff{}{x}\{\sin x\}\right|_{\pi} &=\lim_{x\to\pi} \frac{\sin(x)-\sin(\pi)}{x-\pi}\\ &=\lim_{x\to\pi} \frac{\sin(x)}{x-\pi} \end{align*}

Since the derivative of f(x)f(x) is cos(x)\cos(x), then its value at x=πx=\pi is exactly
cos(π)=1\cos(\pi)=-1.

Q22Stage 3

Show how you can use the quotient rule to find the derivative of tangent, if you already know the derivatives of sine and cosine.

Hint

tanθ=sinθcosθ\tan \theta = \dfrac{\sin \theta}{\cos \theta}

Answer
tanθ=sinθcosθ\begin{align*}\tan \theta &= \dfrac{\sin \theta}{\cos \theta}\end{align*}

So, using the quotient rule,

ddθ{tanθ}=cosθcosθsinθ(sinθ)cos2θ=cos2θ+sin2θcos2θ=(1cosθ)2=sec2θ\begin{align*}\diff{}{\theta}\{\tan \theta\}&=\frac{\cos\theta\cos\theta-\sin\theta(-\sin\theta)}{\cos^2\theta} =\frac{\cos^2\theta+\sin^2\theta}{\cos^2\theta}\\ &=\left(\frac{1}{\cos \theta}\right)^2=\sec^2\theta\end{align*}
Full solution
tanθ=sinθcosθ\begin{align*}\tan \theta &= \dfrac{\sin \theta}{\cos \theta}\end{align*}

So, using the quotient rule,

ddθ{tanθ}=cosθcosθsinθ(sinθ)cos2θ=cos2θ+sin2θcos2θ=(1cosθ)2=sec2θ\begin{align*}\diff{}{\theta}\{\tan \theta\}&=\frac{\cos\theta\cos\theta-\sin\theta(-\sin\theta)}{\cos^2\theta} =\frac{\cos^2\theta+\sin^2\theta}{\cos^2\theta}\\ &=\left(\frac{1}{\cos \theta}\right)^2=\sec^2\theta\end{align*}
Q23Stage 3Past exam · 1997A

The derivative of the function

f(x)={ax+bfor x<06cosx2+sinx+cosxfor x0f(x)=\left\{\begin{array}{ll} ax+b& \text{for }x<0\\ \frac{6\cos x}{2+\sin x+\cos x}& \text{for }x\ge 0 \end{array}\right.

exists for all xx. Determine the values of the constants aa and bb.

Hint

In order for a derivative to exist, the function must be continuous, and the derivative from the left must equal the derivative from the right.

Answer

a=23a=-\frac{2}{3}, b=2b=2

Full solution

In order for the function f(x)f(x) to be continuous at x=0x=0, the left half formula ax+bax+b and the right half formula 6cosx2+sinx+cosx\dfrac{6\cos x}{2+\sin x+\cos x} must match up at x=0x=0. This forces

a×0+b=6cos02+sin0+cos0=63    b=2a\times 0+b=\frac{6\cos 0}{2+\sin 0+\cos 0}=\frac{6}{3} \implies \boxed{b=2}

In order for the derivative f(x)f'(x) to exist at x=0x=0, the limit limh0f(h)f(0)h\ds\lim_{h \rightarrow 0} \dfrac{f(h)-f(0)}{h} must exist. In particular, the limits limh0f(h)f(0)h\ds\lim_{h \rightarrow 0^-} \dfrac{f(h)-f(0)}{h} and limh0+f(h)f(0)h\ds\lim_{h \rightarrow 0^+} \dfrac{f(h)-f(0)}{h} must exist and be equal to each other.

When h0h \to 0^-, this means h<0h<0, so f(h)=ah+b=ah+2f(h)=ah+b=ah+2. So:

limh0f(h)f(0)h=limh0(ah+2)2h=ddx{ax+2}x=0=a.\ds\lim_{h\to 0^-}\dfrac{f(h)-f(0)}{h}=\ds\lim_{h\to 0^-}\dfrac{(ah+2)-2}{h}=\left.\ds\diff{}{x}\left\{ax+2\right\}\right|_{x=0}=a.

Similarly, when h0+h \to 0^+, then h>0h>0, so f(h)=6cosh1+sinh+coshf(h)=\dfrac{6\cos h}{1+\sin h + \cos h} and

limh0+f(h)f(0)h=ddx{6cosx2+sinx+cosx}x=0=6sinx(2+sinx+cosx)6cosx(cosxsinx)(2+sinx+cosx)2x=0.\begin{align*} \ds\lim_{h \rightarrow 0^+} \dfrac{f(h)-f(0)}{h} &= \left.\ds\diff{}{x}\left\{\dfrac{6\cos x}{2+\sin x + \cos x}\right\}\right|_{x=0} \\&=\left.\frac{-6\sin x(2+\sin x+\cos x)-6\cos x(\cos x-\sin x)}{(2+\sin x+\cos x)^2}\right|_{x=0}.\end{align*}

Since the limits from the left and right must be equal, this forces

a=6sin0(2+sin0+cos0)6cos0(cos0sin0)(2+sin0+cos0)2=6(2+1)2    a=23a=\frac{-6\sin 0(2+\sin 0+\cos 0)-6\cos 0(\cos 0-\sin 0)}{(2+\sin 0+\cos 0)^2} =\frac{-6}{(2+1)^2}\implies\boxed{a=-\frac{2}{3}}
Q24Stage 3Past exam · 2015Q

For which values of xx does the derivative of f(x)=tanxf(x) = \tan x exist?

Hint

There are infinitely many places where it does not exist.

Answer

All values of xx except x=π2+nπx=\frac{\pi}{2}+n\pi, for any integer nn.

Full solution

In order for f(x)f'(x) to exist, f(x)f(x) has to exist. We already know that tanx\tan x does not exist whenever x=π2+nπx=\frac{\pi}{2}+n\pi for any integer nn. If we look a little deeper, since tanx=sinxcosx\tan x = \frac{\sin x}{\cos x}, the points where tangent does not exist correspond exactly to the points where cosine is zero.

From its graph, tangent looks like a smooth curve over its domain, so we might guess that everywhere tangent is defined, its derivative is defined. We can check this: f(x)=sec2x=(1cosx)2f'(x) = \sec^2 x = \left(\frac{1}{\cos x}\right)^2. Indeed, wherever cosx\cos x is nonzero, ff' exists.

So, f(x)f'(x) exists for all values of xx except when x=π2+nπx=\frac{\pi}{2}+n\pi for some integer nn.

Q25Stage 3Past exam · 2015Q

For what values of xx does the derivative of 10sin(x)x2+x6\dfrac{10\sin(x)}{x^2+x-6} exist? Explain your answer.

Answer

The function is differentiable whenever x2+x60x^2+x-6\ne 0 since the derivative equals

10cos(x)(x2+x6)10sin(x)(2x+1)(x2+x6)2,\begin{align*} \frac{10\cos(x)\cdot (x^2+x-6)-10\sin(x)\cdot (2x+1)}{(x^2+x-6)^2}, \end{align*}

which is well-defined unless x2+x6=0x^2+x-6=0. We solve x2+x6=(x2)(x+3)=0,x^2+x-6=(x-2)(x+3)=0, and get x=2x=2 and x=3x=-3. So, the function is differentiable for all real values xx except for x=2x=2 and for x=3x=-3.

Full solution

The function is differentiable whenever x2+x60x^2+x-6\ne 0 since the derivative equals

10cos(x)(x2+x6)10sin(x)(2x+1)(x2+x6)2,\begin{align*} \frac{10\cos(x)\cdot (x^2+x-6)-10\sin(x)\cdot (2x+1)}{(x^2+x-6)^2}, \end{align*}

which is well-defined unless x2+x6=0x^2+x-6=0. We solve x2+x6=(x2)(x+3)=0,x^2+x-6=(x-2)(x+3)=0, and get x=2x=2 and x=3x=-3. So, the function is differentiable for all real values xx except for x=2x=2 and for x=3x=-3.

Q26Stage 3Past exam · test

For what values of xx does the derivative of x2+6x+5sin(x)\dfrac{x^2+6x+5}{\sin(x)} exist? Explain your answer.

Answer

The function is differentiable whenever sin(x)0\sin(x)\ne 0 since the derivative equals

sin(x)(2x+6)cos(x)(x2+6x+5)(sinx)2,\begin{align*} \frac{\sin(x)\cdot (2x+6) - \cos(x)\cdot (x^2+6x+5)}{(\sin x)^2}, \end{align*}

which is well-defined unless sinx=0\sin x = 0. This happens when xx is an integer multiple of π\pi. So, the function is differentiable for all real values xx except x=nπ,x=n\pi,, where nn is any integer.

Full solution

The function is differentiable whenever sin(x)0\sin(x)\ne 0 since the derivative equals

sin(x)(2x+6)cos(x)(x2+6x+5)(sinx)2,\begin{align*} \frac{\sin(x)\cdot (2x+6) - \cos(x)\cdot (x^2+6x+5)}{(\sin x)^2}, \end{align*}

which is well-defined unless sinx=0\sin x = 0. This happens when xx is an integer multiple of π\pi. So, the function is differentiable for all real values xx except x=nπ,x=n\pi,, where nn is any integer.

Q27Stage 3Past exam · 2015Q

Find the equation of the line tangent to the graph of y=tan(x)y=\tan(x) at x=π4x=\dfrac{\pi}{4}.

Answer

y1=2(xπ/4)y - 1 = 2\cdot (x-\pi/4)

Full solution

We compute the derivative of tan(x)\tan(x) as being sec2(x)\sec^2(x), which evaluated at x=π4x=\frac{\pi}{4} yields 22. Since we also compute tan(π/4)=1\tan(\pi/4)=1, then the equation of the tangent line is

y1=2(xπ/4).\begin{align*} y - 1 = 2\cdot (x-\pi/4). \end{align*}
Q28Stage 3Past exam · 2015Q

Find the equation of the line tangent to the graph of y=sin(x)+cos(x)+exy=\sin(x)+\cos(x)+e^x at x=0x=0.

Answer

y=2x+2y=2x+2

Full solution

We compute the derivative y=cos(x)sin(x)+exy' = \cos(x)-\sin(x)+e^x, which evaluated at x=0x=0 yields 10+1=21-0+1 = 2. Since we also compute y(0)=0+1+1=2y(0)=0+1+1=2, the equation of the tangent line is

y2=2(x0)\begin{align*} y - 2 = 2(x-0) \end{align*}

ie y=2x+2y=2x+2.

Q29Stage 3

For which values of xx does the function f(x)=exsinxf(x)=e^x\sin x have a horizontal tangent line?

Answer

x=3π4+nπx = \frac{3\pi}{4}+n\pi for any integer nn.

Full solution

We are asked to solve f(x)=0f'(x)=0. That is, ex[sinx+cosx]=0e^x[\sin x + \cos x]=0. Since exe^x is always positive, that means we need to find all points where sinx+cosx=0\sin x + \cos x =0. That is, we need to find all values of xx where sinx=cosx\sin x = - \cos x. Looking at the unit circle, we see this happens whenever x=3π4+nπx = \frac{3\pi}{4}+n\pi for any integer nn.

Figure from prob_s2.8, line 2

Figure from prob_s2.8, line 2

Q30Stage 3Past exam · 2010H

Differentiate the function

h(x)=sin(x)h(x) = \sin(|x|)

and give the domain where the derivative exists.

Hint

Recall $|x|=\left{\begin{array}{rl} x&x\ge 0\ -x&x<0 \end{array}\right..Todeterminewhether. To determine whether h(x)isdifferentiableatis differentiable atx=0$, use the definition of the derivative.

Answer

$h'(x)=\left{\begin{array}{rl} \cos x&x> 0\ -\cos x&x<0 \end{array}\right.$ It exists for all x0x \neq 0.

Full solution

As usual, when dealing with the absolute value function, we can make things a little clearer by splitting it up into two pieces.

x={xx0xx<0\begin{align*}|x|&=\left\{\begin{array}{rl} x&x\ge 0\\ -x&x<0 \end{array}\right.\end{align*}

So,

sinx={sinxx0sin(x)x<0={sinxx0sinxx<0\begin{align*}\sin|x|&=\left\{\begin{array}{rl} \sin x&x\ge 0\\ \sin(-x)&x<0 \end{array}\right. =\left\{\begin{array}{rl} \sin x&x\ge 0\\ -\sin x&x<0 \end{array}\right.\end{align*}

where we used the identity sin(x)=sinx\sin(-x)=-\sin x. From here, it's easy to see h(x)h'(x) when xx is anything other than zero.

ddx{sinx}={cosxx>0?x=0cosxx<0\begin{align*}\diff{}{x}\{\sin|x|\}&=\left\{\begin{array}{rl} \cos x&x> 0\\ ?&x=0\\ -\cos x&x<0 \end{array}\right.\end{align*}

To decide whether h(x)h(x) is differentiable at x=0x=0, we use the definition of the derivative. One word of explanation: usually in the definition of the derivative, hh is the tiny “change in xx" that is going to zero. Since hh is the name of our function, we need another letter to stand for the tiny change in xx, the size of which is tending to zero. We chose tt.

limt0h(t+0)h(0)t=limt0sintt\begin{align*}\lim_{t \to 0} \frac{h(t+0)-h(0)}{t}&=\lim_{t \to 0}\frac{\sin|t|}{t}\end{align*}

We consider the behaviour of this function to the left and right of t=0t=0:

sintt={sinttt0sin(t)tt<0={sinttt0sinttt<0\begin{align*}\frac{\sin |t|}{t}&=\left\{\begin{array}{ll} \frac{\sin t}{t} & t\ge 0\\ \frac{\sin (-t)}{t} & t <0 \end{array}\right. =\left\{\begin{array}{ll} \frac{\sin t}{t} & t\ge 0\\ -\frac{\sin t}{t} & t <0 \end{array}\right.\end{align*}

Since we're evaluating the limit as tt goes to zero, we need the fact that limt0sintt=1\ds\lim_{t \to 0}\dfrac{\sin t}{t}=1. We saw this in Section 3.5, but also we know enough now to evaluate it another way. Using the definition of the derivative:

limt0sintt=limt0sin(t+0)sin(0)t=ddx{sinx}t=0=cos0=1\begin{align*}\lim_{t \to 0}\frac{\sin t}{t}&=\lim_{t \to 0}\frac{\sin (t+0)-\sin (0)}{t}=\left.\diff{}{x}\{\sin x\}\right|_{t=0}=\cos 0=1\end{align*}

At any rate, since we know limt0sintt=1\ds\lim_{t \to 0}\dfrac{\sin t}{t}=1, then:

limt0+h(t+0)h(0)t=limt0+sintt=1limt0h(t+0)h(0)t=limt0sintt=1\begin{align*}\lim_{t \to 0^+} \frac{h(t+0)-h(0)}{t}&=\lim_{t \to 0^+}\frac{\sin t}{t}=1\qquad \lim_{t \to 0^-} \frac{h(t+0)-h(0)}{t}=\lim_{t \to 0^-}\frac{-\sin t}{t}=-1\end{align*}

So, since the one-sided limits disagree,

limt0h(t+0)h(0)t=DNE\begin{align*}\lim_{t \to 0} \frac{h(t+0)-h(0)}{t}&=DNE\end{align*}

so h(x)h(x) is not differentiable at x=0x=0. Therefore,

h(x)={cosxx>0cosxx<0\begin{align*}h'(x)&=\left\{\begin{array}{rl} \cos x&x> 0\\ -\cos x&x<0 \end{array}\right.\end{align*}
Q31Stage 3Past exam · 2006H

For the function

f(x)={0x0sin(x)xx>0f(x) =\left\{\begin{array}{ll} 0 & x\le 0\\ \frac{\sin(x)}{\sqrt{x}} & x > 0\end{array}\right.

which of the following statements is correct?

  1. ff is undefined at x=0x = 0.

  2. ff is neither continuous nor differentiable at x=0x = 0.

  3. ff is continuous but not differentiable at x=0x = 0.

  4. ff is differentiable but not continuous at x=0x = 0.

  5. ff is both continuous and differentiable at x=0x = 0.

Hint

To decide whether the function is differentiable, use the definition of the derivative.

Answer

iii

Full solution

Statement i is false, since f(0)=0f(0)=0. Statement iv cannot hold, since a function that is differentiable is also continuous.

Since limx0+sinxx=1\ds\lim_{x\rightarrow 0+}\frac{\sin x}{x}=1 (we saw this in Section 4.2 ),

limx0+f(x)=limx0+sinxx=limx0+xsinxx=01=0\begin{align*}\lim_{x\rightarrow 0+}f(x)&=\lim_{x\rightarrow 0+}\frac{\sin x}{\sqrt{x}}\\ &=\lim_{x\rightarrow 0+}\sqrt{x}\frac{\sin x}{x}\\&=0\cdot 1=0\end{align*}

So ff is continuous at x=0x=0, and so Statement ii does not hold. Now, let's consider f(x)f'(x).

limx0+f(x)f(0)x=limx0+sinxx0x=limx0+1xsinxx=+\begin{align*}\lim_{x\rightarrow 0+}\frac{f(x)-f(0)}{x} &=\lim_{x\rightarrow 0+}\frac{\frac{\sin x}{\sqrt{x}}-0}{x}\\ &=\lim_{x\rightarrow 0+}\frac{1}{\sqrt{x}}\frac{\sin x}{x}=+\infty\end{align*}

Therefore, using the definition of the derivative,

f(0)=limx0f(x)f(0)x   if it exists, butlimx0f(x)f(0)x=DNE\begin{align*}f'(0)&=\lim_{x \to 0}\frac{f(x)-f(0)}{x}~~\text{ if it exists, but}\\ \lim_{x \to 0}\frac{f(x)-f(0)}{x}&=DNE\end{align*}

since one of the one-sided limits does not exist. So ff is continuous but not differentiable at x=0x=0. The correct statement is iii.

Q32Stage 3Past exam · 2011H

Evaluate $\lim\limits_{x\rightarrow 0} \dfrac{\sin x^{27}+2x^5 e^{x^{99}}}{\sin^5 x}$.

Hint

In this chapter, we learned limx0sinxx=1\ds\lim_{x \to 0}\dfrac{\sin x}{x}=1. If you divide the numerator and denominator by x5x^5, you can make use of this knowledge.

Answer

22

Full solution

Recall that limx0sinxx=1\lim\limits_{x\rightarrow 0}\dfrac{\sin x}{x} =1. In order to take advantage of this knowledge, we divide the numerator and denominator by x5x^5 (because 55 is the power of sine in the denominator, and a denominator that goes to zero generally makes a limit harder).

limx0sinx27+2x5ex99sin5x=limx0sinx27x5+2ex99(sinxx)5\begin{align*} \lim_{x\rightarrow 0} \dfrac{\sin x^{27}+2x^5 e^{x^{99}}}{\sin^5 x} &=\lim_{x\rightarrow 0} \dfrac{\dfrac{\sin x^{27}}{x^{5}}+2 e^{x^{99}}} {\left(\dfrac{\sin x}{x}\right)^5} \end{align*}

Now the denominator goes to 1, which is nice, but we need to take care of the fraction sinx27x5\dfrac{\sin x^{27}}{x^5} in the numerator. This fraction isn't very familiar, but we know that, as xx goes to zero, x27x^{27} also goes to zero, so that sinx27x27\dfrac{\sin x^{27}}{x^{27}} goes to 11. Consequently,

limx0sinx27+2x5ex99sin5x=limx0x22sinx27x27+2ex99(sinxx)5=0×1+2×e015=2\begin{align*} \lim_{x\rightarrow 0} \dfrac{\sin x^{27}+2x^5 e^{x^{99}}}{\sin^5 x} &=\lim_{x\rightarrow 0} \dfrac{x^{22}\dfrac{\sin x^{27}}{x^{27}}+2 e^{x^{99}}} {\left(\dfrac{\sin x}{x}\right)^5} =\dfrac{0\times 1+2\times e^0}{1^5} =2 \end{align*}

From the UBC Math 100 open textbook project, © Joel Feldman, Andrew Rechnitzer, Elyse Yeager and others. Licensed CC BY-NC-SA 4.0; this HTML adaptation is released under the same licence. Full attribution.