Let = = be the vector from point P to point Q.
Let = be the unit vector from point P in the direction of point Q,
Let be the line through P in the direction defined by u. The parametric equations of this line are
Along this line the function values of are given by
The requisite directional derivative is then .
Alternatively, obtain the vector = = and compute its dot product with u so that