Dot product for non-orthogonal co-ordinate systems

Click For Summary

Discussion Overview

The discussion revolves around the validity of the dot product of vectors in non-orthogonal coordinate systems, particularly in the context of a 2D system with axes separated by 120 degrees. Participants explore the implications of this on calculations in power systems and phase-locked loops.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant questions whether the dot product is valid when the frame of reference unit vectors are not orthogonal.
  • Another participant asserts that the dot product is defined independently of the basis used.
  • A mathematical formulation is proposed to generalize the dot product in non-linear coordinate systems using transformation matrices.
  • Follow-up questions are raised about the applicability of a specific equation involving the dot product in the context of the non-orthogonal coordinate system.
  • Clarifications are requested regarding the notation used for angles between basis vectors.
  • Concerns are expressed about whether the relationship between the dot product and the cosine of the angle between vectors holds in non-orthogonal systems.
  • One participant shares their practical application involving a phase comparator in a three-phase phase-locked-loop and discusses challenges faced with unbalanced mains samples.
  • Another participant suggests a specific formula for the dot product in the case of 120-degree separation between unit vectors and questions its equivalence to the polar form.
  • Discussion includes the nature of the input and feedback waveforms, with a focus on sine waves and their phase relationships.
  • One participant mentions the potential for representing waveforms using an over-determined set of basis vectors despite having only two linearly independent vectors.

Areas of Agreement / Disagreement

Participants express varying viewpoints on the implications of non-orthogonal bases for the dot product, with no consensus reached on the specific mathematical relationships or their applicability in practical scenarios.

Contextual Notes

Participants note that the relationship between the dot product and the cosine of the angle between vectors may not hold in non-orthogonal systems, and there are unresolved questions regarding the derivation and application of specific formulas in this context.

Who May Find This Useful

Individuals interested in the mathematical foundations of vector operations in non-orthogonal systems, particularly in engineering applications related to power systems and signal processing.

Dave in NZ
Messages
8
Reaction score
0
Is the result of a dot product of two vectors valid if the frame of reference unit vectors are not orthgonal?

i.e. 2D 3 axis co-ordinate system as commonly used in power systems where the axis are 120 degrees apart in 2D space?
 
Physics news on Phys.org
Of course. The dot product is defined independently of the basis.
 
The Dot product is the inner product. So for linear coordinates we could generalize as follows:

Let :

[tex]X'=UX[/tex]

[tex]U^{-1}X'=X[/tex]

