{
  "aliases": [
    "weierstrass-substitution"
  ],
  "backlinks": null,
  "body": "\n## Summary\n\nThe tangent half-angle substitution sets $t = \\tan(x/2)$ in an integral. It turns each rational expression in $\\sin x$ and $\\cos x$ into a rational function of $t$. Partial fractions then finish the computation.\n\n## Remarks\n\nThe substitution gives $\\sin x = \\frac{2t}{1 + t^2}$, $\\cos x = \\frac{1 - t^2}{1 + t^2}$ and $dx = \\frac{2 \\, dt}{1 + t^2}$.\nIt works on intervals where $x/2$ stays inside $(-\\pi/2, \\pi/2)$.\nFor example, it gives $\\int \\frac{dx}{\\sin x} = \\ln |\\tan(x/2)| + C$.\n\n## Explanations\n\n### L1 human\n\nThis substitution turns trigonometric integrals into integrals of fractions of polynomials.\nThose integrals are always solvable by partial fractions.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "aliases": [
      "weierstrass-substitution"
    ],
    "kind": "concept",
    "msc": [
      "26A36"
    ],
    "name": "Tangent half-angle substitution",
    "same_as": {
      "wikidata": "Q663628",
      "wikipedia": "Tangent half-angle substitution"
    },
    "sources": [
      {
        "locator": "The substitution",
        "url": "https://en.wikipedia.org/wiki/Tangent_half-angle_substitution"
      }
    ],
    "tag": "0W8ETY2AZ6",
    "uses": [
      "0D37QFPEZE",
      "0WB57D9488"
    ]
  },
  "kind": "concept",
  "link": "https://math2.tamnd.com/node/0W8ETY2AZ6/",
  "links": [
    {
      "field": "uses",
      "target": "0D37QFPEZE"
    },
    {
      "field": "uses",
      "target": "0WB57D9488"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0W8ETY2AZ6.md",
  "msc": [
    "26A36"
  ],
  "name": "Tangent half-angle substitution",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0W8/0W8ETY2AZ6.md",
  "status": null,
  "tag": "0W8ETY2AZ6",
  "uri": "m2://0W8ETY2AZ6",
  "url": "https://math2.tamnd.com/wiki/tangent-half-angle-substitution/",
  "writing": {
    "tag": "0W8ETY2AZ6",
    "kind": "concept",
    "level": "W1",
    "next": [
      {
        "what": "edge defines in",
        "note": "at least one definition",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge instance_of in",
        "note": "at least two examples",
        "have": 0,
        "want": 2
      },
      {
        "what": "edge not_instance_of in",
        "note": "at least one non-example",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge specializes both",
        "note": "the more general notions and the special cases",
        "have": 0,
        "want": 1
      }
    ]
  }
}
