Take the logarithm of both sides:
Differentiate with respect to \( x \):
Multiply through by \( y = x^x \):