First, a function does not have a "solution". Equations have solutions but your equation already involves two variables. Do you mean "solve for x".
Second, I don't know what you mean by "the algebraic method". Algebra has many methods of solve equations. Also, since this involves x both inside and outside a transcendental function (cosine), there is no method for solving it exactly.