f[x_,y_]:=x^2+y^2
Plot3D[f[x,y],{x,-2,2},{y,-2,2}]

Plot3D[f[x,y],{x,-2,2},{y,-2,2}, BoxRatios->Automatic]