If y=x^x+x^1/x, then dy dx is equal to
A. \({x}^{x}(1+\log x)+{x}^{\frac{1}{x}}\frac{1}{{x}^{2}}(1-\log x)\)
B. \(({x}^{x}+{x}^{\frac{1}{x}})[1+\log x+\frac{1}{{x}^{2}}(1-\log x)]\)
C. \(({x}^{x}+{x}^{\frac{1}{x}})[(1+\log x)-\frac{1}{{x}^{2}}(1-\log x)]\)
D. \({x}^{x}(1+\log x)-{x}^{\frac{1}{x}}\frac{1}{{x}^{2}}(1-\log x)\)