Brahmagupta-Fibonacci Identity

Summary: The multiplicative identity where , (with a second representation by sign-flipping ). Shows that the set of integers representable as is closed under multiplication. For this is the classical sum-of-two-squares identity; for it gives Pell composition. Euler derives it in ch2.0.11-quadratic-form-factorization §170 by complex factorization .

Sources: chapter-2.0.11, chapter-2.0.12, additions-9

Last updated: 2026-05-10


Statement

For any rationals and any constant :

A second representation (since only appears in the LHS):

So when both representations give distinct , the product has two representations.


Special Cases

: Sum of Two Squares (Diophantus, Brahmagupta, Fibonacci)

This is the Fibonacci identity (1225, in Liber Quadratorum) and was known earlier to Diophantus (3rd century) and Brahmagupta (7th century).

Worked example: .

: Pell Composition

This is Brahmagupta’s bhāvanā (composition law) for Pell’s equation: solutions of form a multiplicative semigroup. See pell-equation and ch2.0.7-pell-equation-method.

: Sum of Square and Twice a Square

Used in ch2.0.11-quadratic-form-factorization §173 to characterize numbers of form .


Derivation via Complex Factorization

Factor . If

then by conjugation , so

Expanding the RHS of the first equation:

reading rational and irrational parts gives , .

This is multiplication in followed by the norm map: where .


Lagrange’s Generalisation (Add. IX, Art. 89)

The identity is the quadratic case of a general construction of norm-forms: for any monic polynomial with roots , and the composition law holds with and . Setting recovers the identity above (with ). Setting gives the Pell composition.

Lagrange extends this to cubic and higher norm forms in add9-norm-forms-composition, anticipating Gauss’s composition of binary quadratic forms and the general theory of norms in algebraic number fields.


Generalized Form: Coefficient on First Term

For (with ), the analogous identity (Euler §177–179) is

More cleanly, with , :

mixing two distinct quadratic forms (Type I and Type II in §177’s terminology). See ch2.0.11-quadratic-form-factorization for the proto-genus theory.


Higher Powers

The same factor-of-conjugate trick at higher powers gives parametrizations for being a cube, biquadrate, etc., by raising to the desired exponent:

This is the basis of ch2.0.12-quadratic-form-as-power.


Applications

  • Sums of two squares (sums-of-two-squares): closure under multiplication; classification of representable integers.
  • Pell composition (pell-equation): generating infinite solutions from a fundamental one.
  • Norms in number rings: foundation for ring-theoretic arithmetic in , , etc.
  • Rationalization (rationalization): related to multiplying by conjugates.

Historical Note

MathematicianDateForm known
Diophantusc. 250, geometric form
Brahmagupta628All , Brāhmasphuṭasiddhānta (composition law)
Fibonacci1225, Liber Quadratorum
Euler1770All via complex factorization, Elements of Algebra

The modern name “Brahmagupta-Fibonacci identity” typically refers to ; the “Brahmagupta identity” to general .