Suppose \(z=f(x,y)\) is a function of two variables with a domain of \(D\). Given a point \((a,b)\) in the domain of \(f\), we choose a direction to travel from that point.
We measure the direction using an angle \(θ\), which is measured counterclockwise in the \(x\), \(y\)-plane, starting at zero from the positive \(x\)-axis. The distance we travel is \(h\) (where \(h\) is parallel to the \(x\), \(y\)-plane) and the direction we travel is given by the unit vector \(\textbf{u}=(\cos θ)\textbf{i}+(\sin θ)\textbf{j}\).
The directional derivative of \(f\) in the direction of \(\textbf{u}\) is given by:
Provided that the limit exist.
Let \([x = a + h \cos θ]\) and \([y =b+h \sin θ]\), and define \(g(h)=f(x,y)\). Since \(f_x\) and \(f_y\) both exist, and therefore \(f\) is differentiable, that means:
If \(h=0\), then \(x=a\) and \(y=b\), so:
By definition of \(g'(h)\):
Putting the two together: