Generalized contracting and higher order hyperbolic partial differential equations