For such kind of problems to be done in a short time it is better to subsitute some value in place of x.If you substitute 0,in f(x) you get it to be 5/4 and g(5/4)=1.
Hence answer is 1.
You can also solve the problem using rules of trignometry and if you solve so you get f(x) to be a constant function.