{
  "id": "de-moivres-formula",
  "title": "De Moivre's Formula",
  "lang": "en",
  "source_lang": "en",
  "summary": "De Moivre’s formula relates integer powers of complex numbers to multiple-angle trigonometric expressions, enabling the calculation of powers and roots.",
  "category": "mathematics",
  "subcategory": "analysis",
  "type": "concept",
  "aliases": [
    "De Moivre's theorem",
    "de Moivre's identity"
  ],
  "generated_at": "2026-11-05",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/de-moivres-formula/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/de-moivres-formula/",
      "json": "https://aiwiki.page/zh/de-moivres-formula.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "De Moivre’s formula is an identity connecting powers of complex numbers with trigonometric functions. For every real number \\(\\theta\\) and every integer \\(n\\),\n\n\\[(\\cos\\theta+i\\sin\\theta)^n=\\cos(n\\theta)+i\\sin(n\\theta),\\]\n\nwhere \\(i^2=-1\\). Named after the mathematician Abraham de Moivre, it expresses a basic geometric property of complex multiplication: multiplying complex numbers multiplies their magnitudes and adds their angles. The formula is used to calculate complex powers and roots, derive multiple-angle identities, and describe rotations."
    },
    {
      "heading": "Statement and polar form",
      "text": "A nonzero complex number \\(z=x+iy\\) can be written in polar form as\n\n\\[z=r(\\cos\\theta+i\\sin\\theta),\\]\n\nwhere\n\n\\[r=|z|=\\sqrt{x^2+y^2}>0\\]\n\nis its magnitude, or modulus, and \\(\\theta\\) is an argument of \\(z\\). This is the complex-number version of polar coordinates.\n\nDe Moivre’s formula gives\n\n\\[z^n=r^n\\bigl(\\cos(n\\theta)+i\\sin(n\\theta)\\bigr) \\qquad(n\\in\\mathbb Z).\\]\n\nThus, raising a nonzero complex number to an integer power raises its magnitude to that power and multiplies its argument by the same integer. Although the argument is determined only up to an integer multiple of \\(2\\pi\\), the result is unambiguous: replacing \\(\\theta\\) by \\(\\theta+2\\pi k\\) changes \\(n\\theta\\) by \\(2\\pi nk\\), leaving its sine and cosine unchanged.\n\nFor \\(z=0\\), positive integer powers are zero, but negative powers are undefined. The unit-modulus expression \\(\\cos\\theta+i\\sin\\theta\\) is never zero, so the original formula is valid for every integer exponent without this qualification."
    },
    {
      "heading": "Geometric meaning",
      "text": "The complex numbers\n\n\\[\\cos\\theta+i\\sin\\theta\\]\n\nlie on the unit circle in the complex plane. Multiplication by such a number rotates a point through angle \\(\\theta\\) without changing its distance from the origin.\n\nMore generally, if\n\n\\[z=r(\\cos\\theta+i\\sin\\theta),\\qquad w=s(\\cos\\phi+i\\sin\\phi),\\]\n\nthen\n\n\\[zw=rs\\bigl(\\cos(\\theta+\\phi)+i\\sin(\\theta+\\phi)\\bigr).\\]\n\nRepeated multiplication by the same number therefore gives repeated scaling and rotation. For positive \\(n\\), the magnitude becomes \\(r^n\\), while the total angle becomes \\(n\\theta\\). Negative powers reverse the direction of rotation and replace the scale factor by its reciprocal.\n\nAngles in these formulas are conventionally measured in radians."
    },
    {
      "heading": "Proofs",
      "text": "Proof by induction\n\nThe angle-addition identities give\n\n\\[\\begin{aligned} &(\\cos\\alpha+i\\sin\\alpha)(\\cos\\beta+i\\sin\\beta)\\\\ &\\quad=\\cos\\alpha\\cos\\beta-\\sin\\alpha\\sin\\beta\\\\ &\\qquad+i(\\sin\\alpha\\cos\\beta+\\cos\\alpha\\sin\\beta)\\\\ &\\quad=\\cos(\\alpha+\\beta)+i\\sin(\\alpha+\\beta). \\end{aligned}\\]\n\nThe formula is immediate for \\(n=1\\). If it holds for a positive integer \\(n\\), multiplication by \\(\\cos\\theta+i\\sin\\theta\\) and the identity above establish it for \\(n+1\\). Hence mathematical induction proves the result for all positive integers.\n\nFor \\(n=0\\), both sides equal \\(1\\). For negative exponents, observe that\n\n\\[(\\cos\\theta+i\\sin\\theta)^{-1} =\\cos\\theta-i\\sin\\theta =\\cos(-\\theta)+i\\sin(-\\theta).\\]\n\nApplying the positive-integer case to this reciprocal completes the proof.\n\nProof using Euler’s formula\n\nEuler’s formula states that\n\n\\[e^{i\\theta}=\\cos\\theta+i\\sin\\theta.\\]\n\nConsequently,\n\n\\[(\\cos\\theta+i\\sin\\theta)^n =(e^{i\\theta})^n =e^{in\\theta} =\\cos(n\\theta)+i\\sin(n\\theta).\\]\n\nThis proof places De Moivre’s formula within the theory of the complex exponential function. The trigonometric proof, however, does not require complex exponentials."
    },
    {
      "heading": "Computing powers",
      "text": "For example,\n\n\\[1+i=\\sqrt2\\left(\\cos\\frac{\\pi}{4}+i\\sin\\frac{\\pi}{4}\\right).\\]\n\nTherefore,\n\n\\[\\begin{aligned} (1+i)^6 &=(\\sqrt2)^6 \\left(\\cos\\frac{6\\pi}{4}+i\\sin\\frac{6\\pi}{4}\\right)\\\\ &=8\\left(\\cos\\frac{3\\pi}{2}+i\\sin\\frac{3\\pi}{2}\\right)\\\\ &=-8i. \\end{aligned}\\]\n\nThis approach is particularly convenient when the magnitude and argument have simple forms. It can replace a lengthy Cartesian expansion with a magnitude calculation and an angle multiplication."
    },
    {
      "heading": "Finding complex roots",
      "text": "Let\n\n\\[z=r(\\cos\\theta+i\\sin\\theta)\\ne0\\]\n\nand let \\(n\\) be a positive integer. De Moivre’s formula gives all solutions of \\(w^n=z\\):\n\n\\[w_k=r^{1/n} \\left[ \\cos\\left(\\frac{\\theta+2\\pi k}{n}\\right) +i\\sin\\left(\\frac{\\theta+2\\pi k}{n}\\right) \\right], \\qquad k=0,1,\\ldots,n-1.\\]\n\nTo obtain this expression, write\n\n\\[w=\\rho(\\cos\\phi+i\\sin\\phi).\\]\n\nThe equation \\(w^n=z\\) requires\n\n\\[\\rho^n=r,\\qquad n\\phi=\\theta+2\\pi k.\\]\n\nThus \\(\\rho=r^{1/n}\\) and \\(\\phi=(\\theta+2\\pi k)/n\\).\n\nThe \\(n\\) roots are distinct, have equal magnitude \\(r^{1/n}\\), and are separated by angles of \\(2\\pi/n\\). For \\(n\\ge3\\), they form the vertices of a regular polygon centered at the origin. Changing the chosen argument of \\(z\\) merely reorders these roots.\n\nFor example, the three cube roots of \\(1\\) are\n\n\\[1,\\qquad -\\frac12+\\frac{\\sqrt3}{2}i,\\qquad -\\frac12-\\frac{\\sqrt3}{2}i.\\]\n\nMore generally, the solutions of \\(w^n=1\\) are called roots of unity:\n\n\\[w_k=e^{2\\pi i k/n}.\\]\n\nUnder multiplication, they form a cyclic group, making them important examples in group theory."
    },
    {
      "heading": "Multiple-angle identities",
      "text": "Expanding the left-hand side of De Moivre’s formula using the binomial theorem and comparing real and imaginary parts produces identities in trigonometry.\n\nFor \\(n=3\\),\n\n\\[(\\cos\\theta+i\\sin\\theta)^3 = \\cos^3\\theta-3\\cos\\theta\\sin^2\\theta +i\\bigl(3\\cos^2\\theta\\sin\\theta-\\sin^3\\theta\\bigr).\\]\n\nHence\n\n\\[\\cos3\\theta=4\\cos^3\\theta-3\\cos\\theta,\\]\n\nand\n\n\\[\\sin3\\theta=3\\sin\\theta-4\\sin^3\\theta.\\]\n\nFor any positive integer \\(n\\),\n\n\\[\\cos(n\\theta)= \\sum_{j=0}^{\\lfloor n/2\\rfloor} (-1)^j\\binom{n}{2j} \\cos^{n-2j}\\theta\\,\\sin^{2j}\\theta,\\]\n\nand\n\n\\[\\sin(n\\theta)= \\sum_{j=0}^{\\lfloor(n-1)/2\\rfloor} (-1)^j\\binom{n}{2j+1} \\cos^{n-2j-1}\\theta\\,\\sin^{2j+1}\\theta.\\]\n\nHere \\(\\binom{n}{k}\\) denotes a binomial coefficient."
    },
    {
      "heading": "Noninteger exponents and branch choices",
      "text": "The integer restriction is essential to the formula’s ordinary, single-valued interpretation. For a noninteger exponent \\(a\\), writing\n\n\\[(\\cos\\theta+i\\sin\\theta)^a =\\cos(a\\theta)+i\\sin(a\\theta)\\]\n\nwithout specifying how the power is defined can be misleading.\n\nIn complex analysis, powers of a nonzero complex number are defined through a choice of logarithm. Its logarithm values are\n\n\\[\\log z=\\ln|z|+i(\\theta+2\\pi k), \\qquad k\\in\\mathbb Z,\\]\n\nso the corresponding power values are\n\n\\[\\exp\\!\\left(a\\bigl[\\ln|z|+i(\\theta+2\\pi k)\\bigr]\\right).\\]\n\nFor integer \\(a\\), all choices give the same value. For noninteger \\(a\\), they need not.\n\nFor example, taking \\(\\theta=2\\pi\\) and \\(a=\\tfrac12\\) gives\n\n\\[\\cos(a\\theta)+i\\sin(a\\theta)=-1,\\]\n\nwhereas the principal square root of\n\n\\[\\cos2\\pi+i\\sin2\\pi=1\\]\n\nis \\(1\\). The value \\(-1\\) is also a square root of \\(1\\), but it is not the principal one. Thus a noninteger extension requires an explicit branch convention or a multivalued interpretation."
    },
    {
      "heading": "Historical and broader context",
      "text": "The formula is associated with Abraham de Moivre’s work in the early eighteenth century on the relationship between trigonometric expressions and complex powers. Its modern exponential presentation uses the notation and identities associated with Leonhard Euler.\n\nBeyond elementary calculations, the formula describes the behavior of planar rotations and complex oscillations. Roots of unity supply the coefficients used in the discrete Fourier transform, while the polar description of powers provides explicit solutions of polynomial equations of the form \\(w^n-z=0\\)."
    }
  ],
  "links": [
    "complex-number",
    "trigonometric-functions",
    "real-number",
    "integer",
    "polar-coordinates",
    "circle",
    "radian",
    "mathematical-induction",
    "eulers-formula",
    "exponential-function",
    "polygon",
    "roots-of-unity",
    "group-theory",
    "binomial-theorem",
    "trigonometry",
    "binomial-coefficient",
    "complex-analysis",
    "leonhard-euler",
    "discrete-fourier-transform",
    "polynomial"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}