Factor Expansion Calculator

Powerful tool to expand, factor, and simplify algebraic expressions with steps. Switch modes for expansion, factorization, substitution, and expression simplification with reusable presets. Control precision, combine like terms, and preview results before export to CSV. Save outputs as CSV and PDF with ease instantly.

Use ^ for exponents. Multiplication may be implied (e.g., 2x).
Used for “Substitute only” or “Evaluate”. Fractions allowed.
Result

            
            
Example Data Table
#InputSuggested ModeExpected Result
1(x+3)(x-2)Expandx^2 + x - 6
2(2x+3)^2Expand + Simplify4x^2 + 12x + 9
3x^2 - 1Factor(x-1)(x+1)
4a^2 + 2ab + b^2Factor(a+b)^2
5(a+b)^5Expanda^5+5a^4b+10a^3b^2+10a^2b^3+5ab^4+b^5
Formulas Used
  • Distributive property: a(b+c)=ab+ac; FOIL for two binomials.
  • Binomial theorem: (a+b)n = Σ C(n,k)an-kbk.
  • Difference of squares: a2−b2=(a−b)(a+b).
  • Perfect square trinomials: a2±2ab+b2=(a±b)2.
  • Common factoring: Factor out GCF before special patterns.

Symbolic algebra is handled by a client-side CAS to expand, factor, and simplify.

How to Use This Calculator
  1. Enter an expression like (x+2)^3(x-1) or x^2-4.
  2. Select the mode: Expand, Factor, Simplify, Substitute, or Evaluate.
  3. Optionally set substitutions, e.g., x=2, y=3/5.
  4. Choose precision and toggles for ordering and combining terms.
  5. Click Calculate to get the result and view steps.
  6. Use Download CSV to export your history, or Download PDF for a snapshot.
What is Factor Expansion?

Factor expansion converts products or powers of sums into a sum of terms (expansion), or the reverse process—rewriting a polynomial as a product of simpler factors (factorization). The calculator automates both, optionally showing steps.

  • Expansion uses distributive rules and the binomial theorem to multiply out brackets.
  • Factorization searches for patterns (GCF, squares, cubes) and symbolic factorizations.
  • Results may be exact symbolic forms or rounded numeric evaluations, based on options.
When to Expand vs. Factor
GoalChooseExample
Combine like terms for comparisonExpand(x+1)(x+2) → x^2+3x+2
Solve polynomial equationsFactorx^2−5x+6 → (x−2)(x−3)
Evaluate efficiently at x=valueExpand(2x−1)^3 → 8x^3−12x^2+6x−1
Recognize structure or simplifyFactora^2+2ab+b^2 → (a+b)^2

Tip: Always factor out a greatest common factor before other patterns.

how to calculate starlight travel time factoring universe expansion

Light travel time in an expanding universe is the lookback time from redshift z to today. It requires a cosmological model with parameters like H0, Ωm, ΩΛ, Ωr, and curvature Ωk.

Key formulas (flat ΛCDM shown; include Ωk, Ωr as needed):

H(z) = H0 · √(Ωm(1+z)^3 + Ωr(1+z)^4 + Ωk(1+z)^2 + ΩΛ)
Lookback time:  t_L(z) = ∫₀ᶻ dz' / ((1+z')·H(z'))
Comoving distance: D_c(z) = c ∫₀ᶻ dz' / H(z')
Luminosity distance: d_L = (1+z)·D_c
Angular diameter distance: d_A = D_c/(1+z)

Practical steps:

  1. Choose cosmological parameters (e.g., flat ΛCDM: Ωk=0, Ωr≈0).
  2. Form H(z) and evaluate numerically across 0→z.
  3. Compute t_L with the integral above; convert to Gyr.
  4. Optionally compute D_c, d_L, d_A for distance comparisons.
  5. Interpret: t_L is the starlight’s travel time to us today.

Note: Units matter. Convert H0 from km·s⁻¹·Mpc⁻¹ to s⁻¹ and use c = 299,792,458 m·s⁻¹ consistently.

Related Calculators

Inverse Function Finder CalculatorPolynomial Long Division Calculatorroots of cubic equation calculatorquadratic function from 3 points calculatorWeighted linear regression calculatorremainder and factor theorem calculatordivide using long division calculatorsynthetic division remainder calculatorLCM fraction Calculatorfactor polynomials by grouping calculator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.