[Math] equation of tangent plane to sphere, given 2 points lying on plane

geometry

i have sphere $x^2+y^2+z^2=r^2$ and a vector with points $P=(x_1,y_1,z_1)$ and $Q=(x_2,y_2,z_2)$, i need equation of tangent plane where above two points lyes and touches the sphere in one point only?

Best Answer

So we want the plane that passes both $P$ and $Q$ and touches the sphere. Let that point, where the sphere and the plane meet be $X(\alpha, \beta, \gamma)$.

Since $X$ is on the sphere, it satisfies $\alpha^2+\beta^2+\gamma^2=r^2$.

Also, the vector $\vec{OX}$ will be the normal vector to the tangent plane. The plane passes $X$ so, the equation of the plane is $$\alpha(x-\alpha)+\beta(y-\beta)+\gamma(z-\gamma)=0$$ Thus,$$\alpha x+\beta y+\gamma z=r^2$$

This plane passes through $P$ and $Q$, so plugging the values in gives us, $$\alpha x_1+\beta y_1+\gamma z_1=r^2$$ $$\alpha x_2+\beta y_2+\gamma z=r_2^2$$

Overall, solve these three equations,

$$\alpha x_1+\beta y_1+\gamma z_1=r^2$$ $$\alpha x_2+\beta y_2+\gamma z_2=r^2$$ $$\alpha^2+\beta^2+\gamma^2=r^2$$

to get the values of $\alpha, \beta, \gamma$.

Related Question