How do you determine the intervals where the graph of the given function is concave up and concave down #f(x)= sinx-cosx# for #0<=x<=2pi#?

2 Answers
May 26, 2015

Whenever a problem asks for concave up or down intervals, we have to use the second derivative test. Concavity involves the curvature of a graph; at a given interval, taking the first derivative gives us a increasing or decreasing function linearly, while the second derivative allows us to see how a function curves up or down exponentially (like the parabola #y=x^2#, where it curves up always).

Recall that for #f(x)=sin(x)-cos(x)#, we can use trigonometry derivatives:

First derivative - #f'(x)=cos(x)+sin(x)#
Second derivative - #f''(x)=cos(x)-sin(x)#.

After solving for the second derivative, we then have to find the inflection points. At these points, there is no curvature as the function's concavity changes from concave up to down or vice versa. Thus, we can say that #f''(x)=0#.

Solving for #x# using trigonometry, the inflection points are:

#0=cos(x)-sin(x)#

#sin(x)=cos(x)=>tan(x)=1#

#x=pi/4, (5pi)/4# for #0<=x<=2pi#.

Now, we can test some values around the inflection points to see where #f''(x)# is positive (concaves up) or negative (concaves down):

For #x=0#, #f''(0)=cos(0)-cancel(sin(0))=+1#.
For #x=pi/2#, #f''(pi/2)=cancel(cos(pi/2))-sin(pi/2)=-1#.
For #x=(3pi)/2#, #f''((3pi)/2)=cancel(cos((3pi)/2))-sin((3pi)/2)=+1#.

Thus,
#f(x)# concaves up at #x:[0,pi/4)uu((5pi)/4,2pi]# and
#f(x)# concaves down at #x:(pi/4,(5pi)/4)#.

Unlike the brackets, the parentheses () indicate greater than (#>#) or less than (#<#) but not equal to. By graphing the function #f(x)=sin(x)-cos(x)#:
graph{sin(x)-cos(x) [-1.57079632679, 6.28318530718, -3, 3]}
Our answer is correct. A number line is very helpful for marking the inflection points and where the function is positive or negative; see my setup to a similar calculus problem (the last part of my second answer):

http://socratic.org/questions/using-the-second-derivative-f-x-36x-2-12-how-do-you-find-the-intervals-in-which-#145860