# Directional cosines of a line.

Show that if the lines with the directional cosines $(l, m, 0)$ and $(p, 0, q)$ are perpendicular then either $m = \frac {1}{\sqrt{p^2 + q^2}}$ or $q = \frac {1}{\sqrt {l^2 + m^2}}$.

-

I am assuming you mean $m = \frac {1}{\sqrt {p^2 + q^2}}$ or  $q = \frac {1}{\sqrt {l^2 + m^2}}$. – Bidit Acharya Apr 10 '12 at 19:00
@BiditAcharya Yes you are right. Sorry for the typo. – Faisal Apr 10 '12 at 19:04

## 1 Answer

Note here that when you write $(l,m,0)$ and $(p,0,q)$, these are the unit vectors along the respective lines.(Check on the definition of a direction cosine)
So, this'd mean that $$\sqrt{l^2+m^2}=1 ~~ \implies \frac1{\sqrt{l^2+m^2}}=1 \tag{1}$$ Similar reasoning allows us to deduce $$\sqrt{p^2+q^2}=1 ~~ \implies \frac1{\sqrt{p^2+q^2}}=1\tag{2}$$ Now note that $(l,m,0)$ and $(p,0,q)$ are perpendicular, so $$(l,m,0) \cdot(p,0,q)=0~~ \implies lp=0$$ One of them has to be zero right? Let's assume that $l=0$. Then from our result $(1)$, $m=1$ (it makes sense too, right? if $m \neq 1$ then our vector wouldn't be a unit vector would it?).

So one of our unit vectors reduces just to $(0,1,0)$, which is just a vector along the y-axis, or $\hat{\jmath}$.And what other unit vector do you know with the y-component $0$ (in the form $(p,0,q)$) and perpendicular to $\hat{\jmath}$? Obviously, it is the vector $\hat{k}$, or the vector $(0,0,1)$.

Now you should notice that from our deductions, $m=q=1$.
If you revisit $(1)$ and $(2)$ you have $$q=\frac1{\sqrt{l^2+m^2}}$$ and, $$m=\frac1{\sqrt{p^2+q^2}}$$

Hope it Helps!

-
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 24, "mathjax_display_tex": 5, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": false, "boilerplate_config": {"ratio_threshold": 0.3, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9280518293380737, "perplexity_flag": "head"}