delete -- Harmonic oscillations (update see german version)

Before we start, recall the geometric transformations "stretching" and "shifting". Here are some exercises.

Exercise 1

Draw a coordinate system, and indicate the point A(35)A(3|5). Then apply (draw) the following transformations to AA:

  1. stretch AA in xx-direction by the factor 22, 0.50.5 and 2-2
  2. stretch AA in yy-direction by the factor 22, 0.50.5 and 2-2
  3. shift AA to the right/left/up/down by 22

Also, determine the coordinates of the transformed points.

Exercise 2

Draw the graph of the function f(x)=0.5x+1f(x)=0.5x+1. Then apply (draw) the following transformations to the line ff. You do this by stretching or shifting each point on the line:

  1. stretch the graph of ff in xx-direction by the factor 22, 0.50.5 and 2-2
  2. stretch the graph of ff in yy-direction by the factor 22, 0.50.5 and 2-2
  3. shift the graph of ff to the right/left/up/down by 22

Also, determine the function equations of the transformed lines.

Exercise 3

Draw the graph of f(x)=sin(x)f(x)=\sin(x).

  1. stretch the graph by a factor of 22 in yy-direction, then
  2. stretch in by a factor of 22 in xx-direction, then
  3. shift it to the right by π2\frac{\pi}{2}, and finally,
  4. shift it upwards by 22.

Try to find the function equation of the transformed curves (this might be difficult, and will be discussed below in more detail).

Harmonic oscillations are simply stretched and shifted sine, cosine and tangent functions. Recall that we have discussed how to transform quadratic functions in this way.

Definition 1

A function of the form

f(x)=Asin(u(xv))+b\boxed{f(x)=A\cdot \sin(u(x-v))+b}

is called a harmonic oscillation. It is the sine function (see previous chapter) with some additional parameters AA, uu, vv and bb. Indeed, we obtain for A=u=1A=u=1 and v=b=0v=b=0 the normal sine function sin(x)\sin(x).

With the additional parameters we can change the shape of the sine wave. We can make the waves larger, wider, flip them or shift them left or right or up and down. Each parameter is responsible for one of these transformations. Let's explore this further in the following exercise.

Exercise 4

Use a table of values to sketch the graphs ff and gg into the same coordinate system. Also draw the graph h(x)=sin(x)h(x)=\sin(x) into the same coordinate system and try to figure out with what geometric transformation we get from ff to hh, and from gg to hh.

Also determine for each ff and gg the value of the parameters A,u,vA, u,v und bb.

  1. f(x)=2sin(x)f(x)=2\sin(x) und g(x)=0.5sin(x)g(x)=0.5\sin(x)

  2. f(x)=sin(2x)f(x)=\sin(2x) und g(x)=sin(0.5x)g(x)=\sin(0.5x)

  3. f(x)=sin(x+π4)f(x)=\sin(x+\frac{\pi}{4}) und g(x)=sin(xπ4)g(x)=\sin(x-\frac{\pi}{4})

  4. f(x)=sin(x)+0.5f(x)=\sin(x)+0.5 und g(x)=sin(x)0.5g(x)=\sin(x)-0.5

Solution

A=2A=2 and A=0.5A=0.5, u=1,v=0,b=0u=1, v=0, b=0

A=1A=1, u=2u=2 and u=0.5u=0.5, v=0,b=0v=0, b=0

A=1A=1, u=1u=1 and v=π4v=-\frac{\pi}{4} and v=π4v=\frac{\pi}{4}, b=0b=0

A=1,u=1,v=0A=1, u=1, v=0, b=0.5b=0.5 and b=0.5b=-0.5

