In pp. 283–285 of volume 2 of Dickson's “history of the theory of numbers” appear several formulas of striking similarity: some of them are stated by Gauss (p. 283) and some are stated by Jacobi (p. 285); they are actually the same and only the notation differs ($y$ in Gauss's formula and $q$ in Jacobi's formula). Gauss's formulas are the following:
\begin{align} & (1 + 2y + 2y^4 + 2y^9 + \cdots + 2y^{n^2})^4 \\[6pt] = {} & (1 - 2y + 2y^4 - \cdots)^4 + (2y^{1/4} + 2y^{{9/4}} + 2y^{(2n - 1)^2/4})^4 \end{align}
and
\begin{align} & (1 + 2y + 2y^4 + 2y^9 + \cdots + 2y^{n^2})^4 \\[6pt] = {} & 1 + 8\left( \frac y {1 - y} + \frac{2y^2}{1 + y^2} + \frac{3y^3}{1 - y^3} + \cdots + \frac{ny^n}{1 + (-1)^n y^n} \right) \end{align}
The point is that the last equality means that the coefficients of the $k$th power in the right side of the last equality must be equal to $r_4(k)$ (number of representations of $k$ as sum of $4$ squares), and an additional interpretation (by certain manipulations) of the right side of the equality gives the result of Jacobi: $r_4(k) = 8\sigma(k)$ or $24\sigma(k)$, depends if $k$ is odd or even.
The only other reference for Gauss's result that i found in the english literature is in the "Sums of Squares" chapter of Ranjan Roy's book "Elliptic and Modular Functions from Gauss to Dedekind to Hecke" (chapter 15, p.386) where the author writes that:
Note that Gauss independently discovered (15.2) and (15.3); they were written without proof, and without explicit application to the sums of squares, in an undated manuscript published after his death.
(15.2) and (15.3) in this book are the identities mentioned before in this post. Reading what Ranjan Roy says, several questions arise:
- If Gauss didn't write down a proof of Jacobi's identity, why Ranjan Roy states that Gauss "independently discovered" Jacobi's identity? i mean - this is a general question on the authenticity of posthomous papers; in this case, how can we be sure that Gauss didn't simply copy Jacobi's identity after he saw his Fundamenta Nove from 1828? how is authenticity of an historical document confirmed?
- Looking again into Gauss's manuscript, i found out that in the commentary on it, the editor Schering states it was found in a notebook dated approximately to 1808, while there are no dates on the actual manuscripts. So, along the same lines like the first question, i'd like to know what is the degree of certainty in such "evaluations of dates".
Additional evidence
In my opinion, when an already known result is discovered in a posthomous manuscript, and is not rigorously derived in this manuscript, the only way to argue in favour of an independent discovery of the author of the manuscript is to find new (previously unknown) results in the same direction in this manuscript.
So, for the completeness of the discussion, i must add another relevant reference. In the chapter "sum of four squares" of volume 2 of Dickson's work, at page 300, he mentions that the czech mathematician Karel Petr proved two formulas by Gauss (Werke, III,p. 476) on theta functions by the method outlined by Gauss. The point is that K. petr used those identities of Gauss to derive relations giving the number of representations of a number N by three quaternary quadratic forms: $x^2 + y^2 + 9z^2 + 9u^2$, $x^2+y^2+z^2+9u^2$, $x^2+9y^2+9z^2+9u^2$.
I mention this fact because in light of Karel Petr's results it seems that Gauss-Jacobi identity wasn't an isolated result by Gauss, but was part of a grand plan Gauss had for the subject of analysis, and theta functions, in particular. Unfortunately i'm far from being knowledgable enough in those matters, so i can't make a conclusion about how this additional result sheds light on Gauss's possible derivation of Jacobi's four sqaures theorem (and perhaps several additional arithmetical facts). So i'd like to know an expert opinion on this question.