Linear differential equations of principal type