Is #f(x)=xtanx# concave or convex at #x=pi/4#?

1 Answer
Jan 14, 2018

The graph is concave up at #x=π/4# as tested through the second derivative.

Explanation:

To find concavity of a function at a certain point, you'll need the second derivative. Your function is:

#f(x)=xtanx#

In order to get to the second derivative, we have to go through the first. To do this, we'll use the product rule, which says

#d/dx(f(x)*g(x))=f'(x)*g(x)+g'(x)*f(x)#

So let's take the derivative of each side, and apply the rule.

#d/dx(x)=1#

#d/dx(tan(x))=sec^2(x)#

Therefore, the following statement can be made:

#d/dx(xtan(x))=tan(x)+xsec^2(x)#

However, this is just the first derivative, which only gives us instantaneous rate of change. We need the second in order to determine concavity. So we can do this again. We have a product rule on the right side, so let's take care of that. We already know the derivative of #tan(x)# and #x#, so let's worry about the secant.

This actually gives us a chain rule, since the secant is being squared. The chain rule says:

#d/dx(f(g(x)))=f'(g(x))*g'(x)#

In this case, #f(x)=x^2#, #g(x)=sec(x)#. So let's take the derivative of both:

#f'(x)=2x#
#g'(x)=sec(x)tan(x)#

Therefore, we can say

#d/dx(sec^2(x))=2sec^2(x)tan(x)#

This can be plugged into our first derivative to get

#d/dx(tan(x)+xsec^2(x))=sec^2(x)+sec^2(x)+2xsec^2(x)tan(x)#

or just

#2sec^2(x)+2xsec^2(x)tan(x)#

Finally, to find concavity at the point, we plug in the value. If it's greater than 0, it's concave upwards or concave downwards.

#2sec^2(π/4)+2π/4sec^2(π/4)tan(π/4)#

#2(2)+π/2*2*1#

#4+π#

Therefore, the graph is concave up at #x=pi/4#.