Skip to content

Expand

Expand[expr] attempts to expand expr.

Attributes[Expand] := {Protected}

Simple examples

In[1]:= Expand[(a + b + c)^3]
Out[1]= a^3 + 3*a^2*b + 3*a*b^2 + b^3 + 3*a^2*c + 6*a*b*c + 3*b^2*c + 3*a*c^2 + 3*b*c^2 + c^3
In[2]:= Expand[(a + b)*(c + d + e)]
Out[2]= a*c + b*c + a*d + b*d + a*e + b*e
In[3]:= Expand[(a + b + c)*(d + e)^2]
Out[3]= a*d^2 + b*d^2 + c*d^2 + 2*a*d*e + 2*b*d*e + 2*c*d*e + a*e^2 + b*e^2 + c*e^2
In[4]:= Expand[(a^b + c^d)^2]
Out[4]= a^(2*b) + 2*a^b*c^d + c^(2*d)
In[5]:= Expand[(a + b + c)/(d)]
Out[5]= (a)/(d) + (b)/(d) + (c)/(d)
In[6]:= Expand[((a + 1)^2 + b + c)/(d)]
Out[6]= (1)/(d) + (2*a)/(d) + (a^2)/(d) + (b)/(d) + (c)/(d)
In[7]:= Expand[2*(a + 1)]
Out[7]= 2 + 2*a