Vários exemplos aqui: http://www.texample.net/tikz/examples/area/mathematics/
$ f(x) = (x - 2)^4 - (x - 2)^3 + (x - 2)^2 + 1 $, $ x^* = 2 $
\vspace{2em}
\begin{center}
\begin{tikzpicture}[scale=1.5,
declare function={
func(\x) = (\x - 2)^4 - (\x - 2)^3 + (\x - 2)^2 + 1;
}]
% draw grid
\draw[loosely dotted] (0,0) grid (4.0,5.0);
% draw axes
\draw[->] (-1,0) -- (4,0) node[right] {$x$};
\draw[->] (0,-1) -- (0,5) node[above] {$f(x)$};
% draw functions
\draw[<->, blue, line width=0.25mm] plot[domain=0.9:3.3,samples=1000] (\x,{func(\x)});
% node[below right] {$f(x) = (x - 2)^4 - (x - 2)^3 + (x - 2)^2 + 1$};
\fill (2,1) circle[red, radius=1pt]
node[below] {$x^*$};
\end{tikzpicture}
\end{center}