Binomial Expansion Calculator


Expand (x+y)^n and evaluate a chosen term using the binomial theorem. The first term is term 1.

Use consistent units. Enter numbers without thousands separators. Invalid input clears all results.

Inserisci i valori:

Whole number from 0 to 50.

Whole number from 1 to n+1.

Risultati:

Inputs and results

Choose the matching mode, then read each field label and note. Results use the same length, time, currency or quantity units as the inputs unless a label says otherwise. A negative change means a decrease.

Formula

(x+y)^n = Σ C(n,k)x^(n-k)y^k for k=0,...,n. C(n,k)=n!/[k!(n-k)!]. Term r uses k=r-1. Coefficients are generated with exact integer arithmetic.

Worked example

(x+y)^3 = x³+3x²y+3xy²+y³. For x=2, y=3, term 2 is 3×2²×3 = 36 and the full value is 5³ = 125.

Limits and edge cases

n is a whole number 0 to 50. x and y are between -1e6 and 1e6. Numeric results above 1e100 are rejected. n=0 has one term equal to 1, including x+y=0 under the polynomial convention. Symbolic output uses ASCII powers for easy copying. Decimal calculations use floating-point arithmetic; displayed values are rounded to 12 significant digits. This is an educational tool, not a guarantee about investments or physical systems.

FAQ

Can y be negative?

Yes. The symbolic expansion retains y; its numeric value uses the sign you entered.

Is r zero-based?

No. Term 1 is x^n; term n+1 is y^n.

Formula reference

Background mathematics. Explanation and examples on this page are independently written.