\documentclass[a4paper,12pt]{article}
\newcommand{\ds}{\displaystyle}
\newcommand{\un}{\underline}
\parindent=0pt
\begin{document}

{\bf Question}

Find the distance of the point(1,1,1) from the plane $x+2y+3z=6$.
Write down the vector equation of the plane.

\medskip

{\bf Answer}

${}$

\setlength{\unitlength}{.5in}
\begin{picture}(5,7)
\put(0,2){\line(1,0){4}}

\put(0,2){\line(1,3){1}}

\put(1,5){\line(1,0){4}}

\put(4,2){\line(1,3){1}}

\put(2,0){\vector(0,1){2.5}}

\put(2,1){\vector(0,-1){1}}

\put(2,0){\line(-1,1){1}}

\put(1,1){\line(0,1){1.5}}

\put(1,2.5){\line(2,1){1}}

\put(1.2,4.8){\line(1,0){.4}}

\put(1.2,4.8){\vector(0,1){1}}

\put(1.4,4.8){\line(0,1){.2}}

\put(1.2,4.8){\line(1,0){.2}}

\put(2,0){\makebox(0,0)[br]{0\ }}

\put(2,0){\circle*{.125}}

\put(1,2.5){\circle*{.125}}

\put(2,2.5){\circle*{.125}}

\put(1.2,4.8){\circle*{.125}}

\put(1,1){\circle*{.125}}

\put(2,2.3){\line(1,0){.2}}

\put(2.2,2.3){\line(0,1){.2}}

\put(2,2.5){\line(1,0){.5}}

\put(1,2.3){\line(2,1){.3}}

\put(1.3,2.45){\line(0,1){.2}}

\put(1.9,0.35){\makebox(0,0)[br]{$\theta$}}

\put(.9,1){\makebox(0,0)[r]{$P$}}

\put(2,2.55){\makebox(0,0)[bl]{$R$}}

\put(1,2.7){\makebox(0,0)[bl]{$Q$}}

\put(2.2,1.6){\makebox(0,0)[r]{$d$}}

\put(1.2,5.9){\makebox(0,0)[b]{$\hat{\bf{n}}$}}
\end{picture} \vspace{1.5in}

Let ${\bf{OP}}$ be ${\bf{i}},\ {\bf{j}},\ {\bf{k}}$ and
${\bf{PQ}}$ be the perpendicular distance from $P$ to the plane.

We require $|{\bf{PQ}}|$.

${\bf{PQ}}$ is in the direction of ${\bf{n}}$ the normal to the
plane, by definition.

Now the equation of the plane is

$$x+2y+3z=6$$

which can be rewritten as

$$(x{\bf{i}}+y{\bf{j}}+z{\bf{k}}) \cdot
({\bf{i}}+2{\bf{j}}+3{\bf{k}})=6$$

${\bf{n}}$ is thus
\begin{eqnarray*} \ds\frac{({\bf{i}}+2{\bf{j}}+3{\bf{k}})}
{|({\bf{i}}+2{\bf{j}}+3{\bf{k}})|} & = &
\ds\frac{({\bf{i}}+2{\bf{j}}+3{\bf{k}})}{\sqrt{1+4+9}}\\ & = &
\ds\frac{1}{\sqrt{14}}{\bf{i}}+\ds\frac{2}{\sqrt{14}}{\bf{j}}+\ds\frac{3}{\sqrt{14}}{\bf{k}}
\end{eqnarray*}

Thus ${\bf{r}} \cdot
\left(\ds\frac{1}{\sqrt{14}}{\bf{i}}+\ds\frac{2}{\sqrt{14}}{\bf{j}}
+\ds\frac{3}{\sqrt{14}}{\bf{k}}\right)=\ds\frac{6}{\sqrt{14}}$

A vector equation of the plane.

This, $\left(\ds\frac{6}{\sqrt{14}}\right)$, is the perpendicular
distance of 0 from the plane $d=|{\bf{OR}}|$.

Clearly $|{\bf{PQ}}|=|{\bf{OR}}|-|{\bf{OP}}| \cos \theta$

What is $|{\bf{OP}}| \cos \theta$?

$$|{\bf{OP}}| \cdot \hat {\bf{n}}=|{\bf{OP}}||\hat {\bf{n}}|\cos
\theta=|{\bf{OP}}|\cos \theta$$

Thus

\begin{eqnarray*} |{\bf{PQ}}| & = & |{\bf{OR}}|-{\bf{OP}} \cdot
\hat{\bf{n}}\\ & = & d-({\bf{OP}} \cdot \hat{\bf{n}})\\ & = &
\ds\frac{6}{\sqrt{14}}-({\bf{i}}+{\bf{j}}+{\bf{k}}) \cdot
\left(\ds\frac{1}{\sqrt{14}}{\bf{i}}+\ds\frac{2}{\sqrt{14}}{\bf{j}}
+\ds\frac{3}{\sqrt{14}}{\bf{k}}\right)\\ & = &
\ds\frac{6}{\sqrt{14}}-\left(\ds\frac{1}{\sqrt{14}}{\bf{i}}+\ds\frac{2}
{\sqrt{14}}{\bf{j}}+\ds\frac{3}{\sqrt{14}}{\bf{k}}\right)\\ & = &
\un{0}!!! \end{eqnarray*}

Thus it looks like (1,1,1) is in the plane.  Ooops it is!

Since if

\begin{eqnarray*} x+2y+3z & = & 6\\ \Rightarrow 1+2+3 & = & 6\\
\Rightarrow 6 & = & 6\end{eqnarray*}

(if $(x,y,z)=(1,1,1)$)

Thus the distance of the point (1,1,1) from the plane is 0, since
it lies in it!!!


\end{document}
