Question on dot product of vectors.

yungman
Messages
5,741
Reaction score
294
\vec r = \hat x x + \hat y y + \hat z z \;\Rightarrow \;r = \sqrt { x^2+y^2+z^2} \;,\, \hat r= \frac { \hat x x + \hat y y + \hat z z}{ r}

I want to find the dot product (\hat x -\hat r \frac x r) \cdot (\hat x -\hat r \frac x r)

1) \hat x -\hat r \frac x r = \hat x - \frac { (\hat x x + \hat y y + \hat z z) x }{ r^2} = \frac { \hat x (y^2+z^2) - \hat y xy - \hat z xz}{r^2} \;\Rightarrow\; (\hat x -\hat r \frac x r) \cdot (\hat x -\hat r \frac x r) = \frac {(y^2+z^2)^2+x^2y^2+x^2z^2}{r^4}= \frac {(y^2+z^2)(x^2+y^2+z^2)}{r^4}=\frac {(y^2+z^2)}{r^2}




2) But if I just blind do the dot product:

(\hat x -\hat r \frac x r) \cdot (\hat x -\hat r \frac x r) = 1 + \frac {x^2}{r^2}

Here, all I did is \hat x \cdot \hat x \;\hbox { and } \hat r \cdot \hat r.




Is it true for dot product, only independent variable can dot together, \hat r is a dependent variable of \hat x so I cannot use the 2) method to perform dot product. Is this true?

Thanks

Alan
 
Physics news on Phys.org
when u open the bracket directly (as done in point 2), you get three terms, one of x_cap.x_cap, one of r_cap.r_cap, which you have written write, but term of x_cap.r_cap you have missed.

since r_cap is (x x_cap + y y_cap + z z_cap)/\sqrt{}(x*x+y*y+z*z), so r_cap.x_cap is not zero, as your second method is actually doing
 
piyushkumar said:
when u open the bracket directly (as done in point 2), you get three terms, one of x_cap.x_cap, one of r_cap.r_cap, which you have written write, but term of x_cap.r_cap you have missed.

since r_cap is (x x_cap + y y_cap + z z_cap)/\sqrt{}(x*x+y*y+z*z), so r_cap.x_cap is not zero, as your second method is actually doing

I got it. Thanks.

Alan
 
Back
Top