Hermite Polynomial Calculator

What this calculator does

Hermite polynomials appear whenever a problem naturally lives next to a Gaussian curve. That is why they show up in quantum harmonic oscillator wavefunctions, Gaussian derivatives, probability theory, spectral methods, and Gauss-Hermite quadrature. This calculator focuses on the most practical task: given a degree n, a real input x, and a convention, it evaluates the corresponding Hermite polynomial value quickly and consistently. Instead of expanding a long polynomial by hand, the page uses the standard recurrence relations, which are stable for moderate degrees and much easier to work with than raw coefficients.

The most important choice on this page is the convention. Many references use the physicists' family, written as Hn(x), while probability texts often use the probabilists' family, written as Hen(x). They are closely related, but they are not numerically identical. If you copy a formula from one source and evaluate it with the other convention, your answer can be off by a scaling factor or more. The form below makes that choice explicit so the result matches the textbook or paper you are using.

This page is most useful when you want a quick numeric check. You might be verifying a symbolic derivation, checking whether a suspected root really makes the polynomial vanish, comparing the two conventions at the same x, or building intuition before coding a larger model. In all of those cases, the calculator turns a notation-heavy expression into a simple workflow: choose the family, enter the degree, enter the evaluation point, and read off the value.

What the inputs mean

Degree n is the polynomial degree. It must be a non-negative integer: 0, 1, 2, 3, and so on. Degree 0 gives the constant polynomial 1. Degree 1 gives the first nontrivial linear case. Each step up in degree adds another layer of structure and, importantly, another real root. If you enter a negative value or a non-integer, the calculator rejects it because Hermite polynomials in this form are indexed by whole-number degree.

x is the point where you want the polynomial evaluated. It can be any real number. In most applications, x is dimensionless because the physical or statistical variable has already been scaled into a normalized coordinate. That is why the form does not ask for units. If your original variable had units, make sure you do the scaling required by your formula before entering x here. The output has the same status: it is a polynomial value, not a measured physical unit by itself.

Polynomial convention tells the calculator whether to use the physicists' version or the probabilists' version. This is not a cosmetic label. For example, at degree 1 the physicists' polynomial is 2x, while the probabilists' polynomial is just x. At higher degrees the difference becomes even more noticeable, so it is worth pausing to confirm which notation your source uses before you click Evaluate.

If you are not sure which family you need, look at the first few terms in your reference. A formula that starts with H1(x) = 2x is using the physicists' convention. A formula that starts with He1(x) = x is using the probabilists' convention. That quick check often prevents an hour of confusion later.

The formulas used here

The calculator evaluates Hermite polynomials by recurrence. That approach is ideal for a web calculator because it avoids building huge coefficient lists and follows the same definitions you see in standard references. The physicists' family starts with 1 and 2x, then generates higher degrees from the two previous values. The probabilists' family does the same, but with a different scaling.

H0(x)=1, H1(x)=2x, Hn+1(x) =2xHn(x) -2nHn-1(x) He0(x)=1, He1(x)=x, Hen+1(x) =xHen(x) -nHen-1(x)

The two conventions are linked by a simple scaling relation. If you know one family, you can convert it to the other. This is useful when a physics source and a probability source appear to disagree even though they are describing the same mathematical object in different normalization.

Hen(x) = 2-n/2 Hn ( x2 )

Two quick sanity checks fall straight out of these formulas. First, all odd-degree Hermite polynomials vanish at x = 0, so if you enter an odd degree and zero for x, the result should be 0. Second, Hermite polynomials have parity: replacing x by -x flips the sign only when the degree is odd. Those checks are handy when you want to confirm that a result is plausible before using it elsewhere.

A note on general calculator notation

Many mathematical tools can be described abstractly as a function of several inputs. Hermite evaluation is a very specific example, but it still fits the broader pattern below. Keeping that perspective in mind helps when you later combine this calculator with a larger model that feeds one computed quantity into another.

R = f ( x1 , x2 , , xn )

Numerical analysis also often combines weighted contributions. Hermite polynomials themselves connect to Gaussian-weighted integrals and quadrature rules, so the summation pattern below is not out of place here. It is one of the standard shapes that appears once polynomial evaluations are used inside approximation schemes.

T = i=1 n wi · xi

For this page, though, the practical message is simpler: the result depends only on the degree, the evaluation point, and the chosen family. If one of those changes, the number can change a lot, especially at moderate or large degree.

Worked example

Suppose you enter degree 3 and x = 1. If you choose the physicists' convention, the third Hermite polynomial is H3(x) = 8x3 - 12x. Evaluating at 1 gives 8 - 12 = -4. If you switch to the probabilists' convention, the third polynomial is He3(x) = x3 - 3x, which gives 1 - 3 = -2. Same degree, same input point, different convention, different numeric answer. That is exactly why the convention selector matters.

A second useful check is x = 0. For any odd degree, both conventions return 0 because the polynomial is odd. For even degree, the result is generally nonzero. These small test cases are good habits when you are debugging a formula or comparing code from two different sources.

