Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Expand an expression (expand)

Multiply out products and powers into a sum.

With this function, the solver shows the steps whenever it finds them.

How to write it

expand(expr)

expr
Any expression: a number, a formula, a list or a matrix. Takes an expression.

Examples

  • (x+1)3=x3+3x2+3x+1\displaystyle (x+1)^{3} = x^{3}+3 x^{2}+3 x+1
    expand((x + 1)^3)

    In the solver, expand((x + 1)^3) gives x^3 + 3x^2 + 3x + 1.

    Open in the solver
  • (x−1)(x+2)=x2+x−2\displaystyle (x-1) (x+2) = x^{2}+x-2
    expand((x - 1)(x + 2))

    In the solver, expand((x - 1)(x + 2)) gives x^2 + x - 2.

    Open in the solver
  • function_expand

    Rewrite special functions of shifted arguments in terms of simpler ones.

  • complex_expand

    Expand an expression assuming its variables are real.

  • power_expand

    Expand powers and logarithms of products and powers.

  • factor

    Factor a polynomial into irreducible factors.

  • discriminant

    Discriminant of a polynomial in a variable.

  • full_simplify

    Search harder than simplify for a simpler form, under assumptions.