First and second order wave equations