Find two perpendicular vectors which are perpendicular to another

In summary: So let u=<1,0,0>. Then v=<0,1,0>x<1,0,0>=<0,0,1>. (You could choose <0,1,0> for u and get the same result but I chose <1,0,0> for variety.) So u=<1,0,0> and v=<0,0,1> are perpendicular to each other and both are perpendicular to <-4,2,5>.
  • #1
yanyin
21
0
find two perpendicular vectors u and v such that each is perpendicular to w = <-4, 2, 5>
 
Physics news on Phys.org
  • #2
this smells like the grahm schmit process which i don't remember.

assuming you're using the standard dot product denoted by a period.
for the first vector, you want <a,b,c>.<-4, 2, 5>=0.

how about a=3, b=1, c=2? <3,1,2>.<-4,2,5>=-12+2+10=0.

for the second vector, take the cross product denoted by x of those two:

vector 3 = <3,1,2>x<-4,2,5>. i get <1,-23,10>.

check: <3,1,2>.<1,-23,10>=3-23+20=0
<-4,2,5>.<1,-23,10>=-4-46+50=0.
 
  • #3
how about not first assuming a=3, b=1 and c=2, but instead using equations to figure out the vectors
 
  • #4
well, you can let <a,b,c> and <d,e,f> be two vectors meeting your criteria.

then <-4, 2, 5>.<a,b,c>=0, <-4, 2, 5>.<d,e,f>=0, and <a,b,c>.<d,e,f>=0.

-4a+2b+5c=0
-4d+2e+5f=0
ad+be+cf=0.

that takes more work than an ordinary linear system i think.
 
  • #5
No of Unknows a,b,c,d,e,f and no of eq 3.

?U can't find it unless some additional conditions are given
 
  • #6
there are infinitely many solutions.

-4a+2b+5c=0
-4d+2e+5f=0
ad+be+cf=0.

if you take the following values, note that it works:
a=3
b=1
c=2
d=1
e=-23
f=10.
 
  • #7
Yes u can find a relation not a unique solution
 
  • #8
"find two perpendicular vectors u and v such that each is perpendicular to w = <-4, 2, 5>"

Since the problem only asks for two vectors and there are infinitely many, I would do it this way:

Write u= <2, 4, 0>. By taking the k component 0, I can just "swap" the i, j components to get <2, 4, 0>.<-4, 2, 5>= 0 trivially.

Now take the cross product of those two vectors to find a third vector orthogonal to both. I get <20,-10,20> and since we only want "perpendicular", <2, -1, 2> will do.

u= <2, 4, 0> and v= <2, -1, 2> are perpendicular to each other and both are perpendicular to <-4, 2, 5>.
 
  • #9
so the common thread seems to be to 'eyeball' a solution in the first case and then to use the cross product to find the third vector. if the question was as stated then that's what you're supposed to do. now if you haven't learned about the cross product yet, then here's what you might do:
0. start with w=<-4,2,5>.
1. eyeball a vector whose dot product with w is 0. for example, u=<2,4,0> works. (you are doing one more thing than just swapping the coordinates though; you're also switching one sign.)
2. now go to equations. let v=<a,b,c>. we want v.w=0 and v.u=0.
then -4a+2b+5c=0 and
2a+4b+0c=0.

to solve this system, note that you can solve the second equation to get a=-2b. then when you substitute that into the first equation, you get -4(-2b)+2b+5c=0 or 10b+5c=0. from this, you get b=-c/2. going back to a=-2b, you get a=c. note that you can't solve for all variables to get just one vector. that's because this set of equations has only two in it while there are three unknowns.

so v=<c,-c/2,c> satisfies the two conditions v.w=0 and v.u=0 for every value of c.

note that if you let c=20 or c=2, you get the two solutions hallsofivy produced.

this is more work than taking the cross product, of course.
 
  • #10
Originally posted by yanyin
find two perpendicular vectors u and v such that each is perpendicular to w = <-4, 2, 5>
Gramm-Schmidt procedure:

1) Start with the given vector to which you want all others to be perpendicular. Normalize it (Not really necessary, but useful for step 2).

2) Take any other vector and subtract from it its own projection along the first vector (absolutely, completely, and by all means arbitrary, no eyeballing required (well, except, of course, that it can't be a scaled version of the first vector)). Normalize the result (Again, not necessary, but useful for step 3).

3) Take any other vector that is not a scaled version of the previous two, and subtract from it its own projection along the previous two vectors. ...




To make it more concrete, an example:

1) Let's say that we're starting with w. That takes care of step (1). But, for posterity, let's normalize:
w' = w/w = <-4,2,5>/5

2) Just as a randomly selected vector, I will take v'' = <1,0,0>. Nice and simple. Now I will subtract its projection:
v' = v'' - (v''.w')w'
= <1,0,0> - (-4/5)(<-4,2,5>/5) = <1,0,0> + <-16/25,8/25,4/5> = <9/25,8/25,4/5>
Normalizing:
v = <9,8,20>/(&radic;545)
(At this point, the advantage of initial eyeballing is aparent.)

