Why Periodicity Matters
Sine and cosine repeat their values, so an interval can contain several peaks and troughs. To find an absolute maximum or minimum on a closed interval, it is not enough to inspect the endpoints or to examine only one cycle. We must locate every interior critical number in the interval and compare the function values there with the endpoint values.
This tutorial uses radians. The derivative formulas are \((\sin x)'=\cos x\) and \((\cos x)'=-\sin x\). Since sine and cosine are continuous and differentiable for every real \(x\), their critical numbers occur where the derivative is zero.
The Candidate Method on a Closed Interval
For a continuous function on a closed interval \([a,b]\), the Extreme Value Theorem guarantees that the function attains both an absolute maximum and an absolute minimum. If the function is also differentiable in the interval's interior, every interior location of an absolute extremum must be a critical number. Consequently, the endpoints and the interior critical numbers form a complete candidate list.
Here is why the candidate list is complete. By the Extreme Value Theorem, an absolute maximum is attained at some point \(c\in[a,b]\). If \(c=a\) or \(c=b\), it is already an endpoint candidate. If \(a<c<b\), it is an interior local maximum. For small positive \(h\), the maximum property gives \(f(c+h)-f(c)\leq 0\), so the right-hand difference quotient is nonpositive. For small negative \(h\), the quotient \((f(c+h)-f(c))/h\) is nonnegative. If \(f'(c)\) exists, both one-sided limits equal that derivative, so \(f'(c)\leq 0\) and \(f'(c)\geq 0\). Thus \(f'(c)=0\). The same argument applies to an absolute minimum. Therefore, every absolute extremum is represented among the endpoints and interior critical numbers.
For trigonometric functions, the main additional task is solving the derivative equation correctly. The solutions usually repeat periodically. Write the full family of solutions first, then keep exactly those that lie strictly inside the interval. Endpoints are included separately, even if the derivative also vanishes there.
Sine and Cosine: Critical-Point Patterns
For \(f(x)=\sin x\), the derivative is \(f'(x)=\cos x\). Its critical numbers satisfy \(\cos x=0\), so
At these points, sine alternates between \(1\) and \(-1\). For \(g(x)=\cos x\), the derivative is \(g'(x)=-\sin x\), and its critical numbers satisfy
At even multiples of \(\pi\), cosine is \(1\); at odd multiples, it is \(-1\). These patterns identify where to look, but the interval still determines which solutions belong in the candidate list. The function values must then be compared with both endpoint values.
Worked Example: Sine Across More Than One Cycle
Find the absolute maximum and minimum of \(f(x)=\sin x\) on \([-\pi/2,2\pi]\).
First differentiate: \(f'(x)=\cos x\). Interior critical numbers satisfy
The solutions strictly inside the interval are \(x=\pi/2\) and \(x=3\pi/2\). The endpoint candidates are \(x=-\pi/2\) and \(x=2\pi\). Evaluate all four:
The largest candidate value is \(1\), attained at \(x=\pi/2\). The smallest is \(-1\), attained at \(x=-\pi/2\) and \(x=3\pi/2\). To check the critical points, \(\cos(\pi/2)=0\) and \(\cos(3\pi/2)=0\); the endpoint evaluations agree with the sine values at those angles. Thus the absolute maximum is \(1\), and the absolute minimum is \(-1\).
Worked Example: Cosine on a Partial Cycle
Find the absolute extrema of \(g(x)=\cos x\) on \([0,5\pi/4]\).
The derivative is \(g'(x)=-\sin x\), so the critical numbers satisfy \(\sin x=0\), or \(x=k\pi\). Only \(x=\pi\) lies strictly between \(0\) and \(5\pi/4\). The full candidate list is therefore \(0,\pi,5\pi/4\). Their values are
The maximum candidate value is \(1\), at \(x=0\). The minimum candidate value is \(-1\), at \(x=\pi\). The derivative check is \(-\sin\pi=0\), and direct substitution confirms both endpoint values. Hence the absolute maximum is \(1\) and the absolute minimum is \(-1\).
Simple Sine-Cosine Combinations
A common combination is \(f(x)=A\sin x+B\cos x+C\), where \(A\), \(B\), and \(C\) are constants and \(A\) and \(B\) are not both zero. Its derivative is
Thus its interior critical numbers solve \(A\cos x-B\sin x=0\). The equation is periodic, but its solutions need to be filtered through the given interval just as for sine and cosine alone. Avoid dividing by \(\cos x\) until checking whether \(\cos x=0\) could solve the original equation. Once the candidates are identified, compare the original function values, including the constant term \(C\).
For instance, when \(A\neq 0\), an equation \(A\cos x-B\sin x=0\) can be rewritten as \(\tan x=A/B\) only if \(B\neq 0\) and \(\cos x\neq 0\). The original derivative equation remains the reliable starting point, especially when one coefficient is zero.
Worked Example: A Sine-Cosine Combination on a Full Cycle
Find the absolute maximum and minimum of \(f(x)=3\sin x+4\cos x\) on \([0,2\pi]\).
Differentiate and set the derivative equal to zero:
At a solution, \(\cos x\) cannot be zero: if \(\cos x=0\), then \(-4\sin x\) is either \(-4\) or \(4\), not zero. We may therefore divide by \(\cos x\), obtaining \(\tan x=3/4\). Let \(\alpha=\arctan(3/4)\), where \(0<\alpha<\pi/2\). The critical numbers in \((0,2\pi)\) are \(\alpha\) and \(\alpha+\pi\).
Since \(\tan\alpha=3/4\) and \(\alpha\) is in the first quadrant, a right triangle with opposite side \(3\), adjacent side \(4\), and hypotenuse \(5\) gives \(\sin\alpha=3/5\) and \(\cos\alpha=4/5\). Hence
Adding \(\pi\) reverses both sine and cosine, so
The endpoints give \(f(0)=4\) and \(f(2\pi)=4\). Comparing the four candidate values, \(5\) is largest and \(-5\) is smallest. Check the critical equations: at \(\alpha\), \(3(4/5)-4(3/5)=0\); at \(\alpha+\pi\), \(3(-4/5)-4(-3/5)=0\). Therefore the absolute maximum is \(5\) at \(x=\alpha\), and the absolute minimum is \(-5\) at \(x=\alpha+\pi\).
A Reliable Workflow
A careful solution makes the interval restriction visible. In particular, listing a general periodic family is not the same as identifying which members are inside the interval.
Use the derivative of each trigonometric term to find \(f'(x)\).
Set \(f'(x)=0\), write the full periodic solution family, and select the solutions in the open interval \((a,b)\).
Include \(a\) and \(b\) whether or not the derivative vanishes there.
Substitute every candidate into the original function. The greatest and least values give the absolute maximum and minimum.
Common Pitfall: Solving the Wrong Equation
Critical numbers come from setting the derivative equal to zero, not from setting the function equal to zero. For example, on \([0,\pi]\), an incorrect approach to \(f(x)=\sin x\) might solve \(\sin x=0\), find only the endpoints, and conclude that the largest value is \(0\). But those are zeros of the function, not its critical numbers.
The correction is to differentiate first: \(f'(x)=\cos x\). The interior critical equation is \(\cos x=0\), which gives \(x=\pi/2\) in \((0,\pi)\). The candidate values are \(\sin 0=0\), \(\sin(\pi/2)=1\), and \(\sin\pi=0\). Therefore the absolute maximum is \(1\) at \(x=\pi/2\), while the absolute minimum is \(0\) at both endpoints.
A related error is to identify a correct periodic family but test only one of its solutions. On a longer interval, several members may occur, and their function values may represent different extrema or repeated occurrences of the same extremum. Always restrict the full solution family to the interval before making the comparison.
Why the Comparison Is Essential
A critical point is only a candidate; the derivative equation alone does not tell you whether its value is the greatest or least on the whole interval. An endpoint can be more extreme than every interior critical value, and more than one candidate can attain the same absolute value. The conclusion comes from evaluating the original function at the complete candidate list, not merely from naming a point where the derivative vanishes.
For trigonometric functions, periodicity makes this final comparison especially important. A closed interval may contain several critical points, or only part of a cycle, and the endpoints need not fall at familiar angles. Keep the interval, the complete candidate list, and the evaluated function values together in the solution.
Check Your Understanding
For each question, identify the relevant candidate list or explain the comparison required.
- What equation must be solved to locate interior critical numbers of \(f(x)=\cos x\)?
- On \([0,2\pi]\), which interior critical numbers must be tested for \(f(x)=\sin x\)?
- For \(g(x)=2\sin x-\cos x\), what equation gives its interior critical numbers?
- Why must both endpoints be evaluated even when neither is a critical number?
- For \(f(x)=\sin x\) on \([0,\pi]\), what incorrect conclusion could result from solving \(\sin x=0\) instead of \(f'(x)=0\)?