How Do You Define an Axis with Three Unit Vectors?

  • Context: Undergrad 
  • Thread starter Thread starter mattsap
  • Start date Start date
  • Tags Tags
    Axis
Click For Summary

Discussion Overview

The discussion revolves around defining an axis using three unit vectors (u, v, and w) at a given point P, with a focus on the mathematical and algorithmic approach to finding these vectors, particularly the vector v, which is perpendicular to u. The scope includes theoretical reasoning and practical algorithm development for computational purposes.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • Matt introduces the problem of defining a plane with a normal vector u and seeks to find a perpendicular vector v, noting that w can be derived as the cross product of u and v.
  • One participant explains that a vector u is perpendicular to a vector v if their dot product equals zero, proposing a step-by-step method to find v based on the components of u.
  • Another participant suggests that the approach resembles the Gram-Schmidt orthonormalization procedure, providing a method to derive v and w from a known basis of vectors.
  • A different participant questions the necessity of two normal vectors to define the plane and discusses the general equation of a plane, indicating that the coefficients can be derived directly from the components of the normal vector.

Areas of Agreement / Disagreement

Participants express differing views on the necessity of defining two perpendicular vectors to establish a plane, with some proposing methods to find these vectors while others question the approach. The discussion remains unresolved regarding the optimal method for defining the axis and the plane.

Contextual Notes

There are assumptions regarding the definitions of vectors and planes that may not be explicitly stated, and the discussion includes various mathematical steps that are not fully resolved.

mattsap
Messages
5
Reaction score
0
Hello,

I'm trying to define an axis as a set of 3 unit vectors--u, v, and w. at a given point P

Suppose we are given the following vector u. From this vector u, we must define a plane such that u is normal to the plane. This plane will be represented by two perpendicular vectors v and w.

There are infinite many solutions to this problem; however, I am writing a computer program to do this, so step by step algorithm is needed. I know that once we find v, w will be the cross product of u and v.

My problem is to find v.

Any suggestions?
-Matt =)
 
Last edited:
Physics news on Phys.org
So, what I've found out is that a vector u is perpendicular to a vector v if and only if the dot product is equal to 0. That being said, a particular solution would be the following:

Dot Product Equation: u1v1 + u2v2 + u3v3

Step one: Find the first non-zero component of u--let's call this ua and name the remaining components ub and uc.

That is (ua)(va) + (ub)(vb) + (uc)(vc) = 0; ua != 0

Step two: Set components vb and vc to any non-zero value. (I will choose vb = vc = 1)

That is (ua)(va) + ub + uc = 0

Step three: solve for va.

va = (-ub -uc)/ua

Step four: Make ua, ub, and uc a unit vector by dividing each component by the length of v-- sqrt (va^2 + vb^2 + vc^2).

Hope this helps =)
 
I believe you've rediscovered the Gram-Schmidt orthonormalization procedure.

All you need here is the vector u and a basis of three vectors that you already know span the space--x, y, and z.

Your first basis vector is u. The second basis vector is v = x - \hat u \cdot x. The third basis vector is w = y - \hat u \cdot y - \hat v \cdot y. These vectors all need to be normalized when you're done, and in general, you need three vectors (x, y, and z) in case one of these vectors is aligned perfectly with u or v, but this can be handled simply.
 
If I understood correctly you have a vector at a point and you want the plane that passes through that point and in normal to the vector, right? I am also not sure why you would need 2 normal vectors to define the plane.

The general equation of a plane is f(x,y,z)=ax+by+cz+d=0. You need three equations to find the constants.

The first is that the plane is passing through the vector origin, which gives you "d".

Now, your normal vector is \nabla f=ai+bj+ck. This is the vector that you already have, which means that the plane's coefficients a,b,c are simply the components of your vector. There is not even a need to find the unit normal :wink:

If all you want is the axis that the vector defines, you can always dot product it with i,j,k to find its components, and you get the axis in vector form directly.
 
Last edited:

Similar threads

  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
26
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 12 ·
Replies
12
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K