Matlab has a fun, built in function called peaks, which has three local maxima, three local minima, and tapers off to zero. It's formula is:
A 3D graph looks like so:
The curves that we see on the surface are called level curves. If we plot them together in a plane, we generate a contour diagram of the function.