Tutorials › AP Calculus › Trigonometric Extrema Across Periods

Monotonicity and Local Extrema · Tutorial 356 of 999

Trigonometric Extrema Across Periods

Learn to list the trigonometric critical points in an interval, classify them from derivative sign changes, and account for the interval’s endpoints.

Intermediate 10 min read

What You'll Learn

  • Find sine and cosine critical numbers using periodic formulas.
  • Classify trigonometric critical points from the signs of the derivative on either side.
  • Restrict an infinite periodic list of candidates to a specified interval.
  • Apply the method to a sine function with a phase shift and vertical stretch.
  • Distinguish interior local extrema from one-sided extrema at interval endpoints.
  • Avoid assuming that a derivative sign change alone proves an extremum without continuity.

Why Periodicity Matters for Extrema

Sine and cosine repeat their values and derivative patterns. As a result, their local maxima and minima occur in repeating families rather than at just a few isolated inputs. When a problem specifies an interval, the task is to identify which members of those families lie in the interval and classify them using the sign of the derivative.

The sign-change method is useful because it links the graph’s local behavior to increasing and decreasing intervals. For trigonometric functions, periodicity makes the candidate locations predictable, but it does not remove the need to check the specified interval or the derivative signs.

Key idea: A differentiable trigonometric function can have a local maximum where its derivative changes from positive to negative, and a local minimum where its derivative changes from negative to positive. Periodicity lets us describe such points with integer-indexed formulas and then select the points in the interval.

Local Extrema and the Derivative-Sign Test

A function \(f\) has a local maximum at \(x=c\) if there is an open interval around \(c\) on which \(f(c)\geq f(x)\) for every \(x\) in the domain. A local minimum is defined by reversing the inequality. If the domain is a specified closed interval, an endpoint can also be a one-sided local extremum relative to that domain.

For an interior point \(c\), a derivative sign change provides a sufficient test when the function is continuous at \(c\). Sine and cosine, and the transformed trigonometric functions considered here, are continuous everywhere.

Theorem: Suppose \(f\) is continuous at \(c\), differentiable immediately to the left and right of \(c\), and \(f'(x)>0\) just left of \(c\) while \(f'(x)<0\) just right of \(c\). Then \(f\) has a local maximum at \(c\). If the signs are negative on the left and positive on the right, \(f\) has a local minimum at \(c\).

A point where \(f'(c)=0\), or where the derivative does not exist, is a critical number when \(c\) is in the domain. A critical number is a candidate for an extremum, not a guarantee of one. In the sine and cosine examples, the derivatives exist everywhere, so we find candidates by solving \(f'(x)=0\).

Periodic Critical Points of Sine and Cosine

The derivative of \(\sin x\) is \(\cos x\). Thus the critical numbers of \(\sin x\) satisfy \(\cos x=0\), giving \(x=\frac{\pi}{2}+k\pi\), where \(k\) is any integer. The signs of the cosine derivative alternate at these points: odd multiples of \(\frac{\pi}{2}\) in the form below give maxima or minima according to their position in the cycle.

$$ \sin x: \qquad \begin{aligned} \text{local maxima at }&\frac{\pi}{2}+2k\pi,\\ \text{local minima at }&\frac{3\pi}{2}+2k\pi, \end{aligned} \qquad k\in\mathbb Z. $$

The derivative of \(\cos x\) is \(-\sin x\). Its critical numbers satisfy \(\sin x=0\), so \(x=k\pi\). At even multiples of \(\pi\), cosine is \(1\); at odd multiples it is \(-1\). The derivative changes from positive to negative at the former and from negative to positive at the latter.

$$ \cos x: \qquad \begin{aligned} \text{local maxima at }&2k\pi,\\ \text{local minima at }&(2k+1)\pi, \end{aligned} \qquad k\in\mathbb Z. $$

To use these formulas on a specified interval, solve the appropriate inequalities for the integer \(k\). Checking only one cycle is not enough if the interval covers several cycles.

Why the Sign Change Gives an Extremum

