# Solve matrix equation in sympy

How can I solve Q*v=0 for v in matrix terms (Q is a matrix, v is a vector). v should be a zero vector. The matrix Q is supposed to be invertible and full rank.

```
from sympy.solvers import solve
from sympy import symbols
from sympy import MatrixSymbol
n=symbols('n')
v = MatrixSymbol('v', n, 1)
Q = MatrixSymbol('Q', n, n)
eq=Q*v
solve(eq,v)
```

Please help, thanks.

I am not sure how to assure that Q has full rank.

Is there possibly a completely different approach outside of sympy to calculate v=0?