which one is the right way for finding the normal vector to the surface

71 Views Asked by At

In wolfram website it is mentioned that if $z=f(x,y)$ then the normal vector to the surface $z$ is $[f_x(x,y) \quad f_y(x,y) \quad -1]^T$ where $f_x$ and $f_y$ are the partial derivatives with respect to $x$ and $y$ respectively. Further, it is written that if $ax+by+cz+d=0$ then the normal vector is $[a \quad b \quad c]. $ Now if I write $ax+by+cz+d=0$ as $z=-\left(d/c+ax/c+by/c\right)$ and from this expression the normal vector turns out to be $[-a/c \quad -b/c \quad -1]$ which is not exactly $[a \quad b \quad c]$. Why we get two different answers here for normal vector?

3

There are 3 best solutions below

4
On BEST ANSWER

Both vectors are correct. The point to note here is that they are indeed parallel vectors, since we can write: $$v_2=\alpha*v_1$$ where $\alpha$ in this case is equal to $-1/c$.

Since they're linearly dependent, they're both normal to the given plane.

2
On

They both are valid normal vectors since they are multiple and then parallel , indeed

$$[a \, b \, c]=-c \cdot [-a/c \, -b/c \, -1]$$

0
On

Consider $g(x,y,z) = z-f(x,y) = 0$ instead.

Now

$$ \nabla g(x,y,z) \ \mbox{is the normal vector to the surface}\ \ z-f(x,y)=0 $$