Show solutionHide solution
Let \(y=x^{x^2-3}+(x-3)^{x^2}\), with \(x>3\). Write \(y=u+v\), where \(u=x^{x^2-3}\) and \(v=(x-3)^{x^2}\). Since \(x>3\), both bases \(x\) and \(x-3\) are positive, so we may use logarithms.
Differentiating \(u=x^{x^2-3}\):
\[ \ln u=(x^2-3)\ln x. \] Differentiating both sides with respect to \(x\), using the product rule on the right: \[ \frac{1}{u}\frac{du}{dx}=2x\ln x+(x^2-3)\cdot\frac{1}{x}. \] Hence \[ \frac{du}{dx}=x^{x^2-3}\left(2x\ln x+\frac{x^2-3}{x}\right). \]Differentiating \(v=(x-3)^{x^2}\):
\[ \ln v=x^2\ln(x-3). \] Differentiating both sides with respect to \(x\): \[ \frac{1}{v}\frac{dv}{dx}=2x\ln(x-3)+x^2\cdot\frac{1}{x-3}. \] Hence \[ \frac{dv}{dx}=(x-3)^{x^2}\left(2x\ln(x-3)+\frac{x^2}{x-3}\right). \]Combining: Since \(\dfrac{dy}{dx}=\dfrac{du}{dx}+\dfrac{dv}{dx}\),
\[ \frac{dy}{dx}=x^{x^2-3}\left(2x\ln x+\frac{x^2-3}{x}\right)+(x-3)^{x^2}\left(2x\ln(x-3)+\frac{x^2}{x-3}\right). \]This is valid for all \(x>3\), where both logarithmic terms and both denominators are defined and nonzero.