u := (x+y+z)ˆ2;
df(ws,x);
int(ws,y);
matrix m(2,2);
m := mat*1;
( x + y ) ^ 2;
latex:\black$\displaystyle x^2+2\*x\*y+y^2$
( x + y + z ) ^ 2;
latex:\black$\displaystyle x^2+2\*x\*y+2\*x\*z+y^2+2\*y\*z+z^2$
df(ws, x);
latex:\black$\displaystyle 2\*\left(x+y+z\right)$
int(ws, y);
latex:\black$\displaystyle y\*\left(2\*x+y+2\*z\right)$
matrix m(2, 2);
m:= mat*2;
latex:\black$\displaystyle m\mathrm{:=}\left(\begin{matrix}a&b\\c&d\end{matrix}\right)$