---
title: "Wave functions and quantum uncertainty | Sandbox Physics"
description: "Normalize a wave function to find position probabilities. Compare two wave packets to see how the spread of momentum changes."
canonical_url: "https://sandboxphysics.com/learn/quantum-physics/wave-functions-and-uncertainty/"
language: "en"
page_type: "story"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/learn/quantum-physics/wave-functions-and-uncertainty/"
last_modified: "2026-11-24"
---

[Volume 6 · Quantum Physics](https://sandboxphysics.com/learn/quantum-physics/)

# How does a wave function predict position and momentum?

Normalize a wave function to find position probabilities. Compare two wave packets to see how the spread of momentum changes.

Before you start: [Chapter 1](https://sandboxphysics.com/learn/quantum-physics/single-event-interference/) on probabilities and [Volume 2 Chapter 6](https://sandboxphysics.com/learn/oscillations-and-waves/standing-waves-and-fourier/) on Fourier sums.

After this chapter you can: Read position and momentum probabilities from a wave packet and distinguish their spreads from measurement instrument errors.

The squared magnitude of a wave function gives a position probability density. To predict momentum, first take the Fourier transform, then square its magnitude. A state concentrated into a narrow range of positions needs a wider range of momentum components. The two spreads describe measurements on repeated preparations of the same state.

## 2.1 Turn a complex amplitude into a position probability

Consider a particle on a line. Write $\psi(x)$ for its complex wave function at a chosen time. The probability of observing a position between $a$ and $b$ is the area under the squared magnitude over that interval.

$$
P(a\leq x\leq b)=\int_a^b |\psi(x)|^2\,dx,\qquad
\int_{-\infty}^{\infty}|\psi(x)|^2\,dx=1.
$$

The second equation normalizes the total probability. The height of the density curve at one position is a probability per unit length. A wider interval collects more probability where the density is positive.

Multiplying the entire wave function by one constant phase leaves every density unchanged. A phase that varies with position can matter. Two wave functions with the same position density can have different momentum distributions.

## 2.2 Use a Fourier transform to read the momentum components

A plane wave $e^{ipx/\hbar}$ carries momentum $p$. A localized packet is a superposition of many such waves. Its Fourier transform gives their complex amplitudes. With $\hbar$ the reduced Planck constant, choose the normalization

$$
\widetilde\psi(p)=\frac{1}{\sqrt{2\pi\hbar}}
\int_{-\infty}^{\infty} \psi(x)e^{-ipx/\hbar}\,dx .
$$

The momentum density is $|\widetilde\psi(p)|^2$. It integrates to one in the momentum coordinate. To compute a mean or a standard deviation, weight the coordinate by its own density. Write $\Delta x$ and $\Delta p$ for the standard deviations about the two means.

Adding a phase factor $e^{ip_0x/\hbar}$ to a state leaves its position density unchanged. In the transform, it replaces $p$ with $p-p_0$. The momentum distribution shifts by $p_0$ without changing shape.

## 2.3 Relate the two widths

The uncertainty relation for these standard deviations is

$$
\Delta x\,\Delta p\geq\frac{\hbar}{2}.
$$

This bound applies to the prepared state. A position measurement and a momentum measurement are done on separate preparations to estimate the two distributions. Their standard deviations describe the spread of the outcomes. Increasing the sample count can reduce the standard error of a mean without narrowing the distribution itself.

A Gaussian with a flat phase apart from the carrier provides an exact example. Let its position density be centred at $x_0$ with standard deviation $\sigma$. Its amplitude is proportional to

$$
\psi(x)\propto
\exp\!\left[-\frac{(x-x_0)^2}{4\sigma^2}
+\frac{ip_0 x}{\hbar}\right].
$$

Squaring gives the Gaussian position density of width $\sigma$. The Fourier transform is Gaussian in momentum and gives $\Delta p=\hbar/(2\sigma)$, so this packet reaches the bound. A position-dependent phase that changes the local wave number can increase the product.

## 2.4 Compare two preparations in the Wave Packet Lab

Open [Wave Packet & Uncertainty](https://sandboxphysics.com/labs/wave-packet-uncertainty/) and choose **Let it spread**. Set **Measurement time** to zero, **Carrier momentum** to zero and **Position–momentum correlation** to zero. Compare **Initial lobe width** values of $1.00$ and $0.600$. The model uses normalized variables with $\hbar=1$. The narrower position density gives a broader momentum density.

- Initial position spread 1.0
- Initial position spread 0.6

**Figure 2.1** Model position and momentum densities at the time of preparation for two uncorrelated Gaussian packets. Both are centred at zero and use the same normalized coordinate scale within each panel. The narrow position packet has the wider momentum distribution.

**Table 2.1** Standard deviations of the two simulated initial states, in the Lab's normalized units.

| Initial lobe width | Position spread | Momentum spread | Product |
| --- | --- | --- | --- |
| $1.00$ | $1.00$ | $0.500$ | $0.500$ |
| $0.600$ | $0.600$ | $0.833$ | $0.500$ |

For either width choose **Position** under **Observable to sample** and click **Sample this time**. Then switch to **Momentum** and sample again at the same time. Open **Recorded distributions and time series** to compare the bars with the model density. Each draw uses a fresh preparation. The two histograms estimate the coordinate distributions separately.

Move **Measurement time** forward while keeping one preparation fixed. The free model changes the phases of its momentum components, preserving their probabilities. The position density changes when those components are added back together. The animation shows the changing distribution. The numerical model uses a finite periodic grid; wraparound at its edge would be a boundary effect of that grid.

## 2.5 Exercises

1. What is the probability of finding a particle somewhere on the line if its wave function is normalized?
2. A normalized wave function is multiplied by $e^{i\pi/3}$. What happens to the position and momentum densities?
3. A normalized wave function is multiplied by $e^{ip_0x/\hbar}$. How do the position density and the momentum mean change?
4. The Lab's uncorrelated Gaussian has initial position spread $2.00$ with $\hbar=1$. Calculate its initial momentum spread.
5. Two minimum-uncertainty Gaussians differ only in initial width. One is half as wide in position as the other. Compare their momentum standard deviations.
6. A pair of sample standard deviations at one time gives a product slightly below $\hbar/2$. Does that establish a violation of the uncertainty relation?
7. The number of independent samples from one position distribution is multiplied by four. How does that change the standard error of the sample mean, if the underlying spread is fixed?
8. A free wave packet spreads in position. Its Fourier amplitudes acquire phase factors of unit magnitude. What happens to the momentum standard deviation?

Exercise 1

The probability is one. The integral of $|\psi(x)|^2$ over the entire line is one by normalization.

Exercise 2

Both densities remain the same. The common phase multiplies the wave function and its Fourier transform by a factor of magnitude one.

Exercise 3

The position density stays fixed because the new factor has magnitude one. The momentum mean increases by $p_0$ because the entire momentum density shifts by that amount.

Exercise 4

The spread is $1/(2\times2.00)=0.250$. For this Gaussian, the product is $1/2$ in the chosen units.

Exercise 5

The narrower position packet has twice the momentum spread. Both products equal $\hbar/2$, so the spreads scale inversely.

Exercise 6

No. Each sample standard deviation estimates its distribution's true standard deviation from finitely many draws. The uncertainty relation bounds the product for the prepared state's distributions.

Exercise 7

It halves. The standard error of the mean scales as $1/\sqrt N$ for $N$ independent samples. The position distribution retains its own standard deviation.

Exercise 8

It stays the same. Unit-magnitude phase factors leave every squared momentum amplitude unchanged.

## Test it in the Lab

Change one setting at a time, then compare what you see with the tables and answers in this chapter.

[Wave Packet & Uncertainty → Release a Gaussian wave packet, give it a converging phase or combine two lobes. Watch the complex amplitude together with the position and momentum distributions, and estimate how the packet moves and spreads from independent position records.](https://sandboxphysics.com/labs/wave-packet-uncertainty/)

## Sources and reading scope

1. [OpenStax, University Physics Volume 3, §7.1 Wave Functions](https://openstax.org/books/university-physics-volume-3/pages/7-1-wave-functions)

   The section connects the magnitude squared of a wavefunction with position probability and explains normalization.

2. [OpenStax, University Physics Volume 3, §7.2 The Heisenberg Uncertainty Principle](https://openstax.org/books/university-physics-volume-3/pages/7-2-the-heisenberg-uncertainty-principle)

   The section relates spread in position to spread in momentum and shows how a narrower wave packet uses a wider range of wave numbers.

3. [MIT 8.04 Quantum Physics I, Lecture 7 Wave Packets](https://ocw.mit.edu/courses/8-04-quantum-physics-i-spring-2016/6ca5bd79a2121967796f7c0b8f6f48c9_MIT8_04S16_LecNotes7.pdf)

   The notes relate the momentum representation to the Fourier transform of the position wave function.

[← Chapter 1 · How do single detections build up an interference pattern?](https://sandboxphysics.com/learn/quantum-physics/single-event-interference/) [Chapter 3 · How does a prepared quantum state evolve? →](https://sandboxphysics.com/learn/quantum-physics/quantum-state-evolution/)

Chapters in this volume

- [1. How do single detections build up an interference pattern?](https://sandboxphysics.com/learn/quantum-physics/single-event-interference/)
- [2. How does a wave function predict position and momentum?](https://sandboxphysics.com/learn/quantum-physics/wave-functions-and-uncertainty/)
- [3. How does a prepared quantum state evolve?](https://sandboxphysics.com/learn/quantum-physics/quantum-state-evolution/)
- [4. Why does a quantum particle cross a barrier it cannot climb?](https://sandboxphysics.com/learn/quantum-physics/quantum-tunneling/)
- [5. How do we read out a two-state quantum system?](https://sandboxphysics.com/learn/quantum-physics/two-level-systems-and-measurement/)
- [6. How do atoms turn energy gaps into frequency measurements?](https://sandboxphysics.com/learn/quantum-physics/atomic-spectra-and-ramsey/)
- [7. How do two systems produce quantum correlations?](https://sandboxphysics.com/learn/quantum-physics/entanglement-and-correlations/)

## Keep reading

Interactive Physics Textbook · Reading path

### Quantum Physics

1. [Article **How do single detections build up an interference pattern?**](https://sandboxphysics.com/learn/quantum-physics/single-event-interference/)
2. [You are here **How does a wave function predict position and momentum?**](https://sandboxphysics.com/learn/quantum-physics/wave-functions-and-uncertainty/)
3. [Article **How does a prepared quantum state evolve?**](https://sandboxphysics.com/learn/quantum-physics/quantum-state-evolution/)
4. [Article **Why does a quantum particle cross a barrier it cannot climb?**](https://sandboxphysics.com/learn/quantum-physics/quantum-tunneling/)
5. [Article **How do we read out a two-state quantum system?**](https://sandboxphysics.com/learn/quantum-physics/two-level-systems-and-measurement/)
6. [Article **How do atoms turn energy gaps into frequency measurements?**](https://sandboxphysics.com/learn/quantum-physics/atomic-spectra-and-ramsey/)
7. [Article **How do two systems produce quantum correlations?**](https://sandboxphysics.com/learn/quantum-physics/entanglement-and-correlations/)

1 more group

### Other articles that use the same experiments

Each experiment from this article that another series also uses, followed by the articles there.

1. [Lab **Wave Packet & Uncertainty**](https://sandboxphysics.com/labs/wave-packet-uncertainty/)
2. [Article **de Broglie: a wavelength for matter, a speed for the packet**](https://sandboxphysics.com/stories/quantum-evidence/de-broglie-matter-waves-phase-packets/)
3. [Article **Matrices and waves: two routes to the same predictions**](https://sandboxphysics.com/stories/quantum-evidence/matrix-wave-mechanics-observables/)
