{
  "schema_version": 1,
  "title": "Point addition",
  "url": "/writing/understanding-elliptic-curves/reference/0002-point-addition-formulas.html",
  "author": "Abhineet Biju",
  "text": "Formula reference Point addition Curve y² = x³ + ax + b Field characteristic ≠ 2, 3 Identity 𝒪 The formulas, their special cases, and the reason each coordinate has its shape. Distinct points λ = (y₂ − y₁) / (x₂ − x₁) x₃ = λ² − x₁ − x₂ y₃ = λ(x₁ − x₃) − y₁ The slope identifies the line. Substitution into the cubic and Vieta's root-sum formula give x₃. Reflection of the third intersection gives y₃. Point doubling λ = (3x₁² + a) / (2y₁) x₃ = λ² − 2x₁ y₃ = λ(x₁ − x₃) − y₁ The tangent makes x₁ a double root of the line-curve intersection equation. That is why x₁+x₁ replaces x₁+x₂. Special cases Condition Result Reason P + 𝒪 P 𝒪 is the identity. x₁=x₂, y₂=−y₁ 𝒪 The connecting line is vertical. P=P, y₁=0 𝒪 The tangent is vertical. Over a finite field, replace every division by multiplication with a modular inverse. These are short Weierstrass formulas. Ed25519 uses a twisted Edwards form with different coordinate formulas.",
  "headings": [
    {
      "level": 1,
      "id": null,
      "text": "Point addition"
    },
    {
      "level": 2,
      "id": null,
      "text": "Distinct points"
    },
    {
      "level": 2,
      "id": null,
      "text": "Point doubling"
    },
    {
      "level": 2,
      "id": null,
      "text": "Special cases"
    }
  ],
  "sections": [
    {
      "id": "distinct-points",
      "heading": "Distinct points",
      "text": "Distinct points λ = (y₂ − y₁) / (x₂ − x₁) x₃ = λ² − x₁ − x₂ y₃ = λ(x₁ − x₃) − y₁ The slope identifies the line. Substitution into the cubic and Vieta's root-sum formula give x₃. Reflection of the third intersection gives y₃."
    },
    {
      "id": "point-doubling",
      "heading": "Point doubling",
      "text": "Point doubling λ = (3x₁² + a) / (2y₁) x₃ = λ² − 2x₁ y₃ = λ(x₁ − x₃) − y₁ The tangent makes x₁ a double root of the line-curve intersection equation. That is why x₁+x₁ replaces x₁+x₂."
    },
    {
      "id": "special-cases",
      "heading": "Special cases",
      "text": "Special cases Condition Result Reason P + 𝒪 P 𝒪 is the identity. x₁=x₂, y₂=−y₁ 𝒪 The connecting line is vertical. P=P, y₁=0 𝒪 The tangent is vertical. Over a finite field, replace every division by multiplication with a modular inverse. These are short Weierstrass formulas. Ed25519 uses a twisted Edwards form with different coordinate formulas."
    }
  ],
  "links": [
    {
      "label": "writing",
      "url": "/#writing"
    },
    {
      "label": "Return to chapter III",
      "url": "/writing/understanding-elliptic-curves/lessons/0003-point-doubling-derivation.html"
    },
    {
      "label": "Glossary",
      "url": "/writing/understanding-elliptic-curves/reference/0001-cryptography-glossary.html"
    },
    {
      "label": "back to the guide",
      "url": "/writing/understanding-elliptic-curves/"
    },
    {
      "label": "all writing",
      "url": "/#writing"
    }
  ]
}
