Skip to main content
Mathematics LibreTexts

2.8: Periodic functions and oscillations

  • Page ID
    51300
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    There are many periodic phenomena in the biological sciences. Examples include wingbeat of insects and of birds, nerve action potentials, heart beat, breathing, rapid eye movement sleep, circadian rhythms (sleep-wake cycles), women’s menstrual cycle, bird migrations, measles incidence, locust emergence. All of these examples are periodic repetition with time, the variable usually associated with periodicity. The examples are listed in order of increasing period of repetition in Table 2.8.

    Table 2.8: Characteristic periods of time-periodic biological processes.
    Biological Process Period Biological Process Period
    Insect wingbeat 0.02 sec Circadian cycle (sleep-wake) 1 day
    Nerve action potential 0.2 sec Menstrual cycle 28 days
    Heart beat 1 sec Bird migrations 1 year
    Breathing (rest) 5 sec Measles 2 years
    REM sleep \(\approx\) 90 min Locust 17 years
    Tides 6 hours    

    A measurement usually quantifies the state of a process periodic with time and defines a function characteristic of the process. Some examples are shown in Figure 2.8.1. The measurement may be of physical character as in electrocardiograms, categorical as in stages of sleep, or biological as in measurement of hormonal level.

    There are also periodic variations with space that result in the color patterns on animals – stripes on zebras and tigers, spots on leopards – , regular spacing of nesting sites, muscle striations, segments in a segmented worm, branching in nerve fibers, and the five fold symmetry of echinoderms. Some spatially periodic structures are driven by time-periodic phenomena – branches in a tree, annular tree rings, chambers in a nautilus, ornamentation on a snail shell. The pictures in Figure 2.6.2 illustrate some periodic functions that vary with linear space. The brittle star shown in Figure 2.8.3 varies periodically with angular change in space.

    In all instances there is an independent variable, generally time or space, and a dependent variable that is said to be periodic.

    2-14.JPG

    Figure \(\PageIndex{1}\): Figures demonstrating periodic repetition with time. (A) Electorcardiogram. http://en.wikipedia.org/wiki/Electrocardiography uploaded by MoodyGroove. (B) This is a screenshot of a polysomnographic record (30 seconds) representing Rapid Eye Movement Sleep. EEG highlighted by red box. Eye movements highlighted by red line. http://en.wikipedia.org/wiki/File:REM.png uploaded by Mr. Sandman. (C) Tidal movement (\(\approx\)12 hr) (http://en.wikipedia.org/wiki/Tide), uploaded from NOAA, http://coops.nos.noaa.gov/images/restfig6.gif. (D) Recurrent epidemics of measles (\(\approx\)2 yr), Anderson and May, Vaccination and herd immunity to infectious diseases, Nature 318 1985, pp 323-9, Figure 1a.

    Definition 2.8.1 Periodic Function

    A function, \(F\), is said to be periodic if there is a positive number, \(p\), such that for every number \(x\) in the domain of \(F\), \(x + p\) is also in the domain of \(F\) and

    \[F(x+p)=F(x)\]

    and for each number \(q\) where \(0 < q < p\) there is some \(x\) in the domain of \(F\) for which

    \[F(x+q) \neq F(x)\]

    The period of \(F\) is \(p\).

    The amplitude of a periodic function \(F\) is one-half the difference between the largest and least values of \(F(t)\), when these values exist.

    The condition that ‘for every number \(x\) in the domain of \(F\), \(x + p\) is also in the domain of \(F\)’ implies that the domain of \(F\) is infinite in extent — it has no upper bound. Obviously, all of the examples that we experience are finite in extent and do not satisfy Definition 2.8.1. We will use ‘periodic’ even though we do not meet this requirement.

    2-15.JPG

    Figure \(\PageIndex{2}\): Figures demonstrating periodic repetition with space. A. Muscle striations, Kansas University Medical School, http://www.kumc.edu/instruction/medicine/anatomy/histoweb/muscular/muscle02.htm. B. Bristle worm, http://www.photolib.noaa.gov/htmls/reef1016.htm Image ID: reef1016, Dr. Anthony R. Picciolo. C. Annular rings, uploaded by Arnoldius to commons.wikimedia.org/wiki D. A common genet (Genetta genetta), http://en.wikipedia.org/wiki/File:Genetta genetta felina (Wroclaw zoo).JPG Uploaded by Gu´erin Nicolas. Note a periodic distribution of spots on the body and stripes on the tail.

    examples that we experience are finite in extent and do not satisfy Definition 2.8.1. We will use ‘periodic’ even though we do not meet this requirement.

    The condition ‘when these numbers exist’ in the definition of amplitude is technical and illustrated in Figure 2.8.4 by the graph of

    \[F(t)=t-[t]\]

    where \([t]\) denotes the integer part of \(t\). (\([\pi] = 3, [\sqrt{30}] = 5\)). There is no largest value of \(F(t)\).

    \[F(n)=n-[n]=0 \quad \text { for integer } \quad n\]

    If \(t\) is such that \(F(t)\) is the largest value of \(F\) then \(t\) is not an integer and is between an integer \(n\) and \(n + 1\). The midpoint \(s\) of \([t, n + 1]\) has the property that \(F(t) < F(s)\), so that \(F(t)\) is not the largest value of \(F\).

    2-16.JPG

    Figure \(\PageIndex{3}\): A. Periodic distribution of Gannet nests in New Zealand. B. A star fish demonstrating angular periodicity, NOAA’s Coral Kingdom Collection, Dr. James P. McVey, http://www.photolib.noaa.gov/htmls/reef0296.htm.

    2-17.JPG

    Figure \(\PageIndex{4]\): The graph of \(F(t) = t − [t]\) has no highest point.

    The function, \(F(t) = t − [t]\) is pretty clearly periodic of period 1, and we might say that its amplitude is 0.5 even though it does not satisfy the definition for amplitude. Another periodic function that has no amplitude is the tangent function from trigonometry.

    Periodic Extension Periodic functions in nature do not strictly satisfy Definition 2.8.1, but can be approximated with strictly periodic functions over a finite interval of their domain. Periodic functions in nature also seldom have simple equation descriptions. However, one can sometimes describe the function over one period and then assert that the function is periodic – thus describing the entire function.

    Example 2.8.1 Electrocardiograms have a very characteristic periodic signal as shown in Figure 2.8.1.

    A picture of a typical signal from ‘channel I’ is shown in Figure 2.8.5; the regions of the signal, P-R, QRS, etc. correspond to electrical events in the heart that cause contractions of specific muscles. Is there an equation for such a signal? Yes, a very messy one!

    The graph of the following equation is shown in Figure 2.8.5(b). It is similar to the typical electrocardiogram in Figure 2.8.5(a).

    \[\begin{array}{l}
    H(t)=25000 \frac{(t+0.05) t(t-0.07)}{\left(1+(20 t)^{10}\right) 2^{\left(2^{(40 t)}\right)}}+0.15 \cdot 2^{-1600(t+0.175)^{2}}+0.25 \cdot 2^{-900(t-0.2)^{2}} \\
    -0.4 \leq t \leq 0.4
    \end{array} \label{2.12}\]

    2-18.JPG

    Figure \(\PageIndex{5}\): (a) Typical signal from an electrocardiogram, created by Agateller (Anthony Atkielski) http://en.wikipedia.org/wiki/Electrocardiography, . (b) Graph of Equation 2.12

    Explore 2.8.1 Technology Draw the graph of the heart beat Equation 2.12. You will find it useful to break the function into parts. It is useful to define

    \[\begin{array}{l}
    y 1=25000 \frac{(x+0.05) x(x-0.07)}{\left(1+(20 x)^{10}\right)} \\
    y 2=(y 1) / 2\left(2^{(40 x)}\right)
    \end{array}\]

    and y3 and y4 for the other two terms, then combine y2, y3 and y4 into y5 and select only y5 to graph.

    The heart beat function H in Equation 2.12 is not a periodic function and is defined only for \(−0.4 \leq t \leq 0.4\). Outside that interval, the expression defining H(t) is essentially zero. However, we can simultaneously extend the definition of H and make it periodic by

    \[H(t)=H(t-0.8) \quad \text { for all } t\]

    What is the impact of this? H(0.6), say is now defined, to be H(−0.2). Immediately, H has meaning for \(0.4 \leq t \leq 1.2\), and the graph is shown in Figure 2.8.6(a). Now because H(t) has meaning on \(0.4 \leq t \leq 1.2\), H also has meaning on \(0.4 \leq t \leq 2.0\) and the graph is shown in Figure 2.8.6(b). The extension continues indefinitely.

    Definition 2.8.2 Periodic extension of a function. If f is a function defined on an interval [a, b) and p = b − a, the periodic extension of F of f is defined by

    \[\begin{array}{l}
    F(t) &=f(t) \quad \text { for } \quad a \quad \leq  \quad t \quad<\quad b\\
    F(t+p) &=F(t) \quad \text { for } \quad -\infty \quad <  \quad t \quad<\quad \infty
    \end{array} \label{2.13}\]

    2-19.JPG

    Figure \(\PageIndex{6}\): (a) Periodic extension of the heart beat function H of Equation \ref{2.12} by one period. (a) Periodic extension of the heart beat function H to two periods.

    Equation \ref{2.13} is used recursively. For t in [a b), t + p is in [b, b + p) and Equation \ref{2.13} defines F on [b, b + p). Then, for t in [b, b + p), t + p is in [b + p, b + 2p) and Equation \ref{2.13} defines F on [b + p, b + 2p). Continue this for all values of t > b. If t is in [a − p, a) then t + p is in [a, b) and F(t) = F(t + p). Continuing in this way, F is defined for all t less than a.

     

    Exercises for Section 2.8, Periodic functions and oscillations.

    Exercise 2.8.1 Which of the three graphs in Figure Ex. 2.8.1 are periodic. For any that is periodic, find the period and the amplitude.

    Figure for Exercise 2.8.1 Three graphs for Exercise 2.8.1 .

    2-8-1.JPG

    Exercise 2.8.2 Shown in Figure Ex. 2.8.2 is the graph of a function, \(f\) defined on the interval [1,6]. Let \(F\) be the periodic extension of \(f\).

    1. What is the period of F?
    2. Draw a graph of F over three periods.
    3. Evaluate \(F(1), F(3), F(8), F(23), F(31)\) and \(F(1004)\).
    4. Find the amplitude of F.

    Figure for Exercise 2.8.2 Graph of a function f for Exercise 2.8.2.

    2-8-2.JPG

    Exercise 2.8.3 Suppose your are traveling an interstate highway and that every 10 miles there is an emergency telephone. Let D be the function defined by

    \[D(x) \quad \text { is the distance to the nearest emergency telephone }\]

    where x is the mileage position on the highway.

    1. Draw a graph of D.
    2. Find the period and amplitude of D.

    Exercise 2.8.4 Your 26 inch diameter bicycle wheel has a patch on it. Let P be the function defined by

    \[P(x) \quad \text { is the distance from patch to the ground }\]

    where x is the distance you have traveled on a bicycle trail.

    1. Draw a graph of P (approximate is acceptable).
    2. Find the period and amplitude of P.

    Exercise 2.8.5 Let F be the function defined for all numbers, x, by

    \[F(x)=\quad \text { the distance from } x \text { to the even integer nearest } x\]

    1. Draw a graph of F.
    2. Find the period and amplitude of F.

    Exercise 2.8.6 Let f be the function defined by

    \[f(x)=1-x^{2} \quad-1 \leq x \leq 1\]

    Let F be the extension of f with period 2.

    1. Draw a graph of f.
    2. Draw a graph of F.
    3. Evaluate \(F(1), F(2), F(3), F(12), F(31)\) and \(F(1002)\).
    4. Find the amplitude of F.

     

    2.8.1 Trigonometric Functions.

    The trigonometric functions are perhaps the most familiar periodic functions and often are used to describe periodic behavior. However, not many of the periodic functions in biology are as simple as the trigonometric functions, even over restricted domains.

    Amplitude and period and frequency of a Cosine Function

    The function

    \[H(t)=A \cos \left(\frac{2 \pi}{P} t+\phi\right) \quad A>0 \quad P>0\]

    and \(\phi\) any angle has amplitude A, period P, and frequency 1/P.

    Graphs of rescaled cosine functions shown in Figure 2.8.7 demonstrate the effects of A and P.

    2-20.JPG

    Figure \(\PageIndex{7}\): (a) Graphs of the cosine function for amplitudes 0,5 1.5 and 1.5. (b) Graphs of the cosine function for periods 0.5, 1.0 and 2.0.

    Example 2.8.2

    Problem. Find the period, frequency, and amplitude of

    \[H(t)=3 \sin (5 t+\pi / 3)\]

    Solution. Write \(H(t)=3 \sin (5 t+\pi / 3)\) as

    \[H(t)=3 \sin \left(\frac{2 \pi}{2 \pi / 5} t+\pi / 3\right)\]

    Then the amplitude of P is 3, and the period is \(2 \pi /5\) and the frequency is \(5/(2 \pi)\).

    Motion of a Spring-Mass System A mass suspended from a spring, when vertically displaced from equilibrium a small amount will oscillate above and below the equilibrium position. A graph of displacement from equilibrium vs time is shown in in Figure 2.8.8A for a certain system. Critical points of the graph are

    \[(2.62 \mathrm{s}, 72.82 \mathrm{cm}), \quad(3.18 \mathrm{s}, 46.24 \mathrm{cm}), \quad \text { and } \quad(3.79 \mathrm{s}, 72.80 \mathrm{cm})\]

    2-21.JPG

    Figure \(\PageIndex{8}\): Graphs of A. the motion of a spring-mass system and B. \(H(t) = \cos t\).

    Also shown is the graph of the cosine function, \(H(t) = \cos t\).

    It is clear that the data and the cosine in Figure 2.8.8 have similar shapes, but examine the axes labels and see that their periods and amplitudes are different and the graphs lie in different regions of the plane. We wish to obtain a variation of the cosine function that will match the data.

    The period of the harmonic motion is \(3.79 - 2.62 = 1.17\) seconds, the time of the second peak minus the time of the first peak. The amplitude of the harmonic motion is \(0.5(72.82−46.24) = 13.29\) cm, one-half the difference of the heights of the highest and lowest points.

    Now we expect a function of the form

    \[H_{0}(t)=13.3 \cos \left(\frac{2 \pi}{1.17} t\right)\]

    to have the shape of the data, but we need to translate vertically and horizontally to match the data. The graphs of \(H_0\) and the data are shown in Figure 2.8.9A, and the shapes are similar. We need to match the origin (0,0) with the corresponding point (2.62, 59.5) of the data. We write

    \[H(t)=59.5+13.3 \cos \left(\frac{2 \pi}{1.17}(t-2.62)\right)\]

    The graphs of H and the data are shown in Figure 2.8.9B and there is a good match.

    2-22.JPG

    Figure \(\PageIndex{9}\): On the left is the graph of \(H_{0}(t)=13.3 \cos \left(\frac{2 \pi}{1.17} t\right)\) and the harmonic oscillation data. The two are similar in form. The graph to the right shows the translation, \(H\), of \(H0\), \(H(t) = 59.5+13.3 \cos \left(\frac{2 \pi}{1.17}(t-2.62)\right)\) and its approximation to the harmonic oscillation data.

    Polynomial approximations to the sine and cosine functions. Shown in Figure 2.8.10 are the graphs of \(F(x) = \sin x\) and the graph of (dashed curve)

    \[P_{3}(x)=x-\frac{x^{3}}{120}\]

    on \([0, \pi /2]\).

    2-23.JPG

    Figure \(\PageIndex{10}\): The graphs of \(F(x) = \sin x\) (solid) and \(P_{3}(x)=x-\frac{x^{3}}{120}\) (dashed) on \([0, \pi /2]\).

    The graph of \(P_3\) is hardly distinguishable from the graph of \(F\) on the interval \([0, \pi /4]\), although they do separate near \(x = \pi /2\). \(F(x) = \sin x\) is difficult to evaluate (without a calculator) except for special values such as \(F(0) = \sin 0 = 0\), \(F(\pi /3) = \sin \pi /3 = 0.5\) and \(F(\pi /2) = \sin \pi /2\) = 1.0\). However, \(P_{3} (x)\) can be calculated using only multiplication, division and subtraction. The maximum difference between \(P_3\) and \(F\) on \([0, \pi/4]\) occurs at \(\pi /4\) and \(F(\pi /4) = sqrt{2}/2 \doteq 0.70711\) and \(P_{3} (\pi /4) = 0.70465\). The relative error in using \(P_{3}(\pi /4)\) as an approximation to \(F(\pi /4)\) is

    \[\text { Relative Error }=\frac{\left|P_{3}(\pi / 4)-F(\pi / 4)\right|}{F(\pi / 4)} \doteq \frac{|0.70465-0.70711|}{0.70711}=0.0036\]

    thus less than 0.5% error is made in using the rather simple \(P_{3}(x)=x-\frac{x^{3}}{120}\) in place of \(F(x) = \sin x\) on \([0, \pi /4]\).

     

    Exercises for Section 2.8.1, Trigonometric functions.

    Exercise 2.8.7 Find the periods of the following functions.

    1. \(P(t)=\sin \left(\frac{\pi}{3} t\right)\)
    2. \(P(t)=\sin (t)\)
    3. \(P(t)=5-2 \sin (t)\)
    4. \(P(t)=\sin (t)+\cos (t)\)
    5. \(P(t)=\sin \left(\frac{2 \pi}{2} t\right)+\sin \left(\frac{2 \pi}{3} t\right)\)
    6. \(P(t)=\tan 2 t\)

    Exercise 2.8.8 Sketch the graphs and label the axes for

    \[(a) \quad \mathrm{y}=0.2 \cos \left(\frac{2 \pi}{0.8} \mathrm{t}\right) \quad \text{and} \quad (b) \quad y=5 \cos \left(\frac{1}{8} t+\pi / 6\right)\]

    Exercise 2.8.9 Describe how the harmonic data of Figure 2.8.9A would be translated so that the graph of the new data would match that of \(H_0\).

    Exercise 2.8.10 Use the identity, \(\cos t=\sin \left(t+\frac{\pi}{2}\right)\), to write a sine function that approximates the harmonic oscillation data.

    Exercise 2.8.11 Fit a cosine function to the spring-mass oscillation shown in Exercise Figure 2.8.11.

    2-8-11.JPG

    Exercise 2.8.12 A graph of total marine animal diversity over the period from 543 million years ago until today is shown in Exercise Figure 2.8.12A. The data appeared in a paper by Robert A. Rohde and Richard A. Muller5, and are based on work by J. John Sepkoski6. Also shown is a cubic polynomial fit to the data by Robert Rohde and Richard Muller who were interested in the the difference between the data and the cubic shown in Exercise Figure 2.8.12B. They found that a sine function of period 62 million years fit the residuals rather well. Find an equation of such a sine function.

    Figure for Exercise 2.8.12 A. Marine animal diversity and a cubic polynomial fit to the data. B. The residuals of the cubic fit. Figures adapted from Robert A. Rohde and Richard A. Muller, Cycles in fossil diversity, Nature 434, 208-210, Copyright 2005, http://www.nature.com

    2-8-12.JPG

    Exercise 2.8.13 Technology Draw the graphs of \(F(x) = \sin x\) and

    \[F(x)=\sin x \quad \text { and } \quad P_{5}(x)=x-\frac{x^{3}}{6}+\frac{x^{5}}{120}\]

    on the range \(0 \leq x \leq \pi\). Compute the relative error in \(P_{5}(\pi /4)\) as an approximation to \(F(\pi /4)\) and in \(P_{5}(\pi /2)\) as an approximation to \(F(\pi /2)\).

    Exercise 2.8.14 Technology Polynomial approximations to the cosine function.

    1. Draw the graphs of \(F(x) = \cos x\) and \[F(x)=\cos x \quad \text { and } \quad P_{2}(x)=1-\frac{x^{2}}{2}\] on the range \(0 \leq x \leq \pi\).
    2. Compute the relative error in \(P_{2}(\pi /4)\) as an approximation to \(F(\pi /4)\) and in \(P_{2}(\pi /2)\) as an approximation to \(F(\pi /2)\).
    3. Use a graphing calculator to draw the graphs of \(F(x) = \cos x\) and \[P_{4}(x)=1-\frac{x^{2}}{2}+\frac{x^{4}}{24}\] on the range \(0 \leq x \leq \pi\).
    4. Compute the relative error in \(P_{4}(\pi /4)\) as an approximation to \(F(\pi /4)\) and the absolute error in \(P_4(\pi /2)\) as an approximation to \(F(\pi /2)\).

     

    Robert A. Rohde and Richard A. Muller, Cycles in fossil diversity, Nature 434, 208-210.

    J. John Sepkoski, A compendium of Fossil Marine Animal Genera, Eds David Jablonski and Michael Foote, Bulletins of American Paleontology, 363, 2002.


    2.8: Periodic functions and oscillations is shared under a CC BY-NC-ND license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?