'Apply core.function.expand to each entry of the matrix.
Examples
>>> from sympy.abc import x
>>> from sympy.matrices import Matrix
>>> Matrix(1, 1, [x*(x+1)])
Matrix([[x*(x + 1)]])
>>> _.expand()
Matrix([[x**2 + x]])'

def expand(self, deep=True, modulus=None, power_base=True, power_exp=True, mul=True, log=True, multinomial=True, basic=True, **hints):

    return self.applyfunc((lambda x: x.expand(deep, modulus, power_base, power_exp, mul, log, multinomial, basic, **hints)))
