How To Integrate A Matrix