Skip to main content
Home
plus.maths.org

Secondary menu

  • My list
  • About Plus
  • Sponsors
  • Subscribe
  • Contact Us
  • Log in
  • Main navigation

  • Home
  • Articles
  • Collections
  • Podcasts
  • Maths in a minute
  • Puzzles
  • Videos
  • Topics and tags
  • For

    • cat icon
      Curiosity
    • newspaper icon
      Media
    • graduation icon
      Education
    • briefcase icon
      Policy

    Popular topics and tags

    Shapes

    • Geometry
    • Vectors and matrices
    • Topology
    • Networks and graph theory
    • Fractals

    Numbers

    • Number theory
    • Arithmetic
    • Prime numbers
    • Fermat's last theorem
    • Cryptography

    Computing and information

    • Quantum computing
    • Complexity
    • Information theory
    • Artificial intelligence and machine learning
    • Algorithm

    Data and probability

    • Statistics
    • Probability and uncertainty
    • Randomness

    Abstract structures

    • Symmetry
    • Algebra and group theory
    • Vectors and matrices

    Physics

    • Fluid dynamics
    • Quantum physics
    • General relativity, gravity and black holes
    • Entropy and thermodynamics
    • String theory and quantum gravity

    Arts, humanities and sport

    • History and philosophy of mathematics
    • Art and Music
    • Language
    • Sport

    Logic, proof and strategy

    • Logic
    • Proof
    • Game theory

    Calculus and analysis

    • Differential equations
    • Calculus

    Towards applications

    • Mathematical modelling
    • Dynamical systems and Chaos

    Applications

    • Medicine and health
    • Epidemiology
    • Biology
    • Economics and finance
    • Engineering and architecture
    • Weather forecasting
    • Climate change

    Understanding of mathematics

    • Public understanding of mathematics
    • Education

    Get your maths quickly

    • Maths in a minute

    Main menu

  • Home
  • Articles
  • Collections
  • Podcasts
  • Maths in a minute
  • Puzzles
  • Videos
  • Topics and tags
  • Audiences

    • cat icon
      Curiosity
    • newspaper icon
      Media
    • graduation icon
      Education
    • briefcase icon
      Policy

    Secondary menu

  • My list
  • About Plus
  • Sponsors
  • Subscribe
  • Contact Us
  • Log in
  • a wave

    The harmonics of a string

    Marianne Freiberger
    16 October, 2026

    When we pluck a guitar string we hear a sound. That's because the string starts to vibrate at its resonant frequency, This frequency is what controls the pitch of the sound we hear. But at the same time the string vibrates at lots of harmonic frequencies which are each an exact multiple of the fundamental frequency.

    But how can a string vibrate at lots of frequencies at once? To find out, we have made some animations.

    We have modelled the wave that gives the fundamental frequency, which is called the first harmonic, by the equation

    $$f_1(x,t)=\sin{x}\cos{t}.$$

    The waves that give the first three harmonic frequencies, known as the second, third, and fourth harmonics, have been modelled by the equations

    $$f_2(x,t) = \sin{2x}\cos{2t},$$

    $$f_3(x,t) = \sin{3x}\cos{3t},$$

    $$f_3(x,t) = \sin{4x}\cos{4t}.$$

    Here $x$ is the space variable, represented on the horizontal axis below and $t$ is time.

    The three animations show the four waves individually.

    The first harmonic
    The second harmonic
    The third harmonic
    The fourth harmonic

    To model the string vibrating at several frequencies at once we have added up the individual expressions to get

    $$h(x,t)=\sin{x}\cos{t}+a \sin{2x}\cos{2t}+b \sin{3x}\cos{3t}+c \sin{4x}\cos{4t}.$$

    The animation below shows the first harmonic in purple and $h(x,t)$ in black. You can choose the values of the coefficients $a$, $b$, and $c$ using the sliders. They each range from $0$ to $1$. This means you can choose how much each frequency weighs in, though in this example none of them is allowed to weigh in more than the fundamental frequency.

    And - tadaa - you see our hypothetical string vibrate at four frequencies at once.

    About this article

    This content forms part of our collaboration with the Isaac Newton Institute for Mathematical Sciences (INI) – you can find all the content from the collaboration here.

    The INI is an international research centre and our neighbour here on the University of Cambridge's maths campus. It attracts leading mathematical scientists from all over the world, and is open to all. Visit www.newton.ac.uk to find out more.

    Isaac Newton Institute Logo
    • Log in or register to post comments

    You might also like

    article

    Catching waves with the Laplacian

    The Laplacian operator turns up all over maths.  Here's a reasonably light-touch introduction and a look at why it forms part of the wave equation.

    article
    Drum

    Can you hear the shape of a drum?

    The sound of a plucked string depends on how long it is, so you can hear the length of a string. But can you hear the shape of a drum? 

    article

    Maths in a minute: Maths and music

    Explore the connections between maths and music!

    Read more about...

    mathematics and music
    standing wave
    harmonics

    Our Podcast: Maths on the Move

    Our Maths on the Move podcast brings you the latest news from the world of maths, plus interviews and discussions with leading mathematicians and scientists about the maths that is changing our lives.

    Apple Podcasts
    Spotify
    Podbean

    Plus delivered to you

    Keep up to date with Plus by subscribing to our newsletter or following Plus on X, Bluesky, Facebook or LinkedIn.

    University of Cambridge logo
    Twitter / X logo Bluesky logo LinkedIn logo

    Plus is part of the family of activities in the Millennium Mathematics Project.
    Copyright © 1997 - 2026. University of Cambridge. All rights reserved.

    Terms