[tex]X^TX=(X')^T((U^{-1})^TU^{-1}X'=(X')^TAX'[/tex]

Where:

[tex]A=((U^{-1})^TU^{-1}[/tex]

For non linear coordinate forms post it in the sub form dealing with tensors.
 
Thanks for the help, I have a follow up question:-

Does the following still apply?

(V1)(U1)+(V2)(U2)+(V3)(U3) = (R1)(R2)cos [(w1-w2)]

where V and U are the input vectors referenced to the 2D 120degree separated 3-axis co-ordinate system. R1 is the magnitude of vector V and R2 is the magnitude of vector U. w1 is the angle of R1, w2 is the angle of R2.
 

Attachments

  • dotproductmaths.gif
    dotproductmaths.gif
    2.3 KB · Views: 685
Dave in NZ said:
Thanks for the help, I have a follow up question:-

Does the following still apply?

(V1)(U1)+(V2)(U2)+(V3)(U3) = (R1)(R2)cos [(w1-w2)]

where V and U are the input vectors referenced to the 2D 120degree separated 3-axis co-ordinate system. R1 is the magnitude of vector V and R2 is the magnitude of vector U. w1 is the angle of R1, w2 is the angle of R2.

Let's try the derivation another way:

Call the unit bais vectors in your coordinate system b1 b2 b2.

and let's call your vectors u and v instead of w1 and w2.

Then:
[tex]\mbox{\boldmath$ u $} \cdot \mbox{\boldmath$ v $}=(u_1 \mbox{\boldmath$ b_1 $} + u_2 \mbox{\boldmath$ b_2 $}<br /> +u_3 \mbox{\boldmath$ b_3 $}) \cdot (v_1 \mbox{\boldmath$ b_1 $}+ v_2 \mbox{\boldmath$ b_2 $}<br /> +v_3 \mbox{\boldmath$ b_3 $})[/tex]

[tex]\mbox{\boldmath$ u $} \cdot \mbox{\boldmath$ v $}=\sum_{i=1}^{3}\sum_{j=1}^{3}u_iv_jcos(b_i,b_j)[/tex]

And if the coordinates are orthognal then:

[tex]cos(b_i,b_j)=\delta_{i,j}[/tex]

Also regardless of the coordinate system:

[tex]|{\mbox{\boldmath$ u $}|=\sqrt{\mbox{\boldmath$ u $} \cdot \mbox{\boldmath$ u $}}[/tex]
 
Last edited:
Hi John, I'm rusty on notation.

Please would you expand "cos (bi,bj)"?

am I correct to assume from the special case for orthogonal unit vectors that the inner product for the non-orthgonal unit vector case is not simply R1R2cos(angle between vectors). Where R1 and R2 are the magnitudes of the two vectors?

thanks again
 
Dave in NZ said:
Hi John, I'm rusty on notation.

Please would you expand "cos (bi,bj)"?
I don't think it is standard notation. I just used it to represent the angle between the two unit basis vectors. The unit basis vectors are vectors of unit length and parallel to one of the axes.

am I correct to assume from the special case for orthogonal unit vectors that the inner product for the non-orthgonal unit vector case is not simply R1R2cos(angle between vectors). Where R1 and R2 are the magnitudes of the two vectors?

thanks again

If the vectors are unit vectors then their lengths R1 and and R2 are equal to one so you only care about the angle between them. Length is sometimes also called norm. The norm of w is given by:

[tex]|w|=sqrt(w \cdot w)=sqrt(w^Tw)[/tex]

Note: I didn't bother using bold in this post.
 
Thank you John. Your explanations have been very useful. Cheers Dave
 
Dave in NZ said:
Thank you John. Your explanations have been very useful. Cheers Dave

Cool. What do you plant to use it for?
 
  • #10
The phase comparator in a three phase phase-locked-loop. i.e. I've calculated the dot product of the incoming mains samples with the feedback waveform samples without doing a Clark tranform to the incoming mains samples first. The aim is to reduce computation time and keep all information, the downside is now the waveforms are not orthogonal, and hence my doubt whether the relationship between the dot product and the UVcos(u,v) holds.

The code is running in a TI DSP, but I have been getting errors I cannot account for when the incoming mains is unbalanced. Its either a calculation error or an error in the fundamental mathematics, hence the questions regarding the relationship between the dot product calculation and the commonly used polar form. I'm attempting to narrow down the options.

The overall application is a 3 phase rectifier.
 
  • #11
Dave in NZ said:
The phase comparator in a three phase phase-locked-loop. i.e. I've calculated the dot product of the incoming mains samples with the feedback waveform samples without doing a Clark tranform to the incoming mains samples first. The aim is to reduce computation time and keep all information, the downside is now the waveforms are not orthogonal, and hence my doubt whether the relationship between the dot product and the UVcos(u,v) holds.

The code is running in a TI DSP, but I have been getting errors I cannot account for when the incoming mains is unbalanced. Its either a calculation error or an error in the fundamental mathematics, hence the questions regarding the relationship between the dot product calculation and the commonly used polar form. I'm attempting to narrow down the options.

The overall application is a 3 phase rectifier.

Ah, now I see why you didn't want to use an orthogonal basis. So, I hope that my expression for the dot product in a non orthogonal basis was clear.
 
  • #12
to clarify would the answer for 120 degrees between unit vectors be:-

u.v = (u1)(v1)+(u2)(v2)+(u3)(v3)-(0.5)[(u1)(v2)+(u1)(v3)+(u2)(v1)+(u2)(v3)+(u3)(v1)+(u3)(v2)]

then can I assume that this is equal to:-

(u)(v)cos(angle between them)

I need the polar form to be representive as I feed what is now the scaled cosine of the phase error into the NCO to generate the feedback waveforms
 
  • #13
Dave in NZ said:
to clarify would the answer for 120 degrees between unit vectors be:-

u.v = (u1)(v1)+(u2)(v2)+(u3)(v3)-(0.5)[(u1)(v2)+(u1)(v3)+(u2)(v1)+(u2)(v3)+(u3)(v1)+(u3)(v2)]

then can I assume that this is equal to:-

(u)(v)cos(angle between them)

I need the polar form to be representive as I feed what is now the scaled cosine of the phase error into the NCO to generate the feedback waveforms

It looks right to me to me provided that by unit vectors you mean the basis vectors for your coordinate system. It sounds like from your above post that you are doing a power application. It would make sense that if each waveform was a sine wave then the phase should be related to the angle between the waveforms.

However, if the waveforms were something else, then this wouldn't be the case.For instance, if the waveform was a pulse train then a small phase delay would cause the waveforms to be orthogonal.
 
Last edited:
  • #14
The inputs (U) are sinewaves as are the feedback waveforms (V). when locked the feedback waves should lag the input waves by 90 degrees.

the three axis are 120 degrees apart. I was calling these the basis vectors.

let me know if I'm deluded :-) Thanks
 
  • #15
Dave in NZ said:
The inputs (U) are sinewaves as are the feedback waveforms (V). when locked the feedback waves should lag the input waves by 90 degrees.

the three axis are 120 degrees apart. I was calling these the basis vectors.

let me know if I'm deluded :-) Thanks

By axis I presume you mean the inputs waveforms. You actually only have two linearly independent basis vectors since any sine wave can be represented as the sum of a sine wave and a cosine wave.

That said you can still represent the wave using an over determined set of basis vectors if you wish. My guess is somehow you know how to represent the feedback waveform in terms of a sum of the input vectors.

P.S. is your company hiring? It sounds like you are doing interesting work. Or is it just a school research project?
 
  • #16
Hi John, This is a commerical product. The work is interesting and challenging. We have just "released" just under 10% of our staff globally so chances of a job are low but you are welcome to apply:-
LOCAL SITE
http://www.powerware.co.nz/New_Zealand/careers/default.asp
GLOBAL SITE
http://www.eaton.com/EatonCom/OurCompany/Careers/index.htm
 
Last edited by a moderator:

Similar threads

  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 13 ·
Replies
13
Views
5K
  • · Replies 3 ·
Replies
3
Views
12K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 10 ·
Replies
10
Views
25K
  • · Replies 43 ·
2
Replies
43
Views
8K