If you look in any textbook you'll find a proof (or atleast a justification) for this
the directional derivative of a function is given by
where n is a unit vector in the direction that your taking the derivative. And grad f is evaluated at the specified point.
in this case it would be