← Back to learning objective

Finding critical numbers of f(x) = sin(x) + cos(x)

Consider the function f(x)=sin⁡(x)+cos⁡(x)f(x) = \sin(x) + \cos(x) on the closed interval [0,2π][0, 2\pi].

Find all critical numbers of f(x)=sin⁡(x)+cos⁡(x)f(x) = \sin(x) + \cos(x) in the interval [0,2π][0, 2\pi].

Hint

Compute f′(x)f'(x) and set it equal to zero. Solve sin⁡(x)=cos⁡(x)\sin(x) = \cos(x) for xx in [0,2π][0, 2\pi], remembering that f′(x)f'(x) is defined everywhere here.

Step-by-step solution

Differentiate to get f′(x)=cos⁡(x)−sin⁡(x)f'(x) = \cos(x) - \sin(x), which is defined for all xx, so critical numbers occur only where f′(x)=0f'(x) = 0. Setting cos⁡(x)−sin⁡(x)=0\cos(x) - \sin(x) = 0 gives sin⁡(x)=cos⁡(x)\sin(x) = \cos(x), i.e., tan⁡(x)=1\tan(x) = 1.

On [0,2π][0, 2\pi], tan⁡(x)=1\tan(x) = 1 at x=π4x = \frac{\pi}{4} and x=5π4x = \frac{5\pi}{4}. These are the two critical numbers.

Increasing and decreasing intervals

Using the critical numbers of f(x)=sin⁡(x)+cos⁡(x)f(x) = \sin(x) + \cos(x) found above, determine the open intervals within [0,2π][0, 2\pi] on which ff is increasing and on which it is decreasing.

Hint

Test the sign of f′(x)=cos⁡(x)−sin⁡(x)f'(x) = \cos(x) - \sin(x) on each subinterval created by the critical numbers π/4\pi/4 and 5π/45\pi/4, for example by plugging in a test point from each subinterval.

Step-by-step solution

The critical numbers x=π/4x = \pi/4 and x=5π/4x = 5\pi/4 split [0,2π][0, 2\pi] into three subintervals: (0,π/4)(0, \pi/4), (π/4,5π/4)(\pi/4, 5\pi/4), and (5π/4,2π)(5\pi/4, 2\pi). Testing a point in each, such as x=0x=0, x=πx=\pi, and x=3π/2x=3\pi/2, gives f′(0)=1>0f'(0) = 1 > 0, f′(π)=−1<0f'(\pi) = -1 < 0, and f′(3π/2)=1>0f'(3\pi/2) = 1 > 0.

Since f′>0f'>0 on (0,π/4)(0,\pi/4) and (5π/4,2π)(5\pi/4, 2\pi), ff is increasing there. Since f′<0f'<0 on (π/4,5π/4)(\pi/4, 5\pi/4), ff is decreasing there.

Finding critical numbers of f(x) = sin(x) + cos(x) — solution graph

Classifying local extrema with the First Derivative Test

Apply the First Derivative Test to classify x=π/4x = \pi/4 and x=5π/4x = 5\pi/4 as local maxima, local minima, or neither for f(x)=sin⁡(x)+cos⁡(x)f(x) = \sin(x) + \cos(x).

Hint

Use the sign pattern of f′(x)f'(x) found on either side of each critical number: a change from positive to negative indicates a local max, negative to positive indicates a local min.

Step-by-step solution

At x=π/4x = \pi/4, f′(x)f'(x) changes from positive (on (0,π/4)(0,\pi/4)) to negative (on (π/4,5π/4)(\pi/4, 5\pi/4)), so by the First Derivative Test ff has a local maximum at x=π/4x=\pi/4.

At x=5π/4x = 5\pi/4, f′(x)f'(x) changes from negative (on (π/4,5π/4)(\pi/4, 5\pi/4)) to positive (on (5π/4,2π)(5\pi/4, 2\pi)), so ff has a local minimum at x=5π/4x = 5\pi/4. The corresponding values are f(π/4)=2f(\pi/4) = \sqrt{2} and f(5π/4)=−2f(5\pi/4) = -\sqrt{2}.

Related problems

Practice similar Calculus problems interactively.

Start Closing the Gap