Differentiate the following functions with respect to x:$\text { (iii) } x^{x \cos x}+\frac{x^{2}+1}{x^{2}-1}$$(i v)(x \cos x)^{x}+(x \sin x)^{\frac{1}{x}}$