Don't be worried if it looks hard, the process you go through is just the same as before. Replace \(x\) with the function and then simplify.