For part b, it says your _f(x)_ needs to be on the inside and _g(x)_ needs to be on the outside.
Your second answer is right, because you would then replace the _x_ with cos, so you would get cos^7 +1
For part b, it says your _f(x)_ needs to be on the inside and _g(x)_ needs to be on the outside.
Your second answer is right, because you would then replace the _x_ with cos, so you would get cos^7 +1