General Rule for Differentiation of Tetrations I'll start at the beginning. Initially, this sort of began as just what is $\frac{d}{dx}$[$x^x$] the answer being $x^x$+ln(x)$x^x$. This wasn't difficult to achieve, just some chain rule and product rule. I then took $\frac{d}{dx}$[$x^{x^x}$], this took some more chain and product rule but one should end up with an answer of ($x^{x^x}$$x^x$$)\frac{1}{x}$+$x^{x^x}$$x^x$ln$(x)$+$x^{x^x}$$x^x$ln$^2(x)$.
Evidently, I now could just take the $\frac{d}{dx}$[$x^{x^{x^x}}$], but I saw the pattern with the other derivatives and thought that there might be a general formula or rule for the derivatives of tetration. After a search online, and on the exchange, it led to no nothing. So I decided to differentiate the 4th tetration of x, which is $x^{x^{x^x}}$.
For future reference the 4 tetration of x, I'll call $x^{x|4}$. Additionally, I'll call $x^{x^{x^x}}$*$x^{x^x}$ -> $x^{x|4,3}$ just to make my life easier typing this.
The $\frac{d}{dx}$[$x^{x|4}$], is equal to ($x^{x|4,3}$+$x^{x|4,2}$ln$(x)$)$\frac{1}{x}$+$x^{x|4,2}$*ln$^2(x)$+$x^{x|4,2}$*ln$^3(x)$
From here I noticed a pattern, to where I could accurately predict the $\frac{d}{dx}$[$x^{x|n}$] (The derivative of the nth tetration of x)
The general pattern is:
$\frac{d}{dx}$[$x^{x|2}$] = $x^{x|2}$+$x^{x|2}$ln$(x)$
$\frac{d}{dx}$[$x^{x|3}$] = $\frac{x^{x|3,2}}{x}$+ $x^{x|3,2}$ln$(x)$+$x^{x|3,2}$ln$^2(x)$
$\frac{d}{dx}$[$x^{x|4}$] = $\frac{x^{x|4,3}}{x}$+ $\frac{x^{x|4,2}ln(x)}{x}$+$x^{x|4,2}ln^2(x)$+$x^{x|4,2}$ln$^3(x)$
Some rules of the pattern are as follows:
All terms except for the last two will be over x.
The maxima, which is the highest tetration, will always be the number of tetrations in the original tetration that is being differentiated.
The minima, the lowest tetration, will be the maxima-1 then count down to 2, where it will remain until the addition ends.
The exponent on the logarithm starts at zero and counts up until it reaches the maxima-1.
Note: Maxima and minima aren’t accepted terms so use your own as you wish.
For example:
The first segment of the $\frac{d}{dx}$[$x^{x|4}$]. $\frac{x^{x|4,3}}{x}$ notice how it is over x, the maxima is 4, the minima is 4-1, and there is no logarithm because ln$^0(x)$=1. Then one would add, $\frac{x^{x|4,2}ln(x)}{x}$ this segment is also over x and has a maxima of 4 and a minima of one less than the previous. Additionally, this segment has an ln$(x)$, this is because ln$^1(x)$ = ln$(1)$, no surprises.
This pattern continues bound by these rules, so now the $\frac{d}{dx}$[$x^{x|10}$]. However, I wasn’t satisfied with this answer; because I wanted a general formula.
I had my friend, who’s a lot better at math than me, assist me in finding a general formula.
He eventually devised $\frac{d}{dx}[x^{x|n}]$:
$$\sum_{k=0}^{n-2}\frac{x^{x|n,n-k}ln^{k-1}(x)}{x}+x^{x|2}ln^{n-2}+x^{x|2}ln^{n-1}, (n\ge2)$$
We've gone through the mathematical rigor, and so far this formula has seemed to uphold. The main reason I’m writing this is that I have a few questions about this formula and the general idea of there being a general formula.
Can this formula be disproved?
Is there a nicer-looking formula?
Is there a formula with proper notation, not my made-up one?
Can a formula be made so that n is a fraction or even a complex number?
 A: Some possibly relevant published items are given below, in order of likely relevance to you. Although this is not really an answer, I thought that because these references are probably not very well known, maybe I should avoid burying them in a comment that isn't google-searchable (something I've done far too often in MSE).
[1] $\;$Exponential derivative [Solution to Problem #653], Mathematics Magazine 40 #5 (November 1967), pp. 283-284.

Three published solutions to a problem proposed in the March 1967 issue that asks for the derivative of $\;{}^{n+1} x\;$ (this notation is not used).

[2] $\;$S. B. Kulkarni, Solution to Problem #3977, School Science and Mathematics 84 #7 (November 1984), pp. 629-230.

Gives a recursion formula for the $n$-th derivative of $x^x$ -- see my answer to The $n$'th derivative of $x^x$.

[3] $\;$Jekuthiel Ginsburg, Iterated exponentials, Scripta Mathematica 11 (1945), pp. 340-353.

Combinatorial relationships for the coefficients of the Maclaurin expansions of $e_2(x) = e^{e^x},$ $e_3(x) = e^{e^{e^x}}, \,\ldots, \; e_n(x), \; \ldots$

A: Using W|A and analyzing the pattern (I've been too lazy to derive the derivatives myself) one can state the following recursive pattern.

*

*First: define notation $x_0 = 1$, $x_1=x$, $x_2=x^{x_1}$,$\cdots,$ $x_{k+1}=x^{x_k}$     , and moreover $x_{-1}= 0 \qquad (=\log_x(1))$


*Second:

*

*$\log(x)'=\frac1x \qquad $, note: we're not deriving $\log_x(x)$ !

*$ x_0'=0 \quad$, $\quad x_1'=1$

*$x_2' = x_2 \cdot(x_1' \log(x)+x_1 \log(x)')$

*$x_3' = x_3 \cdot(x_2' \log(x)+x_2 \log(x)')$

*$ \vdots \quad  = \qquad \vdots $
$\qquad \qquad $ (Note, that $x_1'$ can easily & consistently be expressed in the same style as the higher $x_k$ iteratives)
I think, this is a nice scheme for programming purposes.
Moreover, I had such scheme for higher derivatives, but don't have it at hand and think it is not too difficult to extrapolate this yourself.
