{
  "id": "mathematical-identity",
  "title": "Mathematical Identity",
  "lang": "en",
  "source_lang": "en",
  "summary": "A mathematical identity is an equality that holds for every admissible value of its variables within a specified domain.",
  "category": "mathematics",
  "subcategory": "algebra",
  "type": "concept",
  "aliases": [
    "Identity",
    "Identical equality"
  ],
  "generated_at": "2026-11-05",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/mathematical-identity/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/mathematical-identity/",
      "json": "https://aiwiki.page/zh/mathematical-identity.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "A mathematical identity is an equality that holds for every admissible value of its variables within a specified domain. For example, \\((x+1)^2=x^2+2x+1\\) holds for every real number \\(x\\), whereas \\(x^2=1\\) holds only for particular real values. Identities express general relationships between mathematical expressions and support simplification, calculation, and proof. Their validity depends on the domains of the variables, the definitions of the operations, and any stated assumptions."
    },
    {
      "heading": "Meaning and notation",
      "text": "An identity between expressions \\(F(x)\\) and \\(G(x)\\) on a domain \\(D\\) asserts that\n\n\\[F(x)=G(x)\\qquad\\text{for every }x\\in D.\\]\n\nIn the language of first-order logic, this is a universally quantified statement:\n\n\\[\\forall x\\in D,\\quad F(x)=G(x).\\]\n\nThe same principle applies to expressions involving several variables. For example,\n\n\\[(a+b)^2=a^2+2ab+b^2\\]\n\nis an identity for all real \\(a\\) and \\(b\\).\n\nAn ordinary equals sign is sufficient to express an identity. The symbol \\(\\equiv\\) is sometimes used to emphasize that equality holds identically:\n\n\\[(x+1)^2\\equiv x^2+2x+1.\\]\n\nThis notation is context-dependent. The same symbol can indicate a definition, logical equivalence, or congruence in modular arithmetic. Its meaning must therefore be inferred from the accompanying conventions.\n\nAn expression that is zero for every admissible argument is called identically zero, often written \\(F\\equiv 0\\). This is stronger than saying that it is zero at one point, or even at many points."
    },
    {
      "heading": "Identities, equations, and definitions",
      "text": "An identity is a particular kind of equation, not a separate kind of equality. The distinction concerns how the variables are understood.\n\n- An identity holds for every admissible assignment of its variables.\n- An equation to be solved asks which assignments make an equality true.\n- A definition introduces the meaning of a symbol or expression, rather than asserting a relationship that must be independently established.\n\nFor instance,\n\n\\[2(x+3)=2x+6\\]\n\nis an identity over the real numbers, while\n\n\\[2(x+3)=10\\]\n\nhas the single real solution \\(x=2\\).\n\nThese roles depend on context. The equation \\(x^2=1\\) is not an identity over the real numbers, but it does hold for every member of the restricted domain \\(\\{-1,1\\}\\). Similarly, a formula introduced as a definition can later be used as an identity when transforming expressions.\n\nAn identity should also be distinguished from an identity element. An identity element is an object that leaves other objects unchanged under an operation: \\(0\\) for addition, for example. An identity matrix plays this role in matrix multiplication. Such objects give rise to identities, but they are not themselves equalities."
    },
    {
      "heading": "Domains and restrictions",
      "text": "An identity is meaningful only where its expressions are defined. The domain is therefore part of the claim, even when customary assumptions leave it unstated.\n\nFor example,\n\n\\[\\frac{x^2-1}{x-1}=x+1\\]\n\nholds for real or complex \\(x\\ne 1\\). Cancelling \\(x-1\\) does not make the original fraction defined at \\(x=1\\). The simplified expression extends to that point, but the two expressions do not define the same function unless their domains are appropriately restricted or extended.\n\nLikewise,\n\n\\[\\sqrt{x^2}=|x|\\]\n\nis valid for real \\(x\\), whereas \\(\\sqrt{x^2}=x\\) requires \\(x\\geq 0\\). Here the absolute value records a restriction that would otherwise be lost.\n\nIdentities involving logarithms also require care. Over the positive real numbers,\n\n\\[\\log(ab)=\\log a+\\log b.\\]\n\nFor complex numbers, single-valued logarithms require a choice of branch, and this equation does not hold without qualification.\n\nDomain restrictions matter when proving identities as well as when applying them. Dividing both sides by an expression that might be zero can discard admissible cases. Squaring both sides can make an implication irreversible unless additional conditions are retained."
    },
    {
      "heading": "Major classes and examples",
      "text": "Algebraic identities\n\nAlgebraic identities relate expressions formed using operations such as addition, multiplication, and powers. Familiar examples include\n\n\\[(a+b)(a-b)=a^2-b^2\\]\n\nand\n\n\\[a^3+b^3=(a+b)(a^2-ab+b^2).\\]\n\nThe binomial theorem gives a general family:\n\n\\[(a+b)^n=\\sum_{k=0}^{n}\\binom{n}{k}a^{n-k}b^k, \\qquad n=0,1,2,\\ldots.\\]\n\nA polynomial identity can be checked by expanding both sides and comparing coefficients. Over the real or complex numbers, two one-variable polynomials agree everywhere if and only if their corresponding coefficients are equal.\n\nThere is an important distinction between a formal polynomial and the function it induces over a finite field. Over the field with \\(p\\) elements, where \\(p\\) is prime, the nonzero formal polynomial\n\n\\[X^p-X\\]\n\nevaluates to zero at every field element. Thus distinct formal polynomials can define the same function on a finite field. Equality as polynomial expressions and equality of their values everywhere are not interchangeable in every setting.\n\nTrigonometric identities\n\nIn trigonometry, identities relate trigonometric functions. Fundamental examples are\n\n\\[\\sin^2 x+\\cos^2 x=1\\]\n\nand\n\n\\[\\sin(a+b)=\\sin a\\cos b+\\cos a\\sin b.\\]\n\nThe first follows geometrically from the coordinates of a point on the unit circle and the Pythagorean theorem. Other formulas follow from these basic relationships. For example, dividing the first identity by \\(\\cos^2 x\\) gives\n\n\\[1+\\tan^2 x=\\frac{1}{\\cos^2 x},\\]\n\nbut only where \\(\\cos x\\ne 0\\).\n\nExponential and analytic identities\n\nThe exponential function satisfies\n\n\\[e^{x+y}=e^xe^y\\]\n\nfor real and complex arguments. Euler’s formula,\n\n\\[e^{ix}=\\cos x+i\\sin x,\\]\n\nconnects exponentials with trigonometric functions. Substituting \\(x=\\pi\\) gives Euler’s identity,\n\n\\[e^{i\\pi}+1=0.\\]\n\nThis illustrates a broader use of the word identity: a notable exact equality may be called an identity even when it contains no free variables.\n\nIdentities involving infinite series must include convergence conditions. For example,\n\n\\[\\frac{1}{1-x}=\\sum_{n=0}^{\\infty}x^n\\]\n\nholds for real or complex \\(x\\) with \\(|x|<1\\). The rational expression is defined at many other points, but the displayed series does not converge there.\n\nDifferential, integral, and matrix identities\n\nIn calculus, general identities describe how operations interact. The product rule states\n\n\\[\\frac{d}{dx}\\bigl(f(x)g(x)\\bigr) =f'(x)g(x)+f(x)g'(x)\\]\n\nwhere both functions are differentiable. Under standard hypotheses, integration by parts gives\n\n\\[\\int_a^b f(x)g'(x)\\,dx = f(b)g(b)-f(a)g(a)-\\int_a^b f'(x)g(x)\\,dx.\\]\n\nThese are identities applying to classes of functions, rather than merely to particular numerical inputs.\n\nIdentities involving a matrix must respect dimensions and the order of multiplication. For square matrices of the same size,\n\n\\[(A+B)^2=A^2+AB+BA+B^2.\\]\n\nThe scalar-looking formula\n\n\\[(A+B)^2=A^2+2AB+B^2\\]\n\nholds precisely when \\(AB=BA\\). A familiar identity cannot automatically be transferred to a setting with different operational laws."
    },
    {
      "heading": "Proving identities",
      "text": "A proof establishes equality throughout the stated domain. Common methods include:\n\n- Direct transformation: rewrite one side using valid algebraic or functional rules until it matches the other.\n- Reduction to a common expression: simplify both sides independently to the same form.\n- Coefficient comparison: expand polynomial expressions and compare corresponding coefficients.\n- Geometric reasoning: show that both sides represent the same length, area, or other quantity.\n- Mathematical induction: establish an identity indexed by natural numbers.\n- Counting in two ways: show that both sides count the same finite collection.\n\nChecking selected numerical cases generally does not prove an identity. A single counterexample disproves a universal claim, but many successful tests need not establish it.\n\nAdditional structure can make finitely many checks conclusive. If two one-variable polynomials over a field have degree at most \\(n\\), agreement at \\(n+1\\) distinct points proves that they are equal. Their difference has degree at most \\(n\\), and a nonzero polynomial of that degree cannot have more than \\(n\\) distinct roots.\n\nIn complex analysis, the identity theorem provides another powerful criterion: two analytic functions on a connected open domain agree everywhere if their agreement set has an accumulation point inside the domain. The analyticity assumption is essential; the corresponding claim is false for general infinitely differentiable real functions."
    },
    {
      "heading": "Structural role in algebra and logic",
      "text": "In abstract algebra, identities describe laws satisfied by entire classes of structures. For example, associativity is the identity\n\n\\[(xy)z=x(yz),\\]\n\nunderstood to hold for all elements \\(x,y,z\\) of the structure.\n\nThe same displayed identity can hold in one class of structures and fail in another. Commutativity,\n\n\\[xy=yx,\\]\n\nholds for real multiplication but not for multiplication of arbitrary square matrices. An algebraic proof therefore depends on which laws are available, not merely on the appearance of the symbols.\n\nIn this setting, an identity is an equation between terms that holds under every assignment of its variables. Equational reasoning uses substitution and replacement of equal expressions by equal expressions. This provides a formal basis for many ordinary manipulations in algebra."
    },
    {
      "heading": "Applications and computational limitations",
      "text": "Identities allow expressions to be factored, expanded, simplified, or rewritten into forms suited to a particular calculation. They are used to derive formulas, evaluate integrals, solve equations, and check symbolic calculations.\n\nExact mathematical equivalence does not guarantee equivalent behavior in floating-point arithmetic. For positive \\(x\\),\n\n\\[\\sqrt{x+1}-\\sqrt{x} = \\frac{1}{\\sqrt{x+1}+\\sqrt{x}}.\\]\n\nThe two expressions are mathematically identical. For large \\(x\\), however, directly subtracting two nearly equal square roots can lose significant digits. The rationalized expression avoids that subtraction and often has better numerical stability.\n\nConversely, floating-point evaluations of the two sides of a valid identity may differ slightly because of rounding. Such a discrepancy does not by itself refute the identity. Symbolic validity, domain correctness, and numerical accuracy are distinct questions."
    }
  ],
  "links": [
    "equation",
    "mathematical-proof",
    "first-order-logic",
    "modular-arithmetic",
    "real-number",
    "identity-matrix",
    "domain-of-a-function",
    "absolute-value",
    "logarithm",
    "complex-number",
    "binomial-theorem",
    "polynomial",
    "finite-field",
    "trigonometry",
    "trigonometric-functions",
    "pythagorean-theorem",
    "exponential-function",
    "eulers-formula",
    "infinite-series",
    "calculus",
    "integration-by-parts",
    "matrix",
    "mathematical-induction",
    "complex-analysis",
    "abstract-algebra",
    "floating-point-arithmetic",
    "numerical-stability"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}