In this extra explanation we show that the slope (s) of the tangent line to the level curve of the function z(x,y) with value k is equal to
s=zx(x,y)zy(x,y).




The general form of the tangent line is ax+b, where a is the slope. The value of a is determined by the derivative of y(x), where y(x) is the function such that the tangent line is tangent to its graph. Since we deal with a level curve there is no function y(x) given, but this function is determined by
z(x,y)=k.

Hence, there exists a function y(x) such that z(x,y(x))=k. We differentiate both sides of this equation with respect to x, where we use the Chain rule: special case 2:

z(x,(y(x))=kDerivative with respect to~xzx(x,y(x))+zy(x,y(x))y(x)=0Solving for~y(x)zy(x,y(x))y(x)=zx(x,y(x))y(x)=zx(x,y(x))zy(x,y(x)).

The final step is of course only allowed when zy(x,y)0. Finally, we know that y(x)=y, hence
s=y(x)=zx(x,y)zy(x,y).