When a function has an explicit form such as f(x)=0 it is easy to draw it in TeX with a help of gnuplot:
Code: Select all
%& -shell-escape
\documentclass[12pt]{report}
\usepackage[cp1251]{inputenc}
\usepackage{graphicx}
\usepackage{tikz}
\begin{document}
\begin{figure}[!ht]
\centering
\begin{tikzpicture}
\draw[smooth,very thick] plot[id=f1,domain=-2:2,samples=600] function {x*x};
\end{tikzpicture}
\end{figure}
\end{document}