3

I understand how to get the Amplitude and frequency but not sure the phase shift? How does the it derive to π/4?

Please advise.

enter image description here

Withhelds
  • 187
  • 3
  • 8
  • 16
  • The answers given here so far assume a very clean case such as you show - which can happen. But in many real world applications, you will end up using a Fourier Transform, and determining the phase of a given frequency component from the sign and relative proportion of its correlation to the sine vs cosine accumulators. – Chris Stratton Apr 28 '14 at 17:20

3 Answers3

2

You can see that the graph of the sine wave does not go through (0.0, 0.0). This fact alone tells you that there is a phase shift.

After telling that there is a phase shift, you want to know how much it is. To do this, you have to look where the point of the sine wave is which would normally go through (0.0, 0.0). Here, you can imagine that the wave would extend beyond the left border of the diagram until it reaches 0.0 on the y axis. That's called a zero-crossing. You now have to measure the distance on x between this zero-crossing and 0.0 on x. That's the phase shift.

Initially, from this diagram, your result is a phase shift measured in seconds, although this is valid, it is not the usual unit used for phase shifts. To get the phase shift in the usual unit, which is radian, use phi = timeDelta * f * 2pi.

Generally, the phase shift is the x-distance between (0.0, 0.0) and the next zero-crossing to the left, given in an angle, usually in radian, sometimes also given in degree.

Daniel S.
  • 6,458
  • 4
  • 35
  • 78
  • hi @daniel-s, thanks for reply and explanation on the phase shift. I can imagine the current position when I shift it to left. However, I still not sure how it become π/4? As I understand it might require some knowledge on maths (trigo), would appreciate if you can explain on that as well as i only have basic understanding on trigo e.g. 2π = 360 degree. I'm not sure how does the moving from x/y axis to (0,0) become π/4 = 45 degree? or can u explain how can we input value into the given formula timeDelta * f * 2pi.? what would be the timeDelta? – Withhelds Apr 28 '14 at 15:07
  • The shift is something very simple. It's the same for every function, no matter if it's trigo or something simpler like f(x) = x^2. You can try it out. It's simply shifted sideways if you alter it like this: f2(x)=f(x+pi/4)=(x+pi/4)^2 is shifted by pi/4 to the left. Same for F(x)= sin(x) is the normal sin. And F2(x) = sin(x + pi/4) is shifted to the left also. Determining the shift in radians is just a bit more complicated, not because it's trigo functions, but because the diagram's x-axis is denoted in seconds rather than radians. Therefor you convert the units, like from miles to kilometers. – Daniel S. Apr 28 '14 at 17:20
  • From kilometers to miles you do *1.609 . From seconds to radians of a wave's phase shift you do *f*2pi. – Daniel S. Apr 28 '14 at 17:23
  • I know this doesn't help you completely. For an in depth understanding, you need to read more about sin/cos, where it comes from and how to imagine it in other situations like waves and oscillations. This would be too much to write here. – Daniel S. Apr 28 '14 at 17:27
0

As explained on ehow.com

Instructions:

1.) Measure the horizontal shift between two wave functions by graphing them. A shift to the right is a positive phase shift and a shift to the left is a negative phase shift.

2.) Determine the phase shift between the cosine function and the sine function. Use the trigonometry identity cos(x) = sin(x+Pi/2) to show that we can obtain the cosine function by shifting the sine wave Pi/2 to the left. The cosine function is therefore the sine function with a phase shift of -Pi/2.

3.) Generalize the sine wave function with the sinusoidal equation y = Asin(B[x - C]) + D. In this equation, the amplitude of the wave is A, the expansion factor is B, the phase shift is C and the amplitude shift is D.

4.) Express a wave function in the form y = Asin(B[x - C]) + D to determine its phase shift C. For example, for the function cos(x) = sin(x+Pi/2) = sin(x - [-Pi/2]), we have C = -Pi/2. Therefore, shifting the phase of the sine function by -Pi/2 will produce the cosine function.

5.) Calculate the phase shift of the function y = sin(2x - Pi/2). This function is equal to y = sin(2[x - Pi/4]) where A = 1, B = 2, C = Pi/4 and D = 0. The phase shift of y = sin(2x - Pi/2) is therefore Pi/4.

Community
  • 1
  • 1
dvd
  • 64
  • 8
  • hi @dvd, thanks for reply. Is this y = sin(2x - Pi/2) the formula to find all phase shift? How do you determine A, B, C, & D and derived into y = sin(2x - Pi/2) ? – Withhelds Apr 28 '14 at 15:01
  • hi @dvd, thanks for the latest edit, didn't know there are so many steps involve. As the textbook only shows, A sin(2Pi*ft + phase) and "effect of a phase shift of π/4 radians, which is 45 degrees (2π radians = 360° = 1 period). Therefore, I'm quite shocked to see so many trigo formulas as my maths foundation is not strong. I will need to catch up on that. – Withhelds Apr 28 '14 at 15:43
  • Is that really your answer? http://www.ehow.com/how_5157754_calculate-phase-shift.html – SleuthEye Apr 30 '14 at 00:27
  • It is in our schools e-classroom's math documents, I guess this is the source of it. But does it matter, long as it contributes to stackoverflow answer database? – dvd Apr 30 '14 at 07:57
  • 1
    See http://stackoverflow.com/help/referencing for site policy on external references. – SleuthEye Apr 30 '14 at 16:39
0

In high school mathematics, the assumption is that the phase shift is simply the same as the horizontal shift. This in many ways renders the concept of phase shift as something distinct from horizontal shift meaningless.

In signal analysis it's convenient to measure horizontal shift in both absolute terms, i.e. a shift of 3 milli seconds to the right, (in many applications time is the horizontal axis), but also in terms of the number of cycles you have shifted. One cycle is considered to be 360° or 2π radians.-

For example, suppose you have a signal v(t) = sin (100πt). The period is 0.02 s, or 20 mS. The frequency is 50 hz.

If we shift this signal to the right 0.002 s or 2 mS, the equation would be v(t) = sin (100π(t - 0.002))

The horizontal shift is exactly one tenth of a cycle. Phase shift simply assumes that one cycle is 360° (or 2π radians).

One tenth of this is 36°, or 0.2π radians.

Because the shift is to the right, or later in time, we can say the signal lags (or is behind) the unshifted signal one tenth of a cycle, or 36°.

Expanding what's inside the sin function: v(t) = sin (100πt - 0.2π). The "-" means it's lagging, and the 0.2π gives you the phase shift.

This is a sensible way to do things as the time axis is usually related to some rotating object. If you shift one full cycle, you have shifted 360°. Anyone who has ever skated boarded knows that a 'three sixty', bring you back to the same position. Shifting one full period, left or right, brings you back to the same signal.

To summarize: For a signal of period T, with a horizontal shift of h. The phase shift is h/T cycles (h/T) x 360° (h/T) x 2π radians.

A 360° phase shift is no shift at all.