# How to draw graph of logarithm function?

I can draw polynomials using Tikz in Latex but I am not able to draw graphs of logarithms,exponential etc.

You can try some thing like this:

\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.3}
\begin{document}

\begin{tikzpicture}
\begin{axis}[restrict y to domain=-10:10]