Tutorials › AP Calculus › Curve Analysis for Trigonometric Functions

Concavity and Curve Analysis · Tutorial 388 of 999

Curve Analysis for Trigonometric Functions

Learn to combine derivative and concavity information with domain and asymptotic behavior to describe trigonometric curves on a given interval.

Advanced 11 min read

What You'll Learn

  • Use first and second derivatives to analyze sine and cosine on a specified interval
  • Locate extrema and inflection points by checking derivative and concavity signs
  • Analyze tangent on intervals separated by its vertical asymptotes
  • Determine one-sided behavior near tangent’s vertical asymptotes
  • Avoid treating points outside a function’s domain as critical points

What to Track in Trigonometric Curve Analysis

A trigonometric function’s familiar repeating shape does not remove the need for careful curve analysis. The interval matters: it determines which critical points, inflection points, and vertical asymptotes are relevant. A complete analysis combines the function’s domain with the signs of its first and second derivatives.

Unless stated otherwise, angles are measured in radians. Sine and cosine are defined for every real number. Tangent is defined only where cosine is nonzero, so its domain excludes \(x=\frac{\pi}{2}+k\pi\), where \(k\) is an integer.

Derivative formulas: For \(f(x)=\sin x\), \(f'(x)=\cos x\) and \(f''(x)=-\sin x\). For \(f(x)=\cos x\), \(f'(x)=-\sin x\) and \(f''(x)=-\cos x\). For \(f(x)=\tan x\), wherever it is defined, \(f'(x)=\sec^2 x\) and \(f''(x)=2\sec^2 x\tan x\).

A positive first derivative indicates that the function is increasing, and a negative first derivative indicates that it is decreasing. A positive second derivative indicates concavity up; a negative second derivative indicates concavity down. For inflection points, look for a change in concavity—not merely a zero or undefined second derivative.

Why Derivative Signs Reveal the Curve’s Shape

The connection between derivative signs and the graph follows from the Mean Value Theorem. If \(f\) is continuous on \([a,b]\), differentiable on \((a,b)\), and \(f'(x)>0\) throughout \((a,b)\), then for some \(c\in(a,b)\),

$$ \frac{f(b)-f(a)}{b-a}=f'(c)>0. $$

Since \(b-a>0\), this implies \(f(b)>f(a)\). Thus a positive derivative throughout an interval guarantees that the function increases there; a negative derivative guarantees that it decreases. The second derivative applies the same reasoning to \(f'\): if \(f''>0\), then \(f'\) increases, which corresponds to the graph bending upward. If \(f''<0\), then \(f'\) decreases, corresponding to bending downward.

For trigonometric functions, periodicity helps organize the sign analysis. Sine and cosine repeat every \(2\pi\), while tangent repeats every \(\pi\). Derivatives inherit these repeating signs. On a new interval, however, identify the relevant zeros and domain breaks rather than assuming that a familiar sketch gives the answer.

Worked Example: Analyze Sine on an Interval

Worked Example: Analyze \(f(x)=2\sin x\) on \([-\pi,2\pi]\)

The domain is all real numbers, so the function is defined throughout the interval. Differentiate:

$$ f'(x)=2\cos x, \qquad f''(x)=-2\sin x. $$

Critical numbers inside the interval occur where \(f'(x)=0\). Thus \(2\cos x=0\), or \(\cos x=0\). The solutions in \([-\pi,2\pi]\) are \(x=-\frac{\pi}{2},\frac{\pi}{2},\frac{3\pi}{2}\). Checking the sign of \(2\cos x\) on the resulting intervals gives:

IntervalSign of \(f'(x)\)Behavior
\((-\pi,-\frac{\pi}{2})\)NegativeDecreasing
\((-\frac{\pi}{2},\frac{\pi}{2})\)PositiveIncreasing
\((\frac{\pi}{2},\frac{3\pi}{2})\)NegativeDecreasing
\((\frac{3\pi}{2},2\pi)\)PositiveIncreasing

The derivative changes from negative to positive at \(-\frac{\pi}{2}\), so that point is a local minimum. It changes from positive to negative at \(\frac{\pi}{2}\), a local maximum, and from negative to positive at \(\frac{3\pi}{2}\), another local minimum. Their function values are:

$$ f\left(-\frac{\pi}{2}\right)=2\left(-1\right)=-2,\qquad f\left(\frac{\pi}{2}\right)=2(1)=2,\qquad f\left(\frac{3\pi}{2}\right)=2(-1)=-2. $$

For concavity, solve \(f''(x)=0\): \(-2\sin x=0\), so \(\sin x=0\). The interior zeros are \(x=0\) and \(x=\pi\). On \((-\pi,0)\), sine is negative, so \(-2\sin x>0\): the graph is concave up. On \((0,\pi)\), sine is positive, so \(-2\sin x<0\): it is concave down. On \((\pi,2\pi)\), sine is negative again, so the graph is concave up. Concavity changes at \(0\) and \(\pi\), giving inflection points \((0,0)\) and \((\pi,0)\).

At the interval endpoints, \(f(-\pi)=2\sin(-\pi)=0\) and \(f(2\pi)=2\sin(2\pi)=0\). Comparing these values with the interior extrema shows that the absolute maximum on the interval is \(2\), at \(x=\frac{\pi}{2}\), and the absolute minimum is \(-2\), at \(x=-\frac{\pi}{2}\) and \(x=\frac{3\pi}{2}\).

As a check, differentiating \(2\sin x\) gives \(2\cos x\), and differentiating again gives \(-2\sin x\), as used above. Substituting each critical number into \(f\) gives the stated extremum values; substituting \(0\) and \(\pi\) gives \(f(0)=f(\pi)=0\), the stated inflection-point heights.

Worked Example: A Change in Frequency

Worked Example: Analyze \(g(x)=\cos(2x)\) on \([0,\pi]\)

The function is defined throughout the interval. The chain rule gives:

$$ g'(x)=-2\sin(2x), \qquad g''(x)=-4\cos(2x). $$

Within the interval, \(g'(x)=0\) when \(\sin(2x)=0\). Since \(2x\) ranges from \(0\) to \(2\pi\), the solutions are \(x=0,\frac{\pi}{2},\pi\). The endpoints are included in the interval, and the only interior critical number is \(x=\frac{\pi}{2}\). On \((0,\frac{\pi}{2})\), \(2x\) lies in \((0,\pi)\), so \(\sin(2x)>0\) and \(g'(x)<0\). On \((\frac{\pi}{2},\pi)\), \(2x\) lies in \((\pi,2\pi)\), so \(\sin(2x)<0\) and \(g'(x)>0\). Therefore \(g\) decreases and then increases.

The second derivative is zero when \(\cos(2x)=0\). The solutions in the interval are \(x=\frac{\pi}{4}\) and \(x=\frac{3\pi}{4}\). The sign of \(g''\) is negative on \((0,\frac{\pi}{4})\), positive on \((\frac{\pi}{4},\frac{3\pi}{4})\), and negative on \((\frac{3\pi}{4},\pi)\). Thus the curve is concave down, then concave up, then concave down. The concavity changes at both candidates, and

$$ g\left(\frac{\pi}{4}\right)=\cos\left(\frac{\pi}{2}\right)=0, \qquad g\left(\frac{3\pi}{4}\right)=\cos\left(\frac{3\pi}{2}\right)=0. $$

The inflection points are \((\frac{\pi}{4},0)\) and \((\frac{3\pi}{4},0)\). At the endpoints, \(g(0)=\cos(0)=1\) and \(g(\pi)=\cos(2\pi)=1\). At the interior critical number, \(g(\frac{\pi}{2})=\cos(\pi)=-1\). Therefore the absolute maximum on this interval is \(1\) at both endpoints, and the absolute minimum is \(-1\) at \(x=\frac{\pi}{2}\).

To check the chain-rule factors, differentiating \(\cos(2x)\) gives \(-\sin(2x)\cdot 2=-2\sin(2x)\); differentiating that gives \(-2\cos(2x)\cdot 2=-4\cos(2x)\). The critical value and both inflection-point values follow by direct substitution as shown.

Tangent: Domain Breaks and Vertical Asymptotes

Tangent requires special attention because it is undefined where \(\cos x=0\). Its vertical asymptotes occur at \(x=\frac{\pi}{2}+k\pi\), for integers \(k\). These points divide its domain into separate intervals. Analyze each branch on its own; an excluded asymptote is not a point on the graph and cannot be a critical point or an extremum.

Vertical asymptote behavior: A vertical line \(x=a\) is a vertical asymptote when the function grows without bound in magnitude as \(x\) approaches \(a\) from at least one side. For tangent, the one-sided limits determine whether the function tends to \(+\infty\) or \(-\infty\).

Worked Example: Analyze One Branch of Tangent

Worked Example: Analyze \(h(x)=\tan x\) on \((-\frac{\pi}{2},\frac{\pi}{2})\)

The endpoints are excluded because \(\tan x\) is undefined there. On the open interval, \(\cos x\ne 0\), so:

$$ h'(x)=\sec^2 x=\frac{1}{\cos^2 x}>0. $$

The derivative is positive everywhere on the branch, so tangent is increasing throughout. It has no critical numbers there: its derivative never equals zero, and there are no points in the interval where its derivative is undefined.

Differentiating again gives

$$ h''(x)=2\sec^2 x\tan x. $$

Since \(\sec^2 x>0\), the sign of \(h''(x)\) is the sign of \(\tan x\). Tangent is negative on \((-\frac{\pi}{2},0)\) and positive on \((0,\frac{\pi}{2})\). Thus the graph is concave down on the first interval and concave up on the second. The concavity changes at \(x=0\), where \(h(0)=0\), so \((0,0)\) is an inflection point.

To find the behavior near the ends, use \(\tan x=\frac{\sin x}{\cos x}\). As \(x\) approaches \(-\frac{\pi}{2}\) from the right, sine approaches \(-1\) and cosine approaches \(0\) through positive values. Therefore \(\tan x\) tends to \(-\infty\). As \(x\) approaches \(\frac{\pi}{2}\) from the left, sine approaches \(1\) and cosine approaches \(0\) through positive values, so \(\tan x\) tends to \(+\infty\):

$$ \lim_{x\to-\pi/2^+}\tan x=-\infty, \qquad \lim_{x\to\pi/2^-}\tan x=+\infty. $$

The branch therefore has vertical asymptotes \(x=-\frac{\pi}{2}\) and \(x=\frac{\pi}{2}\). As a check, differentiating \(\tan x\) gives \(\sec^2 x\), and differentiating again gives \(2\sec^2 x\tan x\). The second derivative is zero at \(x=0\), and its sign changes from negative to positive there, confirming the inflection point.

A Common Mistake: Treating an Excluded Point as Critical

A critical number must be a number in the function’s domain where the derivative is zero or does not exist. For example, a tempting but incorrect argument for tangent is:

$$ h'(x)=\sec^2 x \text{ is undefined at } x=\frac{\pi}{2}, \text{ so } x=\frac{\pi}{2} \text{ is a critical number.} $$

The conclusion is wrong because \(\tan(\frac{\pi}{2})\) is itself undefined. That point is not in the function’s domain, so it cannot be a critical number or an extremum. It is a vertical asymptote. Analyze the branch to the left and the branch to the right separately.

A related caution applies to inflection points: solving \(f''(x)=0\) identifies candidates, not automatically inflection points. Check whether concavity actually changes across each candidate, and confirm that the function is defined there.

Check Your Understanding

For each question, use the specified interval and justify conclusions with derivative signs, concavity, or one-sided behavior as appropriate.

  1. For \(f(x)=\sin x\) on \([0,2\pi]\), where is the function increasing, decreasing, and concave up?
  2. For \(g(x)=\cos x\) on \([-\pi,\pi]\), identify the interior critical numbers and classify their local extrema.
  3. Why is \(x=\frac{\pi}{2}\) not a critical number of \(\tan x\)?
  4. For \(h(x)=\tan x\) on \((0,\frac{\pi}{2})\), determine its concavity and its limit as \(x\) approaches \(\frac{\pi}{2}\) from the left.
  5. What must be checked before a zero of a trigonometric function’s second derivative can be called an inflection point?

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon