My doubt is suppose we assume a 3D space with 2D surface in it given by some function z = f(x,y). Then each component of the gradient is geometrically the slope of the tangent at f on either x-z or y-z 2D plane which is basically a scalar. So mathematically or geometrically how does each of these components make a vector that gives a direction of steepest ascent and the slope of the surface at that point?
One intuition that I have thought of is since these two components (scalar values) are in perpendicular planes they should be combines using pythagoras formula to give resultant slope, but this doesn't seem sufficient explanation.