Loading…

Infinite Well Wave Function Visualizer

Modern Physics • Quantum Mechanics

View all topics

Plot the normalized wave function ψn(x) = √(2/L) sin(nπx/L) and its probability density |ψn(x)|2 for the 1D infinite square well. Explore node structure, lobe count, and density peaks interactively.

Inputs

Inside the infinite well, the stationary-state wave functions are:

ψn(x) = √(2/L) · sin(nπx/L), for 0 < x < L

The corresponding probability density is:

n(x)|2 = (2/L) · sin2(nπx/L)

The state has n − 1 internal nodes and n probability lobes.

Animation and graph controls
Ready
Ready
Interactive infinite-well preview
The left panel shows the wave function and/or probability density as a function of position. The right panel gives a conceptual box view with the standing wave and density lobes.
Left panel: quantitative graph. Right panel: particle-in-a-box sketch. 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 is the wave function for the infinite square well?

For the 1D infinite well from x = 0 to x = L, the normalized stationary states are ψ_n(x) = √(2/L) sin(nπx/L), with n = 1, 2, 3, ...

How many internal nodes does the state ψ_n have?

The state has n − 1 internal nodes, meaning zero crossings strictly inside the box and not counting the walls at x = 0 and x = L.

Why does the probability density have n peaks?

Because |ψ_n|² is proportional to sin²(nπx/L), which produces one positive lobe in each half-wave section of the standing-wave pattern.

Where are the probability-density maxima located?

They occur at x_(p,j) = (2j − 1)L / (2n), for j = 1, 2, ..., n. These are the most likely positions within each density lobe.