Integrate [cos2a+cos2x/cosa+cosx] dx