Differentiate the given functions w.r.t. x.
xx cos x+x2+1x2−1.
Differentiate the following functions with respect to x :
x2+1x+1