3) To find the last vector:
u'' = <0,1,0>. Subtracting the projection: ...

Oh hell, I don't want to do it. Suffice it to say that you don't have to eyeball. Hopefully that makes you more comfortable with the procedure. Also note that you don't have to normalize either, but it makes the projection a simpler calculation.



I just thought of an alternative approach. Find the matrix that either rotates w to be along the z axis. Then, operate the inverse of the matrix on <1,0,0> and <0,1,0>. Does anyone know if this would work? I'll see if the matrix is too difficult.

OK, I can't remember. Given two matrices, &Omega; and &Lambda;, and a vector, &phi;, does this relationship hold:
&Omega;(&Lambda;&phi;) = (&Omega;&Lambda;)&phi;?
 
Last edited:
  • #11
himanshu121 said:
No of Unknows a,b,c,d,e,f and no of eq 3.

?U can't find it unless some additional conditions are given

Is it possible to find a unique solution given the following cross products/conditions:

y x Z = X, Z x X = Y, and X x Y = Z?


This results in:

x1=z3*y2-z2*y3
x2=z1*y3-z3*y1
x3=z2*y1-z1*y2

y1=z2*x3-z3*x2
y2=z3*x1-z1*x3
y3=z1*x2-z2*x1

z1=x2*y3-x3*y2
z2=x3*y1-x1*y3
z3=x1*y2-x2*y1

which I believe should be enough to solve this system (9 eq. and 6 unknowns). Is my reasoning correct?
 
  • #12
yanyin said:
find two perpendicular vectors u and v such that each is perpendicular to w = <-4, 2, 5>
Choose any vector, other than a multiple of w, for u and let v be the cross product of u and w.
 
  • #13
We can do it as follows:

Let the original vector be (x,y,z). Write it in spherical polar coordinates as
(R sin theta cos phi, R sin theta sin phi, R cos theta).
Consider this vector to be obtained by starting with the (0,0,R), rotating by theta in the z-x plane and then by phi in the x-y plane. If we now take (R,0,0) and (0,R,0) and perform the same rotations, we'll get 2 new vectors,
(R cos theta cos phi, R cos theta sin phi, -R sin theta)
(-R sin theta, R cos theta, 0)
You can see that these are perpendicular to each other and to the original vector. In terms of the original components, we can write them
(zx/r, zy/r, -r)
(-Ry/r, Rx/r, 0)
where r = sqrt(x^2 + y^2)
 
  • #14
the question is... |r(t)| = 1 for all t, then |r(t)| is orthogonal to r(t) for all t.
 
  • #15
yanyin said:
find two perpendicular vectors u and v such that each is perpendicular to w = <-4, 2, 5>

Take any vector that is perpendicular to w such as v=(5,0,4). Now have the third vector as u=(x,y,z) and solve the two equations u.v=0, u.w=0 (ofcourse you will not have a unique answer). From the last equation you get infinitely many solutions which infact is the vector space spanned by the third orthonormal vector. Just pick one such vector and you are done.
 

1. What is the definition of a vector?

A vector is a mathematical object that has both magnitude (size) and direction. It is often represented by an arrow pointing in the direction of the vector, with the length of the arrow representing the magnitude.

2. How do you find two perpendicular vectors?

To find two perpendicular vectors, you can use the cross product or dot product of two given vectors. If the dot product is equal to zero, then the two vectors are perpendicular. Another method is to use the properties of perpendicular lines, where the dot product of two lines that are perpendicular is always zero.

3. Can there be more than one pair of perpendicular vectors?

Yes, there can be multiple pairs of perpendicular vectors. As long as one vector is not a scalar multiple of the other, there will be other vectors that are perpendicular to it.

4. How can you visually represent two perpendicular vectors?

Two perpendicular vectors can be visually represented on a coordinate plane as two lines that intersect at a 90-degree angle. Alternatively, they can also be represented as two arrows pointing in different directions, with one rotated 90 degrees from the other.

5. Why are perpendicular vectors important in mathematics and science?

Perpendicular vectors have many applications in mathematics and science. They are used in geometry, physics, and engineering to describe and analyze various systems and phenomena. For example, in physics, the force exerted on an object can be represented as a vector, and if the object is moving in a circular path, the force and velocity vectors would be perpendicular to each other.

Similar threads

Replies
4
Views
1K
  • Precalculus Mathematics Homework Help
Replies
20
Views
673
  • General Math
Replies
3
Views
792
  • Calculus
Replies
4
Views
1K
  • General Math
Replies
20
Views
1K
Replies
5
Views
20K
Replies
4
Views
3K
Replies
9
Views
1K
  • Introductory Physics Homework Help
Replies
8
Views
1K
Back
Top