Source: https://mandal.ku.edu/math790/canonForms.pdf