Just the steps required to arrive at the answer please.

If a specific function is required to explain the process, please do explain with f(x) being sin x.
Thanks to the contributors in advance =)