Given that cos(3x)=acos^x−bcosx is a trigonometric identity, what is the value of a+b ?