notAcalculator logo

Waves & Optics Guide

How waves and light actually behave: the wave equation, superposition and beats, resonance, the Doppler effect, the electromagnetic spectrum, refraction and Snell's law, lenses and mirrors, and diffraction. Every idea with numbers you can check.

Introduction

Waves are how energy travels without matter travelling with it, and optics is the branch of physics that happens when those waves are light. The two belong together because almost every optical phenomenon — a rainbow, a camera lens, the glare on wet asphalt — is a wave effect measured in wavelengths. Treat them separately and you end up memorising formulas; treat them as one subject and the formulas fall out of a single picture of crests, troughs and phase.

This guide covers the branch of physics called waves and optics end to end: the wave equation and what each symbol means, what happens when two waves meet, why systems resonate at particular frequencies, how motion shifts a frequency, how light behaves at an interface, how lenses and mirrors form images, and why light bends around edges. Each idea comes with the numbers to check it, and each links to a calculator that does the arithmetic. The parent overview of the whole domain is the physics guide.

The Wave Equation: Speed, Frequency and Period

Every wave has three linked quantities: a speed, a frequency and a wavelength. The relation between them is the single most used equation in the subject:

v=fλv = f \lambda

Frequency f counts oscillations per second, in hertz. Wavelength λ is the distance between consecutive crests, in metres. Their product is the speed at which the pattern moves through the medium. A 440 Hz tone in air has a wavelength of 0.78 m, because 343 divided by 440 is 0.78. The same 440 Hz tone in water has a wavelength of 3.37 m, because the wave speed is four times higher and the frequency is set by the source, not the medium.

The period is simply the reciprocal of frequency:

T=1fT = \frac{1}{f}

so 440 Hz repeats every 2.27 ms. Period is the more useful variable when you are counting how long a pulse takes to return, which is how sonar and ultrasound ranging work. The Wave Speed Calculator solves the equation in all three directions, and the Wavelength Calculator focuses on the wavelength side.

Two properties are worth separating early. Amplitude is how far the medium moves from rest; it sets the energy a wave carries and, for sound, the loudness. Frequency is how often it moves; it sets the pitch or, for light, the colour. Most beginner confusion comes from mixing the two, because a loud low note and a quiet high note can carry the same energy.

Superposition, Beats and Standing Waves

When two waves share the same space, their displacements add. That is superposition, and it produces three regimes worth naming.

Constructive interference happens when crests meet crests: the amplitudes add, and the result is a larger wave. Destructive interference happens when a crest meets a trough: if the amplitudes are equal, they cancel to zero. The condition depends on the phase difference, which for waves of the same frequency is a matter of path length.

Beats appear when two frequencies are close but not equal. The combined signal rises and falls at the difference frequency:

fbeat=∣f1−f2∣f_{beat} = |f_1 - f_2|

Two tuning forks at 440 Hz and 444 Hz produce a beat every 0.25 s, four per second. Piano tuners exploit this: they adjust a string until the beat with a reference tone disappears.

Standing waves form when a wave reflects back onto itself inside a confined region — a guitar string, an organ pipe, a laser cavity. Only certain wavelengths fit, and those are the harmonics:

λn=2Ln\lambda_n = \frac{2L}{n}

for a string fixed at both ends, with L the length and n an integer. A 65 cm guitar string therefore supports a fundamental of 1.30 m wavelength, and the twelfth fret halves the sounding length to produce the octave, because halving L halves λ and doubles the frequency.

Resonance and Natural Frequency

Every system that can oscillate has preferred frequencies — the ones where it stores and returns energy most efficiently. A mass on a spring is the textbook case:

f0=12πkmf_0 = \frac{1}{2\pi}\sqrt{\frac{k}{m}}

with k the stiffness in newtons per metre and m the mass. Stiffen the spring and the natural frequency rises; add mass and it falls. A pendulum is the same idea with gravity:

f0=12πgLf_0 = \frac{1}{2\pi}\sqrt{\frac{g}{L}}

A one-metre pendulum swings at about 0.5 Hz, which is why clock pendulums are close to a metre long. An electrical LC circuit follows the identical mathematics with inductance and capacitance in place of mass and stiffness.

Resonance is what happens when you drive a system at its natural frequency: the amplitude grows, limited only by damping. It is useful in radio tuning and microwave ovens, and destructive in bridges and buildings, which is why marching soldiers break step crossing a footbridge.

The Doppler Effect

Motion between a source and an observer changes the frequency that is received, without changing the frequency that was emitted. For sound the shift is set by how the speeds compare with the wave speed:

f′=fv+vov−vsf' = f \frac{v + v_o}{v - v_s}

with v_o positive toward the source and v_s positive toward the observer. The asymmetry matters: at the same speed, a moving source shifts the frequency more than a moving observer does, because a moving source changes the wavelength in the medium itself.

For light there is no medium, so the observable is the wavelength ratio. A receding source stretches the wavelength — a redshift — and the fractional change is:

