The number of free trees on n vertices is given in Sloane's OEIS A000055. the number of rooted trees is A000081. If t(x) is the ordinary generating function (o.g.f.) for free trees and T(x) is the o.g.f. for rooted trees then:
t(x) = 1 + T(x) - (T(x)^2 - T(x^2))/2.
I am trying to understand the equation in terms of the symbolic method of derivation of generating functions as described in Flajolet and Sedgewick, Analytic Combinatorics. I recognize (T(x)^2 - T(x^2))/2 as the o.g.f. for the number of unordered distinct pairs of rooted trees. I do not understand how subtracting this from T(x) gives us the o.g.f. for free trees. I know that every tree is centered or bi-centered and I think this might have something to do with the explanation.
Here we show OPs formula using the dissimilarity theorem for trees. In the following we also give some basic information around this theorem to ease reading.
Unrooted trees are also called sometimes free trees (see e.g. Analytic Combinatorics VII.25, p.480 by P. Flajolet and R. Sedgewick).
Note that contrary to OEIS $U(z)$ does not contain the empty unrooted tree. This is in accordance with the formula we show below and which is stated this way quite often in the literature.
The following proof is according to Analytic Combinatorics VII.26 by P. Flajolet and R. Sedgewick. The authors refer in their proof to Combinatorial Species and Tree-like Structures by F. Bergeron, G. Labelle and P. Leroux. Otter's formula is stated there as Theorem 1 in section 4.1. The Dissymmetry Theorem for trees.
Otter's formula can be shown via the following combinatorial isomorphism
Note:
There is a typo in P. Flajolet's book regarding the dissimilarity theorem for trees (4). The right-hand side of the formula there is incorrectly stated as $\mathcal{U}+\left(\mathcal{U}\times\mathcal{U}\right)$ instead of $\mathcal{U}+\left(\mathcal{U}^\bullet\times\mathcal{U}^\bullet\right)$ (see formula (59) at page 481).
The surgery argument is from Theorem 1 in F. Bergeron's book.