Harmonic oscillations

A function of the form

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

is called harmonic oscillation. AA, uu, vv and bb are parameters that are typically specific to a given problem. The harmonic oscillation often occurs in physics and describes the position of oscillating objects (in the simplest case a pendulum) as a function of time. xx then takes the role of time, and y=Asin(u(xv))+by=A\cdot \sin(u(x-v))+b describes the deflection from the starting position.

In the following, we will examine the meaning of the parameters in more detail. We will discover many parallels to the parameters we have used to shift and stretch a quadratic function or, more generally, power functions.

Let's start our investigation by drawing some harmonic oscillations.

Exercise 1

Using the unit circle, sketch the following graphs and compare with the simple sine function h(x)=sin(x)h(x)=\sin(x):

  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

The following can be seen from the sketches. 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 hh to the graph ff, where applies:

  1. AA stretches the graph of hh by the factor AA in the yy-direction.
    1. sin(x)2sin(x)\sin(x) \rightarrow 2\sin(x): Graph is stretched by a factor of 22.
    2. sin(x)12sin(x)\sin(x) \rightarrow \frac{1}{2}\sin(x): Graph is stretched by the factor 12\frac{1}{2} (compression).
  2. uu stretches the graph of hh by the factor 1u\frac{1}{u} in the xx-direction.
    1. sin(x)sin(2x)\sin(x) \rightarrow \sin(2x): Graph is stretched by the factor 12\frac{1}{2} (compression).
    2. sin(x)sin(12x)\sin(x) \rightarrow \sin(\frac{1}{2}x): Graph is stretched by a factor of 22.
  3. vv shifts the graph of hh by vv units in the xx direction.
    1. sin(x)sin(xπ4)\sin(x) \rightarrow \sin(x-\frac{\pi}{4}): Shift by π4\frac{\pi}{4} units to the right.
    2. sin(x)sin(x+π4)\sin(x) \rightarrow \sin(x+\frac{\pi}{4}): Shift π4\frac{\pi}{4} units to the left.
  4. bb shifts the graph of hh by bb units in the yy direction.
    1. sin(x)sin(x)+12\sin(x) \rightarrow \sin(x)+\frac{1}{2}: Shift by 12\frac{1}{2} units upwards.
    2. sin(x)sin(x)12\sin(x) \rightarrow \sin(x)-\frac{1}{2}: Shift by 12\frac{1}{2} units to down. Das gleiche gilt auch für die Graphen der Funktionen cos(x)\cos(x) und tan(x)\tan(x). Und in der Tat gilt es für den Graphen jeder Funktion.

Indeed, we have the following general theorem:

Theorem 1

The interpretation of the parameters A,u,vA, u, v and bb in the function

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

are as follows:

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

The above sequence of transformations must be observed in order to get from the graph of h(x)=sin(x)h(x)=\sin(x) to the graph of f(x)=Asin(u(xv))+bf(x)=A\sin(u(x-v))+b.

Example 1

We illustrate this using the graph of the function

f(x)=sin(0.5(xπ2))f(x)=\sin(0.5(x-\frac{\pi}{2}))

This is the blue solid line in the sketch below. It is A=1,u=0.5,v=π2A=1, u=0.5, v=\frac{\pi}{2} and b=0b=0. We can see that the graph sin(x)\sin(x) is not stretched in yy-direction. It is stretched by the factor 1u=2\frac{1}{u}=2 in the xx direction (blue dashed line), then shifted to the right by π2\frac{\pi}{2}. There is no shift in yy-direction.

We can also write the function like this:

f(x)=sin(0.5xπ4)f(x)=\sin(0.5x-\frac{\pi}{4})

In this form, however, we cannot read off the shift in the xx direction directly.

Exercise 2

Find the transformations that lead from the sine curve sin(x)\sin(x) to the dashed line and write the functional equation of the dashed line. The dashed line intersects the xx-axis at pi4,3pi4,...\frac{pi}{4}, \frac{3pi}{4}, ....

Solution