z=λobs−λrestλrestz = \frac{\lambda_{obs} - \lambda_{rest}}{\lambda_{rest}}

Astronomers measure z directly from spectral lines and convert it into a recession velocity. The Doppler Effect Calculator handles both cases, including the relativistic velocity conversion, and returns whether the pitch or the light rises or falls.

The Electromagnetic Spectrum

Light, radio, microwaves, infrared, ultraviolet, X-rays and gamma rays are the same phenomenon at different frequencies. The visible band is a narrow slice of it, and within that slice the frequency sets the colour. Because the speed in vacuum is fixed, wavelength and frequency are strictly inversely related: a wavelength in nanometres determines the frequency exactly.

Violet4007493.10
Blue4706382.64
Green5305662.34
Yellow5805172.14
Orange6104912.03
Red7004281.77
Frequency falls from violet to red across the visible band. Because photon energy is proportional to frequency, violet light carries roughly 1.75 times the energy of red light at the same brightness.

The energy column explains a lot of practical optics: ultraviolet photons carry enough energy to break chemical bonds, which is why UV causes sunburn and fades pigments, while infrared photons mostly excite vibrations — heat. The same relation, E = hf, is why a red laser and a violet laser of equal power behave differently on a material.

Reflection and Refraction

At any interface, part of the light reflects and part transmits. Reflection obeys a simple rule: the angle of incidence equals the angle of reflection, both measured from the normal.

Transmission is where the interesting physics starts. Light slows down in a denser medium, and because the frequency is fixed by the source, the wavelength must shrink. The change of speed changes the direction, and Snell's law quantifies it:

n1sin⁡θ1=n2sin⁡θ2n_1 \sin\theta_1 = n_2 \sin\theta_2

The refractive index n is the ratio of the vacuum speed of light to the speed in the medium. Going into a denser medium, the ray bends toward the normal; leaving it, the ray bends away. Beyond a critical angle there is no transmitted ray at all:

θc=arcsin⁡(n2n1)\theta_c = \arcsin\left(\frac{n_2}{n_1}\right)

Total internal reflection only happens when light travels from the higher index to the lower one. It is the principle behind optical fibres, where light inside the core keeps reflecting off the cladding, and behind the brightness of a cut diamond, whose critical angle is only 24.4°. The Snell's Law Calculator returns the refracted angle, the critical angle and the case of total internal reflection.

Lenses and Mirrors

A lens is two refracting surfaces arranged so that parallel rays converge to a focal point. The thin lens equation relates that focal length to where the object and image sit:

1f=1do+1di\frac{1}{f} = \frac{1}{d_o} + \frac{1}{d_i}

and the magnification follows from the same geometry:

m=−didom = -\frac{d_i}{d_o}

The sign convention carries the physics. A positive image distance puts the image on the far side, where rays converge: real and inverted. A negative image distance puts it on the object side, where rays only appear to diverge from: virtual and upright. The character of the image depends entirely on where the object sits:

  • Beyond twice the focal length — real, inverted, smaller: the camera and the eye.
  • At twice the focal length — real, inverted, the same size: copy work.
  • Between the focal point and twice it — real, inverted, larger: the projector.
  • Exactly at the focal point — rays leave parallel, no image forms: a collimator.
  • Inside the focal point — virtual, upright, larger: the magnifying glass.

Lens power, the number on a prescription, is the reciprocal of the focal length in metres, so a 50 cm lens is 2 dioptres. Mirrors obey the same equation with the same signs, which is why a concave mirror can project an image onto a screen just as a converging lens does. The Lens Equation Calculator solves for image distance, focal length or magnification and reports the image type explicitly.

Diffraction and Interference

Light bends around obstacles and spreads through narrow openings. That is diffraction, and it is the clearest evidence that light is a wave: geometric optics predicts a sharp shadow, and reality delivers a soft, fringed edge.

For a single slit of width a, the first minimum appears at:

asin⁡θ=λa \sin\theta = \lambda

so a 0.1 mm slit illuminated with 550 nm light spreads its first minimum about 0.31° from the centre. For two slits separated by d, the bright fringes satisfy:

dsin⁡θ=mλd \sin\theta = m\lambda

with m an integer. The spacing between fringes grows as the slits get closer together or the wavelength gets longer, which is why the pattern from a red laser is wider than from a green one.

Interference is not a laboratory curiosity. Thin-film anti-reflective coatings on lenses work by arranging a quarter-wavelength layer so the two reflected beams cancel. Iridescent colours on soap bubbles and oil slicks come from the same effect at different angles. And the resolution of any optical instrument — microscope, telescope, camera — is ultimately limited by diffraction, not by the quality of its glass.

Practical Tips

  • Convert units before substituting. Wave problems mix hertz, nanometres and milliseconds constantly. Convert everything to SI first; most wrong answers are unit errors, not physics errors.
  • Draw the normal. Every refraction, reflection and lens problem becomes trivial once the normal is drawn at the interface. Angles measured from the surface instead of the normal are the most common geometric mistake.
  • Use the sign convention consistently. For lenses and mirrors, positive distances for real, negative for virtual. Changing convention halfway through a calculation produces answers that look reasonable and are wrong.
  • Remember that frequency is set by the source. Crossing an interface changes the speed and the wavelength, never the frequency. This single rule resolves most confusion about colour underwater.
  • Check against a known case. A 440 Hz tone in air must give 0.78 m. An object at twice the focal length must give a same-size inverted image. Fast sanity checks catch sign errors immediately.
  • Keep track of phase, not just amplitude. Interference and diffraction are phase stories; adding amplitudes without tracking path difference will get the bright and dark fringes backwards.

Limitations

These models assume ideal conditions. Geometric optics treats light as rays and ignores diffraction, so it fails whenever apertures approach the wavelength — which is why a camera at f/22 is softer than at f/8. The thin lens equation ignores thickness and assumes paraxial rays, so it describes the centre of the field well and the corners poorly.

Real media disperse: the refractive index changes with wavelength, which the single-index treatment ignores. That is the difference between a textbook refraction diagram and a rainbow. Real waves also lose energy to absorption and scattering, and the equations above say nothing about intensity.

Finally, every treatment here is classical. Photons, coherence and quantum interference need a different framework; the wave picture is the correct limit for large photon numbers and is the right tool for the overwhelming majority of engineering problems.

Frequently Asked Questions

❓ What is the difference between waves and optics?
✅ Waves is the general study of oscillations that travel, and optics is the specific case where the wave is light. The same equations for speed, interference and resonance apply to both.
❓ Why does frequency stay the same when light enters water?
✅ The frequency is set by the source and counts wavefronts arriving per second. The boundary cannot create or destroy wavefronts, so the frequency is fixed and the wavelength must shrink as the speed drops.
❓ What causes beats in sound?
✅ Two frequencies close together alternately reinforce and cancel. The loudness rises and falls at the difference frequency, which is why a beat of 4 per second comes from tones 4 Hz apart.
❓ What is resonance in simple terms?
✅ It is driving a system at a frequency it naturally prefers, so each push adds energy and the amplitude grows. Damping limits how large the response can get.
❓ How is the Doppler effect used in everyday technology?
✅ Weather radar measures rain velocity from the shift, police radar measures vehicle speed, ultrasound measures blood flow, and GPS satellites correct for it because they move relative to receivers.
❓ Why does a diamond sparkle more than glass?
✅ Its refractive index of 2.42 gives a critical angle of only 24.4 degrees, so light entering the stone is trapped and reflected many times before escaping through the crown, where a cut designed for the purpose spreads it into colours.
❓ What is total internal reflection?
✅ It is the complete reflection of light at an interface when the incidence angle exceeds the critical angle. It only occurs going from a denser medium to a less dense one.
❓ How do I know whether a lens image is real?
✅ A real image forms where light actually converges and can be projected onto a screen. A virtual image is where rays only appear to originate, so it cannot be projected.
❓ Why do camera lenses have many elements?
✅ A single lens cannot correct chromatic and spherical aberration. Multiple elements of different glasses and shapes compensate, which is why lens design is a specialised field.
❓ What is the difference between interference and diffraction?
✅ Interference is the combination of two or more waves; diffraction is the spreading of a wave when it meets an obstacle or aperture. Diffraction patterns are themselves produced by interference between different parts of the same wavefront.
❓ Does light really slow down in glass?
✅ The wave's phase velocity in the medium is lower, and the microscopic explanation is that the electric field drives oscillations in the material that re-radiate with a delay. The energy still arrives at the speed the medium allows.
❓ Why is the sky blue and the sunset red?
✅ Air scatters short wavelengths more strongly than long ones. Looking away from the sun you see the scattered blue; looking through a long path at sunset, the blue has been scattered out and the remaining light is red.

References

  1. [1]OpenStax. (2020). College Physics 2e, Chapters 16-17: Oscillatory Motion and Waves, Physics of Hearing. Retrieved from openstax.org
  2. [2]OpenStax. (2020). College Physics 2e, Chapter 25: Geometric Optics. Retrieved from openstax.org
  3. [3]Nave, C. R. (n.d.). HyperPhysics: Sound and Optics. Georgia State University. Retrieved from hyperphysics.phy-astr.gsu.edu
  4. [4]The Physics Classroom. (n.d.). Waves, Sound and Light tutorials. Retrieved from physicsclassroom.com
  5. [5]National Aeronautics and Space Administration. (n.d.). The Electromagnetic Spectrum. Retrieved from imagine.gsfc.nasa.gov
  6. [6]Wikipedia. (n.d.). Electromagnetic spectrum. Retrieved from en.wikipedia.org
Give us your feedback! Was this useful?
1b

UnByte — Independent Software Engineering

All reference data cites its sources — Editorial policy