Skip to main content

Section 25 Curve sketching II

Example 25.1. Curve sketch: trig.

Provide a graph of \(f(x)=\sin x+\sin^2 x\) that includes all the details listed in Procedure 24.1 to the best of your abilities.
Solution.
Although the domain of \(f\) is \(\R\text{,}\) observe that since \(f(x+2\pi)=f(x)\) for all \(x\in \R\text{,}\) we can obtain a graph of \(f\) by producing a careful sketch on the interval \([0,2\pi]\) and then “copying and pasting” this graph over all other intervals \([2\pi n, 2\pi(n+1)]\text{.}\) This means for the moment our analysis will be restricted to just the interval \([0,2\pi]\text{.}\) The \(y\)-intercept, as always, is \((0,f(0))=(0,0)\text{.}\) To find the \(x\)-intercepts in \([0,2\pi]\) we solve:
\begin{align*} f(x) \amp =0\\ \sin x(1+\sin x) \amp = 0\\ \sin x= 0 \amp \text{ or } \sin x=-1\\ x \amp =0, \pi, 3\pi/2,2\pi\text{.} \end{align*}
Next we compute
\begin{align*} f'(x) \amp = \cos x(1+2\sin x)\\ f''(x) \amp = -\sin x+2\cos^2(x)-2\sin^2 x=2-\sin x-4\sin^2 x \text{.} \end{align*}
From the factored form of \(f'\text{,}\) we see solve
\begin{align*} f'(x) \amp = 0\\ \cos x=0 \amp \text{ or } \sin x=-\frac{1}{2}\\ x \amp =\frac{\pi}{2}, \frac{7\pi}{6},\frac{3\pi}{2},\frac{11\pi}{6}\text{.} \end{align*}
With a little work, choosing our test points carefully, we produce the following sign diagram for \(f'\) on the interval \([0,2\pi]\text{.}\)
Sign diagram for derivative of f
The diagram clearly indicates the intervals of monotonicity within \([0,2\pi]\text{,}\) and indicates that \(f\) attains in alternating manner local maximum/minimum values at these inputs.
From this information, and the table of values
\begin{equation*} \begin{array}{r|l} x \amp f(x) \\ \hline 0 \amp 0 \\ \pi \amp 0 \\ \frac{3\pi}{2} \amp 0 \\ 2\pi \amp 0 \\ \frac{\pi}{2} \amp 2 \\ \frac{7\pi}{6} \amp -\frac{1}{4} \\ \frac{11\pi}{6}\amp -\frac{1}{4} \end{array} \end{equation*}
we can obtain the following sketch of \(f\) on \([0,2\pi]\text{.}\)
Graph of f on restricted domain
As mentioned above, using the periodicity of \(f\text{,}\) we get a full sketch of \(f\) on \(\R\) by “cutting and pasting”.
Graph of f over all reals
Note that as a result of the periodicity of \(f\text{,}\) the absolute maximum and minimum values of \(f\) on the domain \(\R\) are equal to the absolute maximum and minimum values of \(f\) on the interval \([0,2\pi]\text{.}\) From our table of values above, which includes evaluations at all critical points in \([0,2\pi]\text{,}\) along with Procedure 20.13, we see that \(f(\pi/2)=2\) is the absolute maximum value of \(f\) on \(\R\text{,}\) and \(f(7\pi/6)=f(11\pi/6)=-1/4\) is the absolute minimum value.
What about the concavity of \(f\) and inflection points? The second derivative
\begin{equation*} f''(x)=-4\sin ^2(x)-\sin x+2 \end{equation*}
is somewhat complicated, making a precise sign diagram for \(f''\) difficult to produce. Our graph of \(f\) above seems to suggest four inflection points within the interval \([0,2\pi]\text{.}\)
Graph with inflection points
Can we at least verify this algebraically? Yes, we can!
Let \(u=\sin x\text{,}\) so that \(f''(x)=-4u^2-u+2\text{.}\) We can solve \(f''(x)=0\) for \(u\) using the quadratic equation:
\begin{equation*} u=\frac{-1\pm \sqrt{33}}{8}\text{.} \end{equation*}
Thus we have a potential inflection point at points \(x\in [0,2\pi]\) satisfying
\begin{align*} \sin x \amp =\frac{-1+\sqrt{33}}{8} \amp \sin x\amp =\frac{-1-\sqrt{33}}{8} \text{.} \end{align*}
Each of the equations above has two solutions within \([0,2\pi]\text{,}\) and these correspond to the four inflection points we see in our graph of \(f\) over \([0,2\pi]\text{.}\)

Example 25.2. Curve sketching: rational function.

Provide a graph of \(f(x)=\frac{\sqrt{x}}{x-1}\) that includes all the details listed in Procedure 24.1.
Solution.
The domain of \(f\) is \(D=[0,1)\cup (1,\infty)\text{,}\) and \((0,0)\) is both the \(y\)-intercept and the sole \(x\)-intercept.
Since \(f\) is continuous at \(x=0\text{,}\) we have
\begin{equation*} \lim\limits_{x\to 0^+}f(x)=f(0)=0\text{.} \end{equation*}
Next we compute
\begin{align*} \lim\limits_{x\to \infty}f(x) \amp = \lim\limits_{x\to \infty}\frac{\sqrt{x}}{x(1-1/x)} \\ \amp =\lim\limits_{x\to \infty}\frac{1}{\sqrt{x}}\cdot \frac{1}{1-1/x} \\ \amp = \lim\limits_{x\to \infty}\frac{1}{\sqrt{x}}\lim\limits_{x\to \infty}\frac{1}{1-1/x}\\ \amp = 0\cdot \frac{1}{\lim\limits_{x\to \infty}1-\lim\limits_{x\to \infty}1/x}\\ \amp = 0\cdot 1=0\text{.} \end{align*}
Thus \(y=0\) is a horizontal asymptote of \(f\text{.}\)
The only candidate for a vertical asymptote of \(f\) is \(x=1\text{.}\) We compute
\begin{align*} \lim\limits_{x\to 1^-}\frac{\sqrt{x}}{x-1} \amp = -\infty \amp (\text{type } 1/0)\\ \lim\limits_{x\to 1^+}\frac{\sqrt{x}}{x-1} \amp = \infty \amp (\text{type } 1/0)\text{.} \end{align*}
In particular, we see that \(x=1\) is a vertical asymptote of the graph of \(f\text{.}\)
Moving on, after some careful simplification, we see that
\begin{align*} f'(x) \amp =-\frac{x+1}{2\sqrt{x}(x-1)^2} \\ f''(x) \amp = \frac{3x^2+6x-1}{4x^{3/2}(x-1)^3} \end{align*}
for all \(x> 0\text{.}\) Note that both \(f'\) and \(f''\) are both undefined at \(0\text{.}\) It follows that \(x=0\) is the only critical point of \(f\text{.}\) We now compute the sign diagram of \(f'\text{.}\)
Sign diagram for derivative of f
Not in particular that \(f\) is decreasing on its entire domain.
To produce the sign diagram of \(f''\) we first solve
\begin{align*} f''(x) \amp = 0\\ 3x^2+6x-1 \amp = 0 \\ x \amp = \frac{-6\pm \sqrt{48}}{6}\\ \amp = -1\pm \frac{2\sqrt{3}}{3}\text{.} \end{align*}
Since only \(-1+2\sqrt{3}/3\) lies in the domain of \(f\text{,}\) we obtain the following sign diagram for \(f''\text{.}\)
Sign diagram for second derivative of f
Putting it all together, we get a graph like the following.
Graph of f
Observe how easy it would be to overlook the inflection point (the sole point plotted above in red) without our careful analysis.