A student differentiates g(x)=(x2+1)tanx as follows:
g′(x)=2xtanx+(x2+1)secx.
Answer the following.
a. (i) Identify and explain the error(s) in the student’s working.
b. (ii) Write the correct derivative g′(x), giving brief justification for each step.