Start with $$\ln{x^{x^{x}}} = x^x \ln {x}$$
as this moves the power of $x$ down to become part of a product.
By differentiating both sides with respect to $x$ we may now use the product rule on one side:
$$\displaystyle\frac{1}{x^{x^x}}\displaystyle\frac{d}{dx}x^{x^x}=x^x \displaystyle\frac{1}{x} + \ln {x} \displaystyle\frac{d}{dx}x^x$$.
We can use the similar fact that
$$\ln{x^x} = x \ln {x}$$
and differentiate both sides again to get
$$\displaystyle\frac{1}{x^{x}}\displaystyle\frac{d}{dx}x^{x}=x \displaystyle\frac{1}{x} + \ln {x} \displaystyle\frac{d}{dx}x$$
which simplifies to
$$\displaystyle\frac{d}{dx}x^{x}= x^x(1 + \ln {x})$$.
Subtituting this into our first differentiation we have
$$\displaystyle\frac{1}{x^{x^x}}\displaystyle\frac{d}{dx}x^{x^x}=x^x \displaystyle\frac{1}{x} + x^x \ln {x} (1 + \ln {x})$$
which can then be rearranged to form:
$$\displaystyle\frac{d}{dx}x^{x^x}=x^{x^x} x^x (\ln^2{x}+\ln x + \displaystyle\frac{1}{x})$$
Side note Often the best ways to solve complicated integrals are:
a) Employing various techniques (integration by parts, substitution, recurrence relations etc.)
b) Rearranging the integrand to look more palatable/like a known derivative
c) Observing a pattern in the expression