Applying the matrix tool to population dynamics