Here is the reasoning behind the derivative-sign test. If \(f'(x)>0\) throughout an interval to the left of \(c\), the Mean Value Theorem implies that \(f\) is increasing there: for \(x_1<x_2<c\), there is a point \(d\) between them such that

$$ f(x_2)-f(x_1)=f'(d)(x_2-x_1)>0. $$

Therefore, values to the left of \(c\) increase as the input approaches \(c\). Continuity at \(c\) ensures that these values approach \(f(c)\), so they do not exceed \(f(c)\). If \(f'(x)<0\) to the right, the same argument shows that values decrease as the input moves away from \(c\). Together these facts establish a local maximum. Reversing both signs establishes a local minimum.

Continuity is essential to this conclusion: derivative signs on either side do not, by themselves, determine the value assigned at \(c\). For the trigonometric functions in this tutorial, continuity is assured.

Worked Example: Classifying Sine Extrema on an Interval

Worked Example: Classifying Sine Extrema on an Interval

Find and classify the interior local extrema of \(f(x)=\sin x\) on \([-\pi,2\pi]\). Then check whether either endpoint is a one-sided local extremum relative to this interval.

Differentiate: \(f'(x)=\cos x\). The critical numbers satisfy

$$ \cos x=0 \quad\Longrightarrow\quad x=\frac{\pi}{2}+k\pi. $$

Keep only values strictly between \(-\pi\) and \(2\pi\). Substituting integer values of \(k\) gives \(x=-\frac{\pi}{2},\frac{\pi}{2},\frac{3\pi}{2}\). The next values, \(x=-\frac{3\pi}{2}\) and \(x=\frac{5\pi}{2}\), lie outside the interval.

At \(-\frac{\pi}{2}\), the derivative changes from negative to positive, so there is a local minimum. Its value is \(f(-\frac{\pi}{2})=-1\). At \(\frac{\pi}{2}\), the derivative changes from positive to negative, giving a local maximum with value \(1\). At \(\frac{3\pi}{2}\), the derivative changes from negative to positive, giving a local minimum with value \(-1\).

At the left endpoint, \(f(-\pi)=0\), and just to its right the sine values are negative, so \(-\pi\) is a one-sided local maximum relative to the interval. At the right endpoint, \(f(2\pi)=0\), and just to its left the sine values are negative, so \(2\pi\) is also a one-sided local maximum.

Check the interior classifications by substitution: \(\sin(-\frac{\pi}{2})=-1\), \(\sin(\frac{\pi}{2})=1\), and \(\sin(\frac{3\pi}{2})=-1\). These agree with the minimum and maximum values found from the derivative signs.

Worked Example: Classifying Cosine Extrema Across Several Periods

Worked Example: Classifying Cosine Extrema Across Several Periods

Find and classify the interior local extrema of \(g(x)=\cos x\) on \([0,5\pi]\).

The derivative is \(g'(x)=-\sin x\), so critical numbers satisfy \(\sin x=0\), or \(x=k\pi\). The interior of the interval contains \(k=1,2,3,4\), giving \(x=\pi,2\pi,3\pi,4\pi\).

On \((0,\pi)\), \(\sin x>0\), so \(g'(x)<0\); on \((\pi,2\pi)\), \(\sin x<0\), so \(g'(x)>0\). Thus \(x=\pi\) is a local minimum. The signs reverse across \(2\pi\), so it is a local maximum. They alternate at the remaining points: \(3\pi\) is a local minimum and \(4\pi\) is a local maximum.

Substitution checks the values:

$$ \cos(\pi)=-1,\quad \cos(2\pi)=1,\quad \cos(3\pi)=-1,\quad \cos(4\pi)=1. $$

These values match the classifications. The endpoints are not included among the interior critical numbers. Relative to the interval, \(0\) is a one-sided local maximum because cosine decreases immediately to its right, and \(5\pi\) is a one-sided local minimum because cosine values immediately to its left are greater than \(-1\).

Worked Example: A Shifted and Stretched Sine Function

Worked Example: A Shifted and Stretched Sine Function

Find and classify the interior local extrema of \(h(x)=2\sin(3x-\frac{\pi}{6})+1\) on \([0,\pi]\).

Differentiate using the chain rule:

$$ h'(x)=2\cos\left(3x-\frac{\pi}{6}\right)\cdot 3 =6\cos\left(3x-\frac{\pi}{6}\right). $$

Set the derivative equal to zero. The cosine is zero when its angle is \(\frac{\pi}{2}+k\pi\):

$$ 3x-\frac{\pi}{6}=\frac{\pi}{2}+k\pi \quad\Longrightarrow\quad 3x=\frac{2\pi}{3}+k\pi \quad\Longrightarrow\quad x=\frac{2\pi}{9}+\frac{k\pi}{3}. $$

For \(0<x<\pi\), the admissible integers are \(k=0,1,2\). The critical numbers are therefore \(\frac{2\pi}{9},\frac{5\pi}{9},\frac{8\pi}{9}\). At the first, the phase is \(\frac{\pi}{2}\); the cosine changes from positive to negative, so \(h'\) changes from positive to negative and the point is a local maximum. At the second, the phase is \(\frac{3\pi}{2}\); the derivative changes from negative to positive, so it is a local minimum. At the third, the phase is \(\frac{5\pi}{2}\); the derivative changes from positive to negative, so it is a local maximum.

Evaluate the function at each point. The sine values at these phases are \(1,-1,1\), respectively, so the corresponding function values are

$$ h\left(\frac{2\pi}{9}\right)=3,\qquad h\left(\frac{5\pi}{9}\right)=-1,\qquad h\left(\frac{8\pi}{9}\right)=3. $$

These values verify the expected high, low, and high values of the stretched sine wave. As an endpoint check, \(h(0)=0\) and \(h(\pi)=2\). The derivative is positive just to the right of \(0\), making \(0\) a one-sided local minimum on this interval; it is negative just to the left of \(\pi\), making \(\pi\) a one-sided local maximum.

A Common Mistake: Forgetting the Repeating Candidates

A frequent error is to find one critical point of sine and stop, even when the interval spans multiple periods. For example, claiming that \(\sin x\) has only one critical number, \(x=\frac{\pi}{2}\), on \([0,4\pi]\) ignores the equation \(\cos x=0\) at every point \(x=\frac{\pi}{2}+k\pi\).

To correct the calculation, impose the interval restriction:

$$ 0\leq \frac{\pi}{2}+k\pi\leq 4\pi \quad\Longrightarrow\quad -\frac{1}{2}\leq k\leq \frac{7}{2}. $$

The integer values are \(k=0,1,2,3\), so the critical numbers are \(\frac{\pi}{2},\frac{3\pi}{2},\frac{5\pi}{2},\frac{7\pi}{2}\). Their derivative signs alternate: maxima occur at \(\frac{\pi}{2}\) and \(\frac{5\pi}{2}\), and minima at \(\frac{3\pi}{2}\) and \(\frac{7\pi}{2}\). The correction is to use the full periodic formula and then restrict its integer index to the interval.

Using the Method Reliably

For a sine, cosine, or shifted and stretched version, a careful solution follows the same sequence:

1
Differentiate.
Include the chain-rule factor for a nontrivial angle such as \(Bx+C\).
2
Find all critical numbers.
Solve \(f'(x)=0\), expressing periodic solutions with an integer index.
3
Apply the interval restriction.
Find every indexed solution in the specified interval, not just the first one.
4
Check derivative signs.
A positive-to-negative change gives a local maximum; a negative-to-positive change gives a local minimum, provided continuity holds at the point.
5
Evaluate and check.
Substitute the inputs into the original function to find the extremum values, and treat endpoints separately if the domain includes them.

The method matters because periodic graphs can contain many extrema within one interval. Listing all candidates prevents omissions, while the derivative signs justify the classification. A derivative equal to zero alone does not identify a maximum or minimum, and an interior sign-change test should not be used to classify an endpoint without considering the domain’s one-sided behavior.

Check Your Understanding

For each question, use periodic critical-point formulas and derivative signs; distinguish interior points from interval endpoints.

  1. Find and classify the interior local extrema of \(\sin x\) on \([0,3\pi]\).
  2. Find the interior local extrema of \(\cos x\) on \([-\pi,3\pi]\), including their function values.
  3. For \(f(x)=3\sin(2x)\), write the general formulas for its local maxima and local minima.
  4. Why is a critical number not automatically a local extremum?
  5. What additional property at \(c\) is needed to use the two-sided derivative-sign test as stated?

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