2
$\begingroup$

I'm not sure if I quite get this. For example,

(1, -1) and (-3, 3)

take the cross product, you will end up with -3 + (-3)

This doesn't equal 0, so it's not perpendicular. So that leaves me with it being parallel. When are two vectors parallel?

$\endgroup$
5
  • $\begingroup$ You mean dot product, not cross product. $\endgroup$ – user26486 Jun 13 '15 at 17:29
  • $\begingroup$ I think did you mean the "dot product". $\endgroup$ – Mann Jun 13 '15 at 17:29
  • 3
    $\begingroup$ Vectors $(a_1,a_2)$ and $(b_1,b_2)$ are parallel iff $\frac{a_1}{b_1}=\frac{a_2}{b_2}$ $\endgroup$ – user26486 Jun 13 '15 at 17:31
  • $\begingroup$ @user26486 Thanks! I really liked your comment. To clarify, is it because a vector is parallel if the ratio of one vector is equal to the ratio of another vector? $\endgroup$ – user71207 Jan 24 at 12:36
  • $\begingroup$ @user26486 would expressing it as $ \frac{a_1}{a_2}=\frac{b_1}{b_2} $ also be appropriate? $\endgroup$ – user71207 Jan 24 at 12:37
6
$\begingroup$

You can find the angle between the two vectors $$\theta=\cos^{-1}(\frac{v_1.v_2}{|v_1||v_2|})$$ if $\theta=0$or $180$ the two vectors are parallel

if $\theta=90$ the two vetors are perpendicular

$\endgroup$
4
  • $\begingroup$ In OP's problem, you get $$ \ \cos^{-1} \left( \frac{-6}{ \ \sqrt{2} \ \cdot \ 3 \sqrt{2}} \ \right) \ = \ \cos^{-1} (-1) \ = \ 180º \ \ , $$ so you may want to mention the case of anti-parallelism. (Some folks do use "parallel" to refer to any vectors that are collinear.) $\endgroup$ – colormegone Jun 13 '15 at 19:39
  • $\begingroup$ @RecklessReckoner Thanks $\endgroup$ – E.H.E Jun 13 '15 at 19:53
  • $\begingroup$ @colormegone: Please don't confuse (°, U+00B0: DEGREE SIGN) and (º, U+00BA: MASCULINE ORDINAL INDICATOR)! $\endgroup$ – Andreas Rejbrand Feb 24 '19 at 14:35
  • $\begingroup$ Amir Naseri's answer is much much faster to use. $\endgroup$ – user3210986 Feb 10 '20 at 22:51
9
$\begingroup$

Two vectors $v_1=(x_1,y_1)$ and $v_2=(x_2,y_2)$ are parallel iff $x_1 \, y_2 = x_2 \, y_1$.

$\endgroup$
2
  • 1
    $\begingroup$ excellent for numerical stability (no need to worry about float comparison with square root) $\endgroup$ – hLk May 13 '20 at 2:15
  • $\begingroup$ Great answer. To elaborate the derivation: If you write the two vectors as columns of a 2x2 matrix then if they’re parallel the determinant will be zero giving exactly the equation above: $x_1 y_2 - x_2 y_1=0$ $\endgroup$ – Adi Shavit Mar 25 at 22:01
2
$\begingroup$

Two vectors are parallel when they are scalar multiples of each other. In other words, if you can multiply one vector by a constant and end up with the other vector.

The rough reason for this is that multiplying by a scalar doesn't rotate the vector at all (it can stretch or flip the vector, but it doesn't change the direction).

$\endgroup$
1
$\begingroup$

They are parallel if and only if they are different by a factor i.e. (1,3) and (-2,-6). The dot product will be 0 for perpendicular vectors i.e. they cross at exactly 90 degrees.

When you calculate the dot product and your answer is non-zero it just means the two vectors are not perpendicular.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.