Stretch the sine curve sin(x)\sin(x) by the factor 12\frac{1}{2} in the xx direction (u=11/2=2\rightarrow u=\frac{1}{1/2}=2) and shift to the right by π4\frac{\pi}{4}.

The following therefore applies f(x)=sin(2(xπ4))f(x)=\sin(2(x-\frac{\pi}{4})).

Exercise 3

Which transformations are used to transform the graph of the function h(x)=sin(x)h(x)=\sin(x) into the graph of the function f(x)=3sin(0.5xπ4)+1f(x)=3\sin(0.5x-\frac{\pi}{4})+1?

Then draw the graph of ff by applying the transformations to the graph of hh.

Solution

Bring to the correct format: 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, i.e. A=3,u=0.5,v=π2,b=1A=3, u=0.5, v=\frac{\pi}{2}, b=1, i.e. starting from sin(x)\sin(x):

  1. stretch by a factor of A=3A=3 in the yy direction, then
  2. stretch by a factor of 1u=2\frac{1}{u}=2 in the xx-direction, then
  3. shift by π2\frac{\pi}{2} units to the right, then
  4. shift upwards by one unit.
Exercise 4

Find the xx-intercepts of the function f(x)=sin(0.2x2)f(x)=\sin(0.2x-2) in two different ways:

  1. by calculation.

  2. by considering how the xx-intercepts of the function sin(x)\sin(x) are transformed.

Solution
  1. sin(x)\sin(x) has the xx-intercepts at ...,π,0,π,2π,......, -\pi, 0, \pi, 2\pi, .... So find xx with 0.2x2=π0.2x-2=-\pi, 0.2x2=0,0.2x2=π,0.2x2=2π,...0.2x-2=0, 0.2x-2=\pi, 0.2x-2=2\pi, ..., and we see that x=105π,10,10+5π,10+10π,...x=10-5\pi, 10, 10+5\pi, 10+10\pi, ....
  2. because f(x)=sin(0.2x2)=sin(0.2(x10))f(x)=\sin(0.2x-2)=\sin(0.2(x-10)) we see that sin(x)\sin(x) is stretched by the factor 1u=10.2=5\frac{1}{u}=\frac{1}{0.2}=5 in the xx-direction, and then shifted to the right by v=10v=10. The points ...,π,0,π,2π,......, -\pi, 0, \pi, 2\pi, ... are therefore first stretched by 55, i.e. 5π,0,5π,10π,...-5\pi, 0, 5\pi, 10\pi, ..., and then shifted to the right by 1010, i.e. 5π+10,10,10+5π,10+10π,...-5\pi+10, 10, 10+5\pi, 10+10\pi, ....
Exercise 5

If not explicitly mentioned, all problems are to be solved without calculator.

  1. Describe the geometric transformations to get from the graph of the sine or cosine to the graph of the function ff. Then sketch the graph of ff in which the transformations are carried out.

    1. h(x)=sin(x)f(x)=4sin(x)+3h(x)=\sin(x) \rightarrow f(x)=4\sin(x)+3
    2. h(x)=cos(x)f(x)=1.5cos(0.25x)h(x)=\cos(x) \rightarrow f(x)=1.5\cos(0.25 x)
    3. h(x)=sin(x)f(x)=0.25sin(4x+1)1h(x)=\sin(x) \rightarrow f(x)=0.25\sin(4x + 1)-1
  2. The graph of the function h(x)=cos(x)h(x)=\cos(x) is stretched by a factor of 0.750.75 in both the xx and yy directions and then shifted to the left by 2 units. Determine the functional equation ff of the resulting graph.

  3. The graph of the function h(x)=sin(x)h(x)=\sin(x) is first stretched by a factor of 22 in the xx-direction and then shifted to the right by π4\frac{\pi}{4} units. Sketch the graph by applying the transformations and determine the functional equation of the resulting graph.

  4. Repeat the transformation from above, but in reverse order. Sketch the graph by applying the transformations and compare with above. Do the two graphs match? Determine the functional equation.

  5. How can the transformation for A=1A=-1 also be called? And for u=1u=-1?

  6. Use sketches to determine which equations are correct. If an equation is not correct, correct the right-hand side so that it is correct.

    1. sin(x)=sin(x)\sin(-x)=-\sin(x)
    2. cos(x)=cos(x)\cos(-x)=-\cos(x)
    3. sin(xπ2)=cos(x)-\sin(x-\frac{\pi}{2})=-\cos(x)
    4. cos(x+π)=cos(x)\cos(x+\pi)=-\cos(x)
  7. Determine at least two xx-intercepts of the function f(x)=10sin(3x2)f(x)=10\sin(3x-2).

  8. Determine at least two xx-intercepts of the function f(x)=10sin(3x2)+5f(x)=10\sin(3x-2)+5.

  9. The graph of the function h(x)=tan(x)h(x)=\tan(x) is to be mirrored about the horizontal line at height $y=2. Determine the functional equation of the mirrored graph.

  10. Determine the functional equations of the following graphs:

  11. What transformations are needed to convert the graph of the function sin(x)\sin(x) to the graph of the function f(x)=3sin(1.5xπ6)+1f(x)=3\sin(1.5x-\frac{\pi}{6})+1? Sketch the graph of ff.

  12. The following transformations are successively applied to the graph of the function cos(x)\cos(x):

    • stretches in the xx-direction by a factor of 33
    • stretching in the yy-direction by a factor of 1.51.5
    • shift to the left by 66
    • shift downwards by 22

    Determine the function equation of the resulting graph ff.