The following is evident from the exercise above. Let h(x)=sin(x)h(x)=\sin(x) and f(x)=Asin(u(xv))+bf(x)=A\sin(u(x-v))+b. The parameters A,u,vA, u, v and bb describe geometric transformations to get from the graph of hh to the graph of ff:

  1. AA stretches the graph of hh by a factor AA in the yy-direction.
    1. sin(x)2sin(x)\sin(x) \rightarrow 2\sin(x): Graph is stretched by the factor of 22 in yy-direction (elongation).
    2. sin(x)12sin(x)\sin(x) \rightarrow \frac{1}{2}\sin(x): Graph is stretched by the factor of 12\frac{1}{2} in yy-direction (compression).
  2. uu stretches the graph of hh by the factor 1u\frac{1}{u} in xx-direction.
    1. sin(x)sin(2x)\sin(x) \rightarrow \sin(2x): Graph is stretched by the factor of 12\frac{1}{2} in xx-direction (compression).
    2. sin(x)sin(12x)\sin(x) \rightarrow \sin(\frac{1}{2}x): Graph is stretched by the factor of 22 in xx-direction (elongation).
  3. vv shifts the graph of hh by vv in the xx direction.
    1. sin(x)sin(xπ4)\sin(x) \rightarrow \sin(x-\frac{\pi}{4}): Graph is shifted to the right by π4\frac{\pi}{4}.
    2. sin(x)sin(x+π4)\sin(x) \rightarrow \sin(x+\frac{\pi}{4}): Graph is shifted to the left by π4\frac{\pi}{4}.
  4. bb shifts the graph of hh by bb in the yy direction.
    1. sin(x)sin(x)+12\sin(x) \rightarrow \sin(x)+\frac{1}{2}: Graph is shifted upwards by 12\frac{1}{2} .
    2. sin(x)sin(x)12\sin(x) \rightarrow \sin(x)-\frac{1}{2}: Graph is shifted downwards by 12\frac{1}{2}.

The same is true for the graphs of the functions cos(x)\cos(x) and tan(x)\tan(x). Let's generalise:

Theorem 1: Harmonic oscillations

Consider the function

f(x)=Asin(u(xv))+bf(x)=A\sin(u(x-v))+b

We obtain the graph of ff by applying the following transformations to the graph of sin(x)\sin(x):

  1. AA: stretch sin(x)\sin(x) in yy direction by factor AA
  2. uu: stretch the new graph in xx direction by factor 1u\frac{1}{u}
  3. vv: shift the new graph to the right (v>0v>0) or the left (v<0v<0) by vv.
  4. bb: shift the new graph up (b>0b>0) or down (b<0b<0) by bb.

The order you execute these transformations is important, you have to start with the stretching in yy- or xx-direction, followed by shifting in xx- or yy-direction. However, the order of the two stretching transformations could be changed, and also the order of the two shifting transformations. But it is probably best to follow the order shown above, which corresponds to the order of the parameters in the formula!

Note 1

Note that exactly the same geometric transformations and interpretations of A,u,vA, u, v and bb apply to the other trigonometric functions cos\cos and tan\tan, or indeed for any function gg:

f(x)=Acos(u(xv))+bf(x)=A\cos(u(x-v))+bf(x)=Atan(u(xv))+bf(x)=A\tan(u(x-v))+bf(x)=Ag(u(xv))+bf(x)=A\cdot g(u(x-v))+b

The effect that parameters AA and bb have on the graph should be clear. Both modify the output of the function sin(x)\sin(x) by either multiplying the output by AA or adding to the output bb (see figure below). Because the output is the yy-coordinate of the points on the graph, we immediately see that the graph of sin\sin is stretched in yy-direction by AA or shifted up or down by bb.

Less clear is the effect of uu and vv, both of which modify the input xx before it is fed into the sin\sin function (see figure below).

In fact, the effect of these modifications are quite counter-intuitive. For example, f(x)=sin(2x)f(x)=\sin(2x) (that is, u=2u=2) is a compressed version of the sin\sin-graph, and not an elongated version, and f(x)=sin(x+π4)f(x)=\sin(x+\frac{\pi}{4}) (that is, v=π4v=-\frac{\pi}{4}) moves the sin\sin-graph to the left, and not to the right, which is quite unexpected. We can understand this by investigating the effect of the parameters uu and vv on the xx-intercepts of sin\sin. This is shown in the example below:

Example 1

We already know that the xx-intercepts of the function sin(x)\sin(x) are

...,π,0,π,2π,3π,......,-\pi, 0, \pi, 2\pi, 3\pi, ...

Determine the xx-intercepts of the function ff below by solving the equation

