I'm trying to understand directional derivatives. If I have a function $f(x,y)$ then $\frac{\partial f}{\partial x}|_{x_0,y_0}=f_x$is the slope of a tangent line to a curve parallel to the X-Z plane and $\frac{\partial f}{\partial y}|_{x_0,y_0}=f_y$is the slope of a tangent line to a curve parallel to the Y-Z plane at point $(x_0,y_0)$
$\implies \nabla f= <f_x,f_y>$
and now if I want to find the slope of a curve obtained by slicing $f(x,y)$ by a plane parallel to some vector $\overrightarrow u = <a,b>$ then we can get the parametric equation of the line parallel to $\overrightarrow u$ through the point $(x_0,y_0)$
as $$ \begin{matrix} x=x_0+as\\ y=y_0+bs\\ \end{matrix} $$
By using the chain rule,
$$ \begin{matrix} \frac{df}{ds}=\frac{\partial f}{\partial x}\frac{dx}{ds}+\frac{\partial f}{\partial y}\frac{dy}{ds} \\ \frac{df}{ds}=\nabla f \cdot \frac{d\overrightarrow r}{ds}\\ \frac{df}{ds}=\nabla f \cdot \overrightarrow u\\ \end{matrix} $$
But why is the professor considering $\frac{d\overrightarrow r}{ds}$ as to $\overrightarrow u$ And, why does $\overrightarrow u$ have to be a unit vector? What is the significance of this? and how is $\frac{df}{ds}$ same as directional derivative. It all seems muddled and awkward