Solution
  1. we have

    1. stretching in yy-direction with factor 44, then shifting upwards by 3.
    2. stretching in yy-direction with factor 1.51.5, then stretching in xx-direction with factor 1/u=1/0.25=41/u=1/0.25=4.
    3. stretching in yy-direction with factor 0.250.25, then stretching in xx-direction with factor 1/u=1/41/u=1/4, then shifting by v=1/4v=1/4 to the left and shifting by 11 downwards.
  2. A=0.75A=0.75, 1/u=0.75u=4/31/u=0.75 \rightarrow u=4/3, v=2v=-2. Also f(x)=0.75cos(43(x+2))f(x)=0.75\cos(\frac{4}{3}(x+2)).

  3. 1/u=2u=1/21/u=2\rightarrow u=1/2, v=π4f(x)=sin(12(xπ4))v=\frac{\pi}{4} \rightarrow f(x)=\sin(\frac{1}{2}(x-\frac{\pi}{4})).

  4. If the graph of sin(x)\sin(x) is first shifted to the right by π/4\pi/4 and then stretched by a factor of 22 in the xx-direction (so not in the usual order), we obtain the following graph (shown below). It is not the same graph as the one shown in exercise 3. Starting from sin(x)\sin(x) and executing the transformations in the right order, we obtain the graph below by stretching it by a factor of 22 in the xx-direction and then shifting it to the right by π/2\pi/2. So u=1/2u=1/2 and v=π2v=\frac{\pi}{2} and therefore f(x)=sin(12(xπ2))f(x)=\sin(\frac{1}{2}(x-\frac{\pi}{2})).

  5. It is

    1. A=1A=-1, thus f(x)=sin(x)f(x)=-\sin(x): the graph sin(x)\sin(x) is reflected about the xx-axis.
    2. u=1u=-1, thus f(x)=sin(x)f(x)=\sin(-x): the graph sin(x)\sin(x) is reflected about the yy-axis.
  6. Sketch the left and right functions, and compare the two graphs to see if the are the same:

    1. sin(x)=sin(x)\sin(-x)=-\sin(x) is correct
    2. cos(x)=cos(x)\cos(-x)=-\cos(x) is false, it is cos(x)=cos(x)\cos(-x)=\cos(x)
    3. sin(xπ2)=cos(x)-\sin(x-\frac{\pi}{2})=-\cos(x) is false, it is sin(xπ2)=cos(x)-\sin(x-\frac{\pi}{2})=\cos(x)
    4. cos(x+π)=cos(x)\cos(x+\pi)=-\cos(x) is false, it is cos(x+π)=sin(x)\cos(x+\pi)=-\sin(x)
  7. Find xx with f(x)=10sin(3x2)=0f(x)=10\sin(3x-2)=0. The sine function has the xx-intercepts ...,π,0,π,2π,......,-\pi, 0, \pi, 2\pi, ..., thus find xx with

    3x2=πx=π+233x2=0x=233x2=πx=π+233x2=2πx=2π+23...\begin{array}{lllll} 3x-2 & = & -\pi & \rightarrow & x =\frac{-\pi+2}{3}\\[0.5em] 3x-2 & = & 0 & \rightarrow & x =\frac{2}{3}\\[0.5em] 3x-2 & = & \pi & \rightarrow & x =\frac{\pi+2}{3}\\[0.5em] 3x-2 & = & 2\pi & \rightarrow & x =\frac{2\pi+2}{3}\\[0.5em] ... & & & & \end{array}
  8. Find xx with f(x)=10sin(3x2)+5=0f(x)=10\sin(3x-2)+5=0, thus

    sin(3x2s)=0.5\sin(\underbrace{3x-2}_{s})=-0.5

    We therefore have to find out for which radians ss the sine equals 0.5-0.5 (see unit circle below). We can calculate a value using the arcsine

    s1=arcsin(0.5)=0.524s_1=\arcsin(-0.5)=-0.524

    Another value is

    s2=π+0.524=3.665s_2=\pi+0.524=3.665

    (see unit circle below). Thus we have 3x2=s1=0.5243x-2=s_1=-0.524 and therefore x1=0.492x_1=\underline{0.492}, and 3x2=s2=3.6653x-2=s_2=3.665, and it follows x2=1.888x_2=\underline{1.888}. Let's check: f(0.524)=10sin(3(0.524)2)+5=0.0030f(-0.524)=10\sin(3\cdot (-0.524)-2)+5=0.003\approx 0 (rounding error), and f(1.888)=10sin(31.8882)+5=0.0100f(1.888)=10\sin(3\cdot 1.888-2)+5=0.010\approx 0 (rounding error).

  9. Idea: First draw the mirrored graph and then think about which transformations are needed to get from tan(x)\tan(x) to the mirrored graph. It then follows that we can first mirror tan(x)\tan(x) on the yy-axis, A=1A=-1, and then shift it upwards by 44 (b=4b=4). We therefore have f(x)=tan(x)+4f(x)=\underline{-\tan(x)+4}.

  10. We start with sin(x)\sin(x) in each case, and think about how we get to the graph shown by stretching and then shifting.

    1. stretch in the yy-direction by a factor of 1.51.5 (A=1.5A=1.5), and in the xx-direction by a factor of 0.250.25 (u=1/0.25=4u=1/0.25=4). So f(x)=1.5sin(4x)f(x)=\underline{1.5\sin(4x)}.
    2. stretch in the xx-direction by a factor of 0.50.5 (1u=0.5u=2\frac{1}{u}=0.5\rightarrow u=2), mirror on the xx-axis (A=1A=-1), shift upwards by 11 (b=1b=1). We therefore have f(x)=sin(2x)+1f(x)=\underline{-\sin(2x)+1} (see image below).
  11. We write ff in a better form:

    f(x)=3sin(1.5xπ6)+1==3sin(1.5(xπ9)+1f(x)=3\sin(1.5x-\frac{\pi}{6})+1==3\sin(1.5(x-\frac{\pi}{9})+1

    So A=3,u=1.5,v=π9,b=1A=3, u=1.5, v= \frac{\pi}{9}, b=1. It follows:

    1. stretch sin(x)\sin(x) in yy-direction by 33, then
    2. stretch in the xx-direction by 1u=11.5=23\frac{1}{u}=\frac{1}{1.5}=\frac{2}{3}, then
    3. shift to the right by vπ9v\frac{\pi}{9}, then
    4. shift upwards by 11
  12. It is A=1.5,1u=3u=13,v=6v=6A=1.5, \frac{1}{u}=3 \rightarrow u=\frac{1}{3}, v=-6 \rightarrow v=-6, and b=2b=-2. So

f(x)=1.5cos(13(x+6))2f(x)=1.5\cos(\frac{1}{3}(x+6))-2