How can I use trigonometric functions to simplify my vector algebra problem?

The_Brain
Messages
41
Reaction score
3
I hate Vector Algebra!

I am having some trouble doing some vector algebra and any help or direction is greatly appreciated.

In our lecture we drew a vector C(s) = A + s(B-A) which described a line passing through points A and B and found that the vector of min. length (shortest dist. from origin to line) was given by so = [A (dot) (A-B)]/[|B-A|2. The actual problem is to plug so into C(s) to show that C(so) = (sqrt(|A|2|B|2 - (A dot B)2))/(|B-A|).

What I have so far consists of changing [A (dot) (A-B)]/[|B-A|2 to [-A (dot) (B-A)]/[|B-A|2 so I can square the (B-A) however, when I do that I do not know how to then multiply that by the dot product of A. I know that A dot (B-A) is A dot B minus A dot A (A squared) but I have no idea how to do A dot (B-A)2. Thanks for any help.
 
Physics news on Phys.org
The_Brain said:
... I have no idea how to do A dot (B-A)2. Thanks for any help.
For a vector V, the quantity V2= ( V (dot) V ) is a scalar.
Note that A (dot) ( (B-A)2 ) is not a legal operation.
 
Sorry about my notation - I should have been more obvious about the A squared part being a scalar but thanks for telling me that A (dot) ( (B-A)2 ) is not a legal operation, now I know not to work in that direction.
 
Maybe not the most elegant solution

<br /> \def\vA {\vec A}<br /> \def\vB {\vec B}<br /> \def\vC {\vec C}<br /> \begin{align*}<br /> \vC<br /> &amp;= \vA + s(\vB-\vA)\\<br /> C^2 &amp;= A^2 + 2s\vA\cdot(\vB-\vA)+s^2(\vB-\vA)\cdot(\vB-\vA)\\<br /> \end{align*}<br />

with
<br /> \def\vA {\vec A}<br /> \def\vB {\vec B}<br /> \def\vC {\vec C}<br /> s_0=\frac{\vA\cdot(\vA-\vB)}{|B-A|^2}<br />

<br /> \def\vA {\vec A}<br /> \def\vB {\vec B}<br /> \def\vC {\vec C}<br /> \def\vAB {(\vA\cdot\vB)}<br /> \begin{align*}<br /> C(s_0)^2<br /> &amp;= A^2 + 2 \left[ \frac{\vA\cdot(\vA-\vB)}{|B-A|^2}\right]\vA\cdot(\vB-\vA)+\left[ \frac{\vA\cdot(\vA-\vB)}{|B-A|^2}\right]^2(\vB-\vA)\cdot(\vB-\vA)\\<br /> &amp;= A^2 - 2 \left[ \frac{\vA\cdot(\vA-\vB)}{|B-A|^2}\right]\vA\cdot(\vA-\vB)+ \frac{(\vA\cdot(\vA-\vB))^2}{|B-A|^2}\\<br /> &amp;= A^2 - \frac{(\vA\cdot(\vA-\vB))^2}{|B-A|^2}\\<br /> &amp;= \frac{A^2 (\vB-\vA)\cdot(\vB-\vA)- (\vA\cdot(\vA-\vB))^2}{|B-A|^2}\\<br /> &amp;= \frac{A^2 (B^2-2\vAB+A^2)- (A^2-\vAB)^2}{|B-A|^2}\\<br /> &amp;= \frac{A^2 (B^2-2\vAB+A^2)- (A^4-2A^2\vAB +\vAB^2)}{|B-A|^2}\\<br /> &amp;= \frac{A^2 B^2-2A^2\vAB+A^4- A^4+2A^2\vAB -\vAB^2}{|B-A|^2}\\<br /> &amp;= \frac{A^2 B^2-\vAB^2}{|B-A|^2}\\<br /> \end{align*}<br />
 
I think that's as elegenat as it can get. After about an hour two days ago, I finally came up with a solution that was just as long if not longer than yours. It seems as if it's just brute force is the route here. :bugeye: Thanks for all your help.
 
If you allow yourself to use some trigonometric functions, it may have been easier to manipulate.
Note that \vec A\cdot \vec B=AB\cos\theta so that A^2B^2-(\vec A\cdot \vec B)^2=A^2B^2-A^2B^2\cos^2\theta=A^2B^2(1-\cos^2\theta)=A^2B^2\sin^2\theta.
 
Back
Top