f(x)=0f(x)=0
  1. f(x)=sin(2x)f(x)=\sin(2x), that is, u=2u=2
  2. f(x)=sin(ux)f(x)=\sin(u\cdot x)
  3. f(x)=sin(x2)f(x)=\sin(x-2), that is, v=2v=2
  4. f(x)=sin(x+2)f(x)=\sin(x+2), that is, v=2v=-2

Determine in each case the geometric transformation that has to be applied to get from the xx-intercepts of sin(x)\sin(x) to the xx-intercept of ff.

Solution
  • f(x)=sin(2x)f(x)=\sin(2x): We have to find xx with

    sin(2x)=0\sin(2x)=0

    We know this is the case if 2x2x equals to ...,π,0,π,2π,3π,...,s,......,-\pi,0,\pi,2\pi,3\pi, ..., s,.... Thus find xx with

    2x=πx=π22x=0x=02x=πx=π22x=2πx=π..2x=sx=12s \begin{array}{llll} 2x &=& -\pi & \rightarrow x=-\frac{\pi}{2}\\ 2x &=& 0 & \rightarrow x=0\\ 2x &=& \pi & \rightarrow x=\frac{\pi}{2}\\ 2x &=& 2\pi & \rightarrow x=\pi\\ .. & & &\\ 2x &=& s & \rightarrow x=\frac{1}{2}s\\ \end{array}

    So if ss in an xx-intercepts of sin(x)\sin(x), then 12s\frac{1}{2}s is an ss-intercept of f(x)=sin(2x)f(x)=\sin(2x). Clearly, the new xx-intercepts are obtains by stretched the old ones the factor 12\frac{1}{2} in xx-direction.

  • f(x)=sin(ux)f(x)=\sin(u\cdot x): Similar, if ss is an xx-intercept of sin(x)\sin(x), then xx is an xx-intercept of sin(ux)\sin(u\cdot x) if
ux=su\cdot x= s

and thus

x=1usx=\frac{1}{u}s

So clearly, the xx-intercepts of f(x)=sin(ux)f(x)=\sin(u\cdot x) are obtained by stretching the xx-intercepts of sin(x)\sin(x) by the factor 1u\frac{1}{u}.

  • f(x)=sin(x2)f(x)=\sin(x-2): Similar, if ss is an xx-intercept of sin(x)\sin(x), then xx is an xx-intercept of sin(x2)\sin(x-2) if
x2=sx-2= s

and thus

x=s+2x=s+2

So clearly, the xx-intercepts of f(x)=sin(x2)f(x)=\sin(x-2) are obtained by shifting the xx-intercepts of sin(x)\sin(x) to the right by 22.

  • f(x)=sin(x+2)f(x)=\sin(x+2): Similar, if ss is an xx-intercept of sin(x)\sin(x), then xx is an xx-intercept of sin(x+2)\sin(x+2) if
x+2=sx+2= s

and thus

x=s2x=s-2

So clearly, the xx-intercepts of f(x)=sin(x+2)f(x)=\sin(x+2) are obtained by shifting the xx-intercepts of sin(x)\sin(x) to the left by 22.

Another "strange" thing that needs some explaining is that the shift parameter vv is in a bracket

f(x)=Asin(u(xv)_??)f(x)=A\sin(\underbrace{u(x-v)}\_{??})

However, arguing in the same way as in the example above, we see that only if this is the case is it true that vv is "shifting to the right (or left) by vv. See the example below.

Example 2

Consider the function f(x)=sin(3(x1))f(x)=\sin(3(x-1)). By solving the equation

f(x)=0f(x)=0

show that we obtain the xx-intercepts of ff by stretching the xx-intercepts of sin(x)\sin(x) by u=13u=\frac{1}{3}, and then shifting those to the right by v=1v=1.

Solution

Indeed, if ss is an xx-intercept of sin(x)\sin(x), that is, sin(s)=0\sin(s)=0, then xx is an xx-intercept of f(x)=sin(3(x1))f(x)=\sin(3(x-1)) if

3(x1)=s3(x-1)=s

because then we have f(x)=sin(3(x1))=sin(s)=0f(x)=\sin(3(x-1))=\sin(s)=0. Thus, solving for xx, we get

3(x1)=s:3x1=13s+1x=13s+1\begin{array}{lll} 3(x-1)&=&s \quad |:3\\ x-1&=&\frac{1}{3}s \quad |+1\\ x &=& \frac{1}{3}s+1 \end{array}

In other words, we obtain the xx-intercepts of ff by stretching the xx-intercepts of sin(x)\sin(x) by 13\frac{1}{3} in xx-direction, and then shifting those to the right by 11.

Note that for the function f(x)=sin(3x1)f(x)=\sin(3x-1) we stretch the graph of sin(x)\sin(x) in xx-direction by the factor 13\frac{1}{3}, and then shift the resulting graph to the right by 13\frac{1}{3}. Why? Because we can factor out the 33 in the term 3x13x-1 and get

f(x)=sin(3x1)=sin(3(x13))f(x)=\sin(3x-1)=\sin(3(x-\frac{1}{3}))

And now some exercises ...

Exercise 5

Find the function equation of the harmonic oscillation ff shown below (blue stippled line). To do so, identify the correct geometric transformations to get from the graph of sin(x)\sin(x) (shown in gray) to the graph of ff.

Solution

No stretching in yy-direction, no shifting up or down.

  1. Stretch sin(x)\sin(x) in xx-direction by 12\frac{1}{2}

  2. Shift to the right by π4\frac{\pi}{4}. Thus A=1,u=112=2,v=π4,b=0A=1, u=\frac{1}{\frac{1}{2}}=2, v=\frac{\pi}{4}, b=0. Thus,

    f(x)=sin(2(xπ4))f(x)=\sin(2(x-\frac{\pi}{4}))
Exercise 6

Find the geometric transformations to get from the graph of h(x)=sin(x)h(x)=\sin(x) to the graph of f(x)=3sin(0.5xπ4)+1f(x)=3\sin(0.5x-\frac{\pi}{4})+1?

Draw the graph of ff by applying these transformations to the graph of hh.

Solution

We first write

f(x)=3sin(0.5xπ4)+1=3sin(0.5(xπ2))+1f(x)=3\sin(0.5x-\frac{\pi}{4})+1=3\sin(0.5(x-\frac{\pi}{2}))+1

so that we see that A=3,u=0.5,v=π2A=3, u=0.5, v=\frac{\pi}{2}, and b=1b=1. Thus, the geometric transformations applied to the graph of sin(x)\sin(x) are

  1. stretch in yy-direction by the factor 33, then
  2. stretch in xx-direction by the factor 22, then
  3. shift to the right by π2\frac{\pi}{2}, then
  4. shift upwards by 11.
Exercise 7

Find the xx-intercepts of the function f(x)=sin(0.2x2)f(x)=\sin(0.2x-2) using two methods:

  1. calculation

  2. geometrical

Solution
  1. Calculation: sin(x)\sin(x) has the xx-intercepts at

    ...,π,0,π,2π,......, -\pi, 0, \pi, 2\pi, ...

    Thus, xx is an xx-intercept of f(x)=sin(0.2x2)f(x)=\sin(0.2x-2) if

    0.2x2=π,0.2x2=0,0.2x2=π,0.2x2=2π,...0.2x-2=-\pi, 0.2x-2=0, 0.2x-2=\pi, 0.2x-2=2\pi, ...

    and we see that xx-intercepts have to be

    x=105π,10,10+5π,10+10π,...x=10-5\pi, 10, 10+5\pi, 10+10\pi, ...
  2. Geometrical: By writing f(x)=sin(0.2x2)=sin(0.2(x10))f(x)=\sin(0.2x-2)=\sin(0.2(x-10)), we see that A=1,u=0.2A=1, u=0.2, v=10v=10 and b=0b=0. Thus the graph of ff is stretched in xx-direction by 1u=10.2=5\frac{1}{u}=\frac{1}{0.2}=5. Because sin(x)\sin(x) has the xx-intercepts

    ...,π,0,π,2π,......, -\pi, 0, \pi, 2\pi, ...

    the stretched graph has the xx-intercepts

    ...,5π,0,5π,10π,......, -5\pi, 0, 5\pi, 10\pi, ...

    Moreover, the stretched graph is moved to the right by 1010, thus the new xx-intercepts are at

    ...,5π+10,0+10,5π+10,10π+10,......, -5\pi+10, 0+10, 5\pi+10, 10\pi+10, ...

    And indeed, we get the same xx-intercepts are before.