CODE
before starting the document.
\usepackage{tikz}
\usepackage{pgfplot}
\usepackage{tikz}
\usepackage{pgfplot}
\begin{tikzpicture}
\begin{axis}[option of the axis]
...
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
\begin{axis}
\addplot3[surf,]{x^2+y^2};
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
\begin{axis}
\addplot3[mash,]{x+10*y};
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
\begin{axis}
\addplot3[surf, colormap/cool]{x*y};
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
\begin{axis}
\addplot3[surf,]
coordinates {
(0,0,0) (0,1,0) (0,0.5,0)
(1,0,0) (1,1,1) (1,2,2)
(2,0,0) (2,1,1) (2,2,2)};
\end{axis}
\end{tikzpicture}
Now try to display the function: f(x,y)=x+y^3 for the solution move the mouse over the black box on the right
\begin{tikzpicture}
\begin{axis}
\addplot3[surf,]{x+y^3};
\end{axis}
\end{tikzpicture}