[Math] Find tangent vector to surface given a point on the surface and its normal vector (for a sphere)

3dgeometrylinear algebrasurfacesvector-spaces

I need to know how to find a tangent vector to a point on the surface of a sphere if I am given the point P and the normal vector at that point N.

I know that there are many possible tangent vectors to choose from, but I was wondering also if it is possible so that regardless of which point on the surface I choose, the tangent vectors are all "oriented" the same way.

Lastly, does the nature of the surface matter? For instance, would the method used to find the tangent vector differ at all if I was dealing with a flat surface/plane instead of a sphere?

Best Answer

If you know the normal vector $\vec N=(n_1,n_2,n_3)$ of a surface at a point $P=(x_0,y_0,z_0)$ then the plane tangent to the surface at $P$ is given by $n_1(x-x_0)+n_2(y-y_0)+n_3(z-z_0)=0$. This is just the equation of a plane given a point and it's normal vector (you should look into that). Any vector in this plane is tangent to the surface. This holds for any surface as long as you know the normal vector at $P$. If you don't know what the normal vector is then you have to use partial derivatives.

Related Question