cos(ax)+cos(bx)=0 solve for x