Is $g(x)=\log x$ convex function?

$\begingroup$

The graph of convex function is :

enter image description here

In a book it is written that $g(x)=\log x$ is strictly convex function.

So i searched for graph of $g(x)=\log x$ and found that

enter image description here

Though it has been said that $g(x)=\log x$ is strictly convex function, comparing these two graph it seems to me $g(x)=\log x$ is concave function .

Where am i doing mistake ?

$\endgroup$ 13

2 Answers

$\begingroup$

The function is concave if it's second derivative is negative. We have that $$ g''(x)=(\log(x))''=\biggl(\frac1x\biggr)'=-\frac1{x^2} $$ for $x>0$. Hence, $g(x)$ is a concave function.

$\endgroup$ $\begingroup$

The function $g(x)$ is a concave. You can see from your graph that the line passing through two given points on the curve lies below the graph of $g$, not above the graph (which you would get with a convex function).

$\endgroup$

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like