Build the idea in three steps
- A long polynomial equation in x and y can hide several component shapes at once. This proof therefore treats one shaped family that is still general enough.
- With a suitable change of coordinates, an appropriate cubic equation can be written as y² + a₁xy + a₃y = x³ + a₂x² + a₄x + a₆. This is the Weierstrass form.
- The five coefficients are stored in separate named fields of one structure: a₁, a₂, a₃, a₄ and a₆, each drawn from a coefficient type R.
A small example
The equation y² = x³ − x fits the form: reading the right side as x³ + 0x² + (−1)x + 0 gives a₁ = a₂ = a₃ = 0, a₄ = −1 and a₆ = 0.