Loading…

Expectation Value and Probability Density Tool

Modern Physics • Quantum Mechanics

View all topics

Compute expectation values \(\langle x\rangle\), \(\langle p\rangle\), \(\langle x^2\rangle\), \(\langle p^2\rangle\), probability density \(|\psi(x)|^2\), and the uncertainty product \(\Delta x\,\Delta p\) for several standard 1D wave functions. The calculator supports common analytic states and shows the density graph with expectation markers.

Inputs
The calculator uses \[ \langle x\rangle = \int \psi^*(x)\,x\,\psi(x)\,dx, \qquad \langle x^2\rangle = \int \psi^*(x)\,x^2\,\psi(x)\,dx, \] together with \[ \Delta x = \sqrt{\langle x^2\rangle - \langle x\rangle^2}. \] For momentum, \[ \hat p = -i\hbar \frac{d}{dx}, \qquad \Delta p = \sqrt{\langle p^2\rangle - \langle p\rangle^2}. \] The uncertainty product is then \(\Delta x\,\Delta p\).
Animation and graph controls
Ready
Ready
Interactive expectation-value preview
The left panel shows the wave function or probability density. The right panel summarizes the expectation markers and uncertainty interval on a conceptual axis. Drag inside either panel to pan after zooming.
Left panel: \(\psi(x)\) or \(|\psi(x)|^2\). Right panel: expectation markers and spread interval. Mouse-wheel zoom affects only the hovered panel.
Enter values and click “Calculate”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What does |ψ(x)|² represent?

It is the position-space probability density. It tells you how likely the particle is to be found near each position x.

Why can ⟨p⟩ be zero while ⟨p²⟩ is not zero?

Because the average momentum can cancel between positive and negative contributions, while the squared momentum remains positive and still measures the spread in momentum.

How do you compute the uncertainty in position and momentum?

Use Δx = sqrt(⟨x²⟩ − ⟨x⟩²) and Δp = sqrt(⟨p²⟩ − ⟨p⟩²). Their product is then compared with ħ/2.

Why is the uncertainty product important?

It quantifies the Heisenberg uncertainty principle, which sets a fundamental limit on how sharply position and momentum can be known at the same time.