Example values at x = 1
Degree n Physicists' Hn(1) Probabilists' Hen(1) What to notice
0 1 1 Both families start from the same constant polynomial.
1 2 1 The normalization difference is visible immediately.
2 2 0 At the same input, one family can vanish while the other does not.
3 -4 -2 Odd degree preserves sign symmetry but not identical scaling.
4 -20 -2 Differences can grow quickly as the degree increases.

How to interpret the result

The results box reports the convention, the degree, the chosen value of x, and the computed polynomial value. Read that number as a direct evaluation of the selected Hermite polynomial at one point. It is not a probability, not an integral, and not a root list by itself. If your goal is to find a root, evaluate at several nearby x values and look for a sign change. If your goal is to compare conventions, keep n and x fixed while switching only the selector.

Magnitude matters too. Hermite polynomials can become large very quickly, especially for bigger degrees or larger absolute values of x. That is normal behavior, not necessarily an error. What should trigger a double-check is an input mismatch. For example, if your derivation uses a standardized variable but you enter an unscaled physical coordinate, the output may be mathematically correct for the entered number while still being useless for your application.

Another good interpretation habit is to think qualitatively before relying on the exact numeric value. Does the parity make sense? Is the sign consistent with nearby sample points? Does switching from physicists' to probabilists' roughly change the scale the way you expect? Those quick questions catch many mistakes faster than staring at a single large number.

Where Hermite polynomials are used

People usually reach for a Hermite polynomial calculator in one of a few recurring contexts. In physics, the polynomials appear in solutions to the quantum harmonic oscillator. In probability and statistics, the probabilists' family is tied to Gaussian moments and expansions. In numerical analysis, the roots of Hermite polynomials help define Gauss-Hermite quadrature nodes for integrating functions against a Gaussian weight. In signal processing and differential equations, derivatives of Gaussian-shaped functions often bring Hermite structure along with them.

Even if your own problem does not use those exact phrases, the pattern is similar: a Gaussian weight or a Gaussian-shaped state is present somewhere in the background, and Hermite polynomials are the natural basis that organizes the algebra. That is why the mini-game below focuses on roots and symmetry. The roots are not just decorative facts; they are part of why these polynomials matter in approximation methods and orthogonality arguments.

Assumptions and limits

This calculator is numeric and intentionally focused. It assumes that n is a non-negative integer and that x is a finite real number. It does not symbolically simplify the polynomial, print all coefficients, or list every root for you. Instead, it evaluates the value directly from the recurrence relation. That makes the tool fast and reliable for ordinary use, but it also means it is not a full computer algebra system.

The page warns for degrees above 100 because floating-point overflow and loss of precision become increasingly likely. Hermite values can explode in size, and once that happens a browser calculator can only do so much. If you genuinely need very high degrees, arbitrary-precision software or a specialized numerical library is a better choice. For classroom work, routine engineering checks, and many probability examples, however, this calculator is a practical fit.

Finally, remember that the output is only as meaningful as the convention and scaling you feed into it. The mathematics on the page is exact for the chosen definitions, but your application may still depend on outside choices such as nondimensionalization, normalization of basis functions, or weight functions in an integral. In other words, the calculator gives the right number for the selected polynomial. Your job is to make sure it is the right polynomial for the problem you are solving.

Enter a non-negative integer degree, a real value of x, and the convention used by your source. The computed polynomial value is dimensionless unless your broader model gives it a separate interpretation.

Use whole numbers only. The calculator warns when n is above 100 because floating-point overflow becomes likely.

x can be any real number. In many formulas it is already a scaled, unitless coordinate.

Choose the family that matches your textbook or formula notation: Hn for physicists' or Hen for probabilists'.

Copy status updates appear here.
Enter n and x to compute.

Mini-game: Hermite Node Hunt

This optional canvas game turns a core Hermite idea into a quick challenge. Each round shows a Hermite curve and several glowing candidate points on the x-axis. Your job is to spot the point that is actually a root, meaning the place where the displayed polynomial crosses zero. Some rounds ask for a specific root such as the positive one closest to zero, so watching symmetry and convention pays off. The game does not change the calculator's math; it simply helps you build intuition for how degree and convention affect the curve.

Score0
Time75.0s
Streak0
Round0
Best0
Your browser does not support canvas. You can still use the Hermite Polynomial Calculator above.

Hermite Node Hunt

Click the glowing point that sits on a true root of the displayed Hermite polynomial. If the prompt asks for the nearest positive root or the farthest negative root, pick that exact zero instead. Wrong guesses cost time, and streaks boost your score.

  • Click or tap a node to select it.
  • Keyboard fallback: press 1 through 5, or use arrow keys and Enter.
  • Watch for convention switches and tighter near-miss traps as the timer runs down.

Best score: 0

Takeaway: a degree n Hermite polynomial has n real roots, arranged symmetrically about 0.

Click Start game to begin a short Hermite root hunt.

Embed this calculator

Copy and paste the HTML below to add the Hermite Polynomial Calculator | Evaluate Hₙ(x) and Heₙ(x) to your website.