I'm currently trying to understand the proof of the directional derivative of a multivariate function $f(x,y)$ at the point $(x_0,y_0)$ along the vector $\vec u \langle a,b \rangle $.
$$D_\vec u f(x_0,y_0) = \lim_{h\to0} \dfrac{f(x_0 + ah, y_0 + bh) - f(x_0, y_0)}{h}$$
Then, it says let's put:
$$ g(h) = f(x_0 + ah, y_0 + bh) $$
How can we change a function of 2 variables to a function of only one variable, which is a totally different one. Is it really valid? How is this process called, I couldn't find the exact name to search for more details. Thank you.