Question 231

Let \(g\) be the piecewise-linear function defined on the interval \([-2\pi, 4\pi]\) whose graph is shown above. Define
\[f(x) = g(x) - \cos\left(\frac{x}{2}\right).\](a) Evaluate\[\int_{-2\pi}^{4\pi} f(x)\,dx.\]
(b) Determine all values of \(x\) in the open interval \((-2\pi, 4\pi)\) for which \(f\) is not differentiable. Explain how the graph of \(g\) and the algebraic form of \(f\) are used to justify your answer.
(c) Find all values of \(x \in (-2\pi, 4\pi)\) for which\[f'(x) = 0.\]Your answer must include a correct derivative and a clear explanation of how solutions are obtained.
(d) Let\[h(x) = \int_{-\pi}^{3x} g(t)\,dt.\]
- Find \(h'(x)\) for all \(x\) such that \(g\) is differentiable at \(3x\).
- Determine all values of \(x\) for which \(h'(x)\) does not exist, and explain why.
(e) Let \(k(x) = f(x)\,g(x)\).
Determine the intervals on \((-2\pi, 4\pi)\) on which \(k\) is increasing. Justify your answer using correct calculus reasoning.
Main Solution
Answer Key
(a)
From the graph, \(g(x) = x + 2\pi\) on \([-2\pi, 0]\) and \(g(x) = 2\pi - \frac{x}{2}\) on \([0, 4\pi]\).
\[\int_{-2\pi}^{4\pi} f(x)\,dx = \int_{-2\pi}^{4\pi} g(x)\,dx - \int_{-2\pi}^{4\pi} \cos\left(\frac{x}{2}\right) dx\]- \(\int_{-2\pi}^{4\pi} g(x)\,dx\) is the area of the triangle with base \(6\pi\) and height \(2\pi\): \(\frac{1}{2}(6\pi)(2\pi) = 6\pi^2\).
- \(\int_{-2\pi}^{4\pi} \cos\left(\frac{x}{2}\right) dx = 2\sin\left(\frac{x}{2}\right)\Big|_{-2\pi}^{4\pi} = 2\left(\sin 2\pi - \sin(-\pi)\right) = 0\).
(b)
\(\cos\left(\frac{x}{2}\right)\) is differentiable everywhere, so \(f = g - \cos\left(\frac{x}{2}\right)\) is differentiable exactly where \(g\) is. \(g\) is linear on \((-2\pi, 0)\) (slope \(1\)) and on \((0, 4\pi)\) (slope \(-\frac{1}{2}\)), and the graph has a corner at \(x = 0\):
\[f'_-(0) = 1 + \tfrac{1}{2}\sin 0 = 1, \qquad f'_+(0) = -\tfrac{1}{2} + \tfrac{1}{2}\sin 0 = -\tfrac{1}{2}.\]The one-sided derivatives differ, so \(f\) is not differentiable only at \(\boxed{x = 0}\).
(c)
\[f'(x) = g'(x) + \frac{1}{2}\sin\left(\frac{x}{2}\right) \quad (x \ne 0)\]- On \((-2\pi, 0)\): \(f'(x) = 1 + \frac{1}{2}\sin\left(\frac{x}{2}\right) \ge 1 - \frac{1}{2} = \frac{1}{2} \gt 0\), so there are no zeros.
- On \((0, 4\pi)\): \(f'(x) = -\frac{1}{2} + \frac{1}{2}\sin\left(\frac{x}{2}\right) = 0 \Rightarrow \sin\left(\frac{x}{2}\right) = 1\). With \(\frac{x}{2} \in (0, 2\pi)\), \(\frac{x}{2} = \frac{\pi}{2}\), so \(x = \pi\).
- \(f'(0)\) does not exist (part (b)).
\(f'(x) = 0\) only at \(\boxed{x = \pi}\).
(d)
\(h\) is defined when \(-2\pi \le 3x \le 4\pi\), i.e. \(-\frac{2\pi}{3} \le x \le \frac{4\pi}{3}\). By the Fundamental Theorem of Calculus and the chain rule, \(h'(x) = 3g(3x)\).
- \[h'(x) = \begin{cases} 3(3x + 2\pi) = 9x + 6\pi, & -\frac{2\pi}{3} \lt x \lt 0 \cr 3\left(2\pi - \frac{3x}{2}\right) = 6\pi - \frac{9x}{2}, & 0 \lt x \lt \frac{4\pi}{3} \end{cases}\]
Because \(g\) is continuous on \([-2\pi, 4\pi]\), \(h'(x) = 3g(3x)\) exists for every \(x\) in \(\left(-\frac{2\pi}{3}, \frac{4\pi}{3}\right)\), including \(x = 0\), where \(h'(0) = 3g(0) = 6\pi\). The corner of \(g\) at \(t = 0\) makes \(h''(0)\) fail to exist, not \(h'(0)\). \(h'(x)\) does not exist only at the endpoints \(x = -\frac{2\pi}{3}\) and \(x = \frac{4\pi}{3}\) (only one-sided derivatives there, since \(3x\) is an endpoint of the domain of \(g\)) and for \(x\) outside \(\left[-\frac{2\pi}{3}, \frac{4\pi}{3}\right]\), where \(h\) is not defined.
(e)
\(k = fg\), so \(k'(x) = f'(x)g(x) + f(x)g'(x)\) for \(x \ne 0\); \(k\) is continuous on \((-2\pi, 4\pi)\).
- On \((-2\pi, 0)\): \(g = x + 2\pi \gt 0\), \(g' = 1\), \(f' = 1 + \frac{1}{2}\sin\frac{x}{2} \gt 0\), and \(k'(x) = \left(1 + \frac{1}{2}\sin\frac{x}{2}\right)(x + 2\pi) + (x + 2\pi) - \cos\frac{x}{2}\). Here \(\cos\frac{x}{2} \le 0\) for \(-2\pi \lt x \le -\pi\) and \(x + 2\pi \gt \pi \gt \cos\frac{x}{2}\) for \(-\pi \lt x \lt 0\), so \(k'(x) \gt 0\).
- On \((0, 4\pi)\): \(g = 2\pi - \frac{x}{2} \gt 0\), \(g' = -\frac{1}{2}\), and \(k'(x) = \frac{1}{2}\left(\sin\frac{x}{2} - 1\right)\left(2\pi - \frac{x}{2}\right) - \frac{1}{2}\left(2\pi - \frac{x}{2} - \cos\frac{x}{2}\right)\). \(k'(0^+) = \frac{1}{2} - 2\pi \lt 0\); solving \(k'(x) = 0\) (calculator) gives the single zero \(x \approx 11.789\) (\(\approx 3.752\pi\)); \(k' \lt 0\) on \((0, 11.789)\) and \(k' \gt 0\) on \((11.789, 4\pi)\).
\(k\) is increasing on \(\boxed{(-2\pi, 0]}\) and on \(\boxed{[11.789, 4\pi)}\) (where \(k' \gt 0\)), and decreasing on \([0, 11.789]\).
Answer images




