{
  "id": "trigonometric-identity",
  "title": "Trigonometric Identity",
  "lang": "en",
  "source_lang": "en",
  "summary": "A trigonometric identity is an equality involving trigonometric functions that holds for every value in its stated domain.",
  "category": "mathematics",
  "subcategory": "geometry",
  "type": "concept",
  "aliases": [
    "Trigonometric identities",
    "trig identity"
  ],
  "generated_at": "2026-11-03",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/trigonometric-identity/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/trigonometric-identity/",
      "json": "https://aiwiki.page/zh/trigonometric-identity.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "A trigonometric identity is an equality involving trigonometric functions that is true for every assignment of its variables within a specified domain. Examples include \\(\\sin^2 x+\\cos^2 x=1\\), the angle-addition formulas, and the formulas that convert products of sines and cosines into sums. Unlike an equation solved for particular angles, an identity expresses a relationship that holds throughout its domain.\n\nTrigonometric identities connect the geometry of circles and rotations with algebra, complex numbers, and the analysis of periodic phenomena. They make it possible to calculate exact values, simplify expressions, evaluate integrals, resolve oscillations into frequency components, and construct efficient computational methods. Their different forms are closely related: many follow from a few basic geometric relationships or from the exponential representation of sine and cosine."
    },
    {
      "heading": "Meaning, notation, and domains",
      "text": "An identity differs from a conditional equation by the scope of its assertion. The equation \\(\\sin x=0\\) holds only when \\(x=k\\pi\\), where \\(k\\) is an integer. By contrast,\n\n\\[\\sin(x+\\pi)=-\\sin x\\]\n\nholds for every real \\(x\\). An identity can contain several independent variables, as in\n\n\\[\\sin(a+b)=\\sin a\\cos b+\\cos a\\sin b,\\]\n\nor apply only under an explicit condition, such as \\(A+B+C=\\pi\\) for the angles of a triangle.\n\nThe domain is part of the mathematical statement. For real arguments, sine and cosine are defined everywhere, but\n\n\\[\\tan x=\\frac{\\sin x}{\\cos x}, \\qquad \\sec x=\\frac{1}{\\cos x}\\]\n\nrequire \\(\\cos x\\ne0\\). Similarly,\n\n\\[\\cot x=\\frac{\\cos x}{\\sin x}, \\qquad \\csc x=\\frac{1}{\\sin x}\\]\n\nrequire \\(\\sin x\\ne0\\). Thus \\(\\tan x\\cot x=1\\) is an identity only where both factors exist. It does not assert a value at a zero of either sine or cosine.\n\nUnless another convention is stated, angles in analytic formulas are measured in radians, with one complete revolution equal to \\(2\\pi\\). Pure angle identities can also be expressed in degrees if all angles are interpreted consistently. Radians become essential in the standard differentiation and power-series formulas: \\(\\frac{d}{dx}\\sin x=\\cos x\\) has this form only when \\(x\\) is the radian measure.\n\nThe notation \\(\\sin^2 x\\) means \\((\\sin x)^2\\), not \\(\\sin(x^2)\\) or \\(\\sin(\\sin x)\\). Negative exponents can be more troublesome: although \\((\\sin x)^{-1}\\) means a reciprocal, the notation \\(\\sin^{-1}x\\) commonly denotes the inverse sine function. Using \\(\\csc x\\) and \\(\\arcsin x\\) avoids this ambiguity. Inverse-function identities also require care: \\(\\sin(\\arcsin u)=u\\) holds for \\(-1\\le u\\le1\\), whereas \\(\\arcsin(\\sin x)=x\\) holds only on the chosen principal interval \\([-\\pi/2,\\pi/2]\\).\n\nTwo expressions may agree wherever both are defined without having identical natural domains. For example,\n\n\\[\\frac{1-\\cos^2 x}{\\sin x}=\\sin x\\]\n\nis valid when \\(\\sin x\\ne0\\). The right side is also defined when \\(x=k\\pi\\), but the original left side is not. Simplification can therefore produce a continuous extension without changing the domain of the original expression. This distinction is important both in proofs and when identities are used to solve equations."
    },
    {
      "heading": "The circle, Pythagorean identities, and symmetry",
      "text": "The most direct geometric setting is the unit circle. The point reached by turning through angle \\(x\\) from the positive horizontal axis has coordinates\n\n\\[(\\cos x,\\sin x).\\]\n\nBecause the circle has equation \\(u^2+v^2=1\\), these coordinates satisfy\n\n\\[\\boxed{\\sin^2 x+\\cos^2 x=1.}\\]\n\nThis is the fundamental Pythagorean identity. For an acute angle in a right triangle, it is also an immediate consequence of the Pythagorean theorem after dividing the squared side lengths by the square of the hypotenuse. The circle formulation extends the relationship to negative angles and angles greater than a right angle.\n\nDividing the fundamental identity by \\(\\cos^2 x\\) or \\(\\sin^2 x\\) gives\n\n\\[1+\\tan^2 x=\\sec^2 x, \\qquad 1+\\cot^2 x=\\csc^2 x,\\]\n\non their respective domains. These formulas are especially useful when converting between powers of tangent and secant, or cotangent and cosecant. They do not introduce independent geometric facts; they express the same circular relationship in different coordinate ratios.\n\nReflections of the circle explain parity:\n\n\\[\\sin(-x)=-\\sin x,\\qquad \\cos(-x)=\\cos x,\\qquad \\tan(-x)=-\\tan x.\\]\n\nSine and tangent are odd functions, while cosine is even. A complete turn returns a point to itself, giving\n\n\\[\\sin(x+2\\pi k)=\\sin x,\\qquad \\cos(x+2\\pi k)=\\cos x.\\]\n\nA half-turn changes both coordinates’ signs:\n\n\\[\\sin(x+\\pi)=-\\sin x,\\qquad \\cos(x+\\pi)=-\\cos x.\\]\n\nTheir ratio is unchanged, so tangent has period \\(\\pi\\).\n\nInterchanging the horizontal and vertical coordinates gives the cofunction identities:\n\n\\[\\sin\\left(\\frac{\\pi}{2}-x\\right)=\\cos x, \\qquad \\cos\\left(\\frac{\\pi}{2}-x\\right)=\\sin x.\\]\n\nConsequently,\n\n\\[\\tan\\left(\\frac{\\pi}{2}-x\\right)=\\cot x\\]\n\nwhere both sides exist. Other useful reductions include\n\n\\[\\sin(\\pi-x)=\\sin x,\\qquad \\cos(\\pi-x)=-\\cos x,\\]\n\nand\n\n\\[\\sin\\left(x+\\frac{\\pi}{2}\\right)=\\cos x,\\qquad \\cos\\left(x+\\frac{\\pi}{2}\\right)=-\\sin x.\\]\n\nThese relationships reduce arbitrary angles to a reference interval, usually the first quadrant. For example, \\(5\\pi/6=\\pi-\\pi/6\\), so \\(\\sin(5\\pi/6)=1/2\\) while \\(\\cos(5\\pi/6)=-\\sqrt3/2\\). The magnitudes come from the reference angle and the signs from the quadrant. Computational routines use related symmetry reductions before approximating sine or cosine on a smaller interval, although reducing very large arguments accurately requires additional numerical techniques."
    },
    {
      "heading": "Angle-addition and angle-subtraction formulas",
      "text": "The addition formulas are the central rules for combining angles:\n\n\\[\\boxed{\\sin(a+b)=\\sin a\\cos b+\\cos a\\sin b,}\\]\n\n\\[\\boxed{\\cos(a+b)=\\cos a\\cos b-\\sin a\\sin b.}\\]\n\nReplacing \\(b\\) by \\(-b\\) and using parity gives\n\n\\[\\sin(a-b)=\\sin a\\cos b-\\cos a\\sin b,\\]\n\n\\[\\cos(a-b)=\\cos a\\cos b+\\sin a\\sin b.\\]\n\nUnlike some reciprocal identities, these equations hold for all real \\(a\\) and \\(b\\), with no excluded angles.\n\nOne derivation uses planar rotations. A counterclockwise rotation through \\(a\\) is represented by the matrix\n\n\\[R(a)= \\begin{pmatrix} \\cos a&-\\sin a\\\\ \\sin a&\\cos a \\end{pmatrix}.\\]\n\nPerforming a rotation through \\(b\\), followed by one through \\(a\\), is equivalent to rotating through \\(a+b\\). Thus\n\n\\[R(a)R(b)=R(a+b).\\]\n\nCarrying out the matrix multiplication and comparing entries produces both addition formulas. This interpretation connects the identities to linear algebra: rotation matrices are orthogonal matrices with determinant \\(1\\), and their multiplication records the addition of rotation angles.\n\nDividing the sine addition formula by the cosine addition formula yields\n\n\\[\\tan(a+b)=\\frac{\\tan a+\\tan b}{1-\\tan a\\tan b}.\\]\n\nLikewise,\n\n\\[\\tan(a-b)=\\frac{\\tan a-\\tan b}{1+\\tan a\\tan b}.\\]\n\nThese versions require \\(\\tan a\\) and \\(\\tan b\\) to exist, as well as the displayed denominator to be nonzero. The restrictions matter: \\(\\tan(\\pi/2+b)\\) may be defined even though the right-hand expression written in terms of \\(\\tan(\\pi/2)\\) is not.\n\nAddition identities generate exact values from simpler angles. Since \\(\\pi/12=\\pi/4-\\pi/6\\),\n\n\\[\\sin\\frac{\\pi}{12} =\\frac{\\sqrt6-\\sqrt2}{4}, \\qquad \\cos\\frac{\\pi}{12} =\\frac{\\sqrt6+\\sqrt2}{4}.\\]\n\nThey also combine two oscillations of the same frequency. Given real \\(A,B\\), not both zero, set\n\n\\[R=\\sqrt{A^2+B^2}\\]\n\nand choose \\(\\phi\\) so that \\(\\cos\\phi=A/R\\) and \\(\\sin\\phi=B/R\\). Then\n\n\\[A\\cos x+B\\sin x=R\\cos(x-\\phi).\\]\n\nThe value \\(R\\) is the amplitude and \\(\\phi\\) is a phase shift. Determining \\(\\phi\\) requires its quadrant, not merely the quotient \\(B/A\\). This amplitude–phase form is used in vibration analysis, alternating-current calculations, and the solution of linear differential equations with sinusoidal forcing."
    },
    {
      "heading": "Double angles, multiple angles, and polynomial structure",
      "text": "Setting the two angles equal in the addition formulas gives\n\n\\[\\sin 2x=2\\sin x\\cos x\\]\n\nand\n\n\\[\\cos 2x=\\cos^2 x-\\sin^2 x.\\]\n\nSubstitution from the Pythagorean identity produces two alternative forms:\n\n\\[\\cos 2x=2\\cos^2 x-1=1-2\\sin^2 x.\\]\n\nEach form serves a different algebraic purpose. An expression involving only sine can use \\(1-2\\sin^2x\\), while an expression containing the difference of two squares naturally uses \\(\\cos^2x-\\sin^2x\\). For tangent,\n\n\\[\\tan 2x=\\frac{2\\tan x}{1-\\tan^2 x}\\]\n\nwhere the displayed expressions are defined.\n\nRepeated angle addition gives the triple-angle formulas:\n\n\\[\\sin 3x=3\\sin x-4\\sin^3 x,\\]\n\n\\[\\cos 3x=4\\cos^3 x-3\\cos x.\\]\n\nThese connect trigonometry with polynomial equations. If \\(u=\\cos x\\), then finding \\(x\\) with a prescribed value of \\(\\cos3x\\) leads to a cubic equation in \\(u\\). For example, \\(\\cos3x=0\\) becomes \\(4u^3-3u=0\\). The passage from a trigonometric equation to a polynomial does not by itself determine the angles: the admissible range of \\(u\\) and the periodicity of cosine must still be considered.\n\nThe general pattern is expressed by Chebyshev polynomials. The polynomials \\(T_n\\) of the first kind satisfy\n\n\\[T_n(\\cos x)=\\cos nx.\\]\n\nThey begin with\n\n\\[T_0(u)=1,\\quad T_1(u)=u,\\quad T_2(u)=2u^2-1,\\quad T_3(u)=4u^3-3u,\\]\n\nand obey the recurrence\n\n\\[T_{n+1}(u)=2uT_n(u)-T_{n-1}(u).\\]\n\nThe recurrence follows by adding the formulas for \\(\\cos((n+1)x)\\) and \\(\\cos((n-1)x)\\). Polynomials \\(U_n\\) of the second kind similarly satisfy\n\n\\[\\sin((n+1)x)=\\sin x\\,U_n(\\cos x).\\]\n\nUnlike a quotient formula involving division by \\(\\sin x\\), this multiplicative identity remains valid at integer multiples of \\(\\pi\\).\n\nMultiple-angle identities therefore provide a bridge between oscillatory functions and algebraic approximation on \\([-1,1]\\). Since \\(|T_n(u)|\\le1\\) throughout that interval, these polynomials have a controlled oscillatory structure useful in approximation theory and numerical interpolation.\n\nThey also yield finite expansions through repeated doubling. For example,\n\n\\[\\sin4x=4\\sin x\\cos x\\cos2x,\\]\n\nand, more generally,\n\n\\[\\sin(2^n x) =2^n\\sin x\\prod_{j=0}^{n-1}\\cos(2^j x).\\]\n\nSuch identities express a high-frequency oscillation as a structured product of lower-frequency factors, with the equality valid even when one or more factors vanish."
    },
    {
      "heading": "Products, sums, and finite trigonometric series",
      "text": "Adding and subtracting the angle-addition formulas converts products into sums:\n\n\\[\\cos a\\cos b =\\frac12\\bigl[\\cos(a-b)+\\cos(a+b)\\bigr],\\]\n\n\\[\\sin a\\sin b =\\frac12\\bigl[\\cos(a-b)-\\cos(a+b)\\bigr],\\]\n\n\\[\\sin a\\cos b =\\frac12\\bigl[\\sin(a+b)+\\sin(a-b)\\bigr].\\]\n\nThese identities separate a product of oscillations into components at the sum and difference of their frequencies. In particular, multiplication does not generally preserve a single frequency.\n\nReversing the substitution gives sum-to-product identities:\n\n\\[\\sin a+\\sin b =2\\sin\\frac{a+b}{2}\\cos\\frac{a-b}{2},\\]\n\n\\[\\sin a-\\sin b =2\\cos\\frac{a+b}{2}\\sin\\frac{a-b}{2},\\]\n\n\\[\\cos a+\\cos b =2\\cos\\frac{a+b}{2}\\cos\\frac{a-b}{2},\\]\n\n\\[\\cos a-\\cos b =-2\\sin\\frac{a+b}{2}\\sin\\frac{a-b}{2}.\\]\n\nThey are useful for factoring equations. For instance,\n\n\\[\\sin3x+\\sin x=2\\sin2x\\cos x.\\]\n\nSetting this expression equal to zero exposes both possible zero factors. Dividing immediately by \\(\\cos x\\), by contrast, would require separate treatment of its zeros.\n\nA physical illustration is the superposition of two equal-amplitude oscillations:\n\n\\[\\cos(\\omega_1t)+\\cos(\\omega_2t) = 2\\cos\\left(\\frac{\\omega_1-\\omega_2}{2}t\\right) \\cos\\left(\\frac{\\omega_1+\\omega_2}{2}t\\right).\\]\n\nWhen the frequencies are close, this describes a rapidly oscillating factor multiplied by a slowly varying factor. The magnitude of the latter gives the envelope associated with beats. The sign of the modulation factor also carries phase information, so the signed factor and its magnitude have distinct interpretations.\n\nFinite arithmetic progressions of angles admit closed sums. For a positive integer \\(n\\),\n\n\\[\\sum_{k=0}^{n-1}\\cos(a+kd) = \\frac{\\sin(nd/2)}{\\sin(d/2)} \\cos\\left(a+\\frac{n-1}{2}d\\right),\\]\n\nand\n\n\\[\\sum_{k=0}^{n-1}\\sin(a+kd) = \\frac{\\sin(nd/2)}{\\sin(d/2)} \\sin\\left(a+\\frac{n-1}{2}d\\right),\\]\n\nprovided \\(\\sin(d/2)\\ne0\\). When \\(d=2\\pi m\\), every term repeats its initial value, giving \\(n\\cos a\\) or \\(n\\sin a\\). The apparent singularity of the closed form must therefore be handled separately or by a limit.\n\nThe sums follow from a finite geometric series of complex exponentials, or from telescoping after applying product-to-sum identities. They describe cancellation among equally spaced phases. This same cancellation underlies discrete orthogonality and the discrete Fourier transform, where regularly sampled exponential oscillations form a basis for finite data sequences."
    },
    {
      "heading": "Half angles and rational parametrization",
      "text": "Solving the double-angle formulas for the squares of half-angle functions gives\n\n\\[\\sin^2\\frac{x}{2}=\\frac{1-\\cos x}{2}, \\qquad \\cos^2\\frac{x}{2}=\\frac{1+\\cos x}{2}.\\]\n\nTaking square roots yields\n\n\\[\\sin\\frac{x}{2}=\\pm\\sqrt{\\frac{1-\\cos x}{2}}, \\qquad \\cos\\frac{x}{2}=\\pm\\sqrt{\\frac{1+\\cos x}{2}}.\\]\n\nThe signs are determined by the quadrant of \\(x/2\\), not chosen independently at will. For example, if \\(0\\le x\\le2\\pi\\), then \\(\\sin(x/2)\\ge0\\), but \\(\\cos(x/2)\\) changes sign at \\(x=\\pi\\).\n\nUseful tangent forms are\n\n\\[\\tan\\frac{x}{2} =\\frac{\\sin x}{1+\\cos x} =\\frac{1-\\cos x}{\\sin x}.\\]\n\nThe displayed fractions have different domains. The first represents \\(\\tan(x/2)\\) everywhere that this tangent exists. The second additionally excludes \\(x=2k\\pi\\), where it has the indeterminate form \\(0/0\\) even though \\(\\tan(x/2)=0\\). Thus a chain of formally equivalent expressions need not have a single unrestricted natural domain.\n\nSetting\n\n\\[t=\\tan\\frac{x}{2}\\]\n\nleads to the rational parametrization\n\n\\[\\sin x=\\frac{2t}{1+t^2}, \\qquad \\cos x=\\frac{1-t^2}{1+t^2}.\\]\n\nWhere \\(\\cos x\\ne0\\), it also gives\n\n\\[\\tan x=\\frac{2t}{1-t^2}.\\]\n\nGeometrically, a line through \\((-1,0)\\) with slope \\(t\\) meets the unit circle at\n\n\\[\\left(\\frac{1-t^2}{1+t^2},\\frac{2t}{1+t^2}\\right).\\]\n\nEvery point except \\((-1,0)\\) is obtained from a finite real \\(t\\). The missing point corresponds to odd multiples of \\(\\pi\\), where the half-angle tangent is undefined.\n\nThe parametrization also connects trigonometry with number theory. A rational value \\(t=p/q\\) produces rational coordinates on the unit circle. Clearing denominators gives\n\n\\[(q^2-p^2)^2+(2pq)^2=(q^2+p^2)^2.\\]\n\nThis is the algebraic basis of the familiar parametrization of integer Pythagorean triples. Coprimality and parity conditions determine when the resulting triple is primitive.\n\nIn integration, the differential relation\n\n\\[dx=\\frac{2\\,dt}{1+t^2}\\]\n\nturns any rational expression in \\(\\sin x\\) and \\(\\cos x\\), multiplied by \\(dx\\), into a rational expression in \\(t\\). For example,\n\n\\[\\int\\frac{dx}{2+\\cos x} = \\int\\frac{2\\,dt}{t^2+3}.\\]\n\nThe substitution is a local change of variable: an interval crossing an odd multiple of \\(\\pi\\) requires separate branches or intervals. Constants of integration and inverse-tangent branches must be interpreted accordingly."
    },
    {
      "heading": "Complex exponentials and historical development",
      "text": "Euler’s formula\n\n\\[e^{ix}=\\cos x+i\\sin x\\]\n\nprovides a compact algebraic foundation for trigonometric identities. It gives\n\n\\[\\cos x=\\frac{e^{ix}+e^{-ix}}{2}, \\qquad \\sin x=\\frac{e^{ix}-e^{-ix}}{2i}.\\]\n\nThe addition formulas then follow from the multiplication law of the exponential function:\n\n\\[e^{i(a+b)}=e^{ia}e^{ib}.\\]\n\nEquating the real and imaginary parts recovers the cosine and sine addition laws. Periodicity, products, and multiple-angle formulas likewise become consequences of exponential algebra.\n\nDe Moivre’s formula states that\n\n\\[(\\cos x+i\\sin x)^n=\\cos nx+i\\sin nx\\]\n\nfor every integer \\(n\\). Expanding the left side with the binomial theorem and separating real and imaginary parts gives explicit multiple-angle formulas. For example,\n\n\\[\\cos nx= \\sum_{k=0}^{\\lfloor n/2\\rfloor} (-1)^k\\binom{n}{2k} \\cos^{\\,n-2k}x\\,\\sin^{\\,2k}x\\]\n\nfor nonnegative integers \\(n\\). The formula also organizes roots of complex numbers: the \\(n\\)th roots of unity are \\(e^{2\\pi i k/n}\\), for \\(k=0,\\ldots,n-1\\), represented by equally spaced points on the unit circle.\n\nThe identities predate exponential notation by many centuries. Ancient Greek astronomy used tables of chords rather than modern sine functions. For a circle of radius \\(R\\), the chord subtending a central angle \\(\\theta\\) has length\n\n\\[\\operatorname{chord}(\\theta)=2R\\sin(\\theta/2).\\]\n\nIn the second century CE, Ptolemy’s Almagest presented chord calculations and a theorem on cyclic quadrilaterals that supports chord addition and subtraction relationships. Indian mathematical astronomy subsequently developed sine tables; Aryabhata’s work of 499 CE is a major surviving example. Medieval scholars working in Arabic and other scholarly languages further developed plane and spherical trigonometric methods for astronomy.\n\nEarly modern computation created another use for product-to-sum identities. Before logarithms became widely established, prosthaphaeresis converted multiplication into additions and subtractions with the aid of trigonometric tables. A product of two cosines could be obtained from the cosines of their angle sum and difference, followed by division by two. Its practical effectiveness depended on table accuracy and interpolation.\n\nThe eighteenth-century treatment of trigonometric functions as analytic functions unified these earlier computational relationships. Leonhard Euler’s Introductio in analysin infinitorum of 1748 systematically connected trigonometric and exponential functions. In modern complex analysis, sine and cosine are defined for complex arguments by their exponential formulas or power series. Their addition and Pythagorean identities remain valid for all complex arguments; identities involving quotients remain subject to their denominators being nonzero."
    },
    {
      "heading": "Calculus, orthogonality, and periodic models",
      "text": "Trigonometric identities frequently turn a difficult integral into elementary pieces. Rearranging the double-angle formula gives the power-reduction identities\n\n\\[\\sin^2x=\\frac{1-\\cos2x}{2}, \\qquad \\cos^2x=\\frac{1+\\cos2x}{2}.\\]\n\nHence\n\n\\[\\int\\sin^2x\\,dx =\\frac{x}{2}-\\frac{\\sin2x}{4}+C.\\]\n\nRepeated power reduction handles higher even powers. For instance,\n\n\\[\\cos^4x=\\frac{3+4\\cos2x+\\cos4x}{8}.\\]\n\nThis form immediately reveals both an antiderivative and the average value \\(3/8\\) over a whole number of periods.\n\nProduct-to-sum identities explain the orthogonality of sine and cosine waves. For positive integers \\(m,n\\),\n\n\\[\\int_{-\\pi}^{\\pi}\\sin(mx)\\sin(nx)\\,dx = \\begin{cases} 0,&m\\ne n,\\\\ \\pi,&m=n, \\end{cases}\\]\n\nand the same formula holds for the product of two cosines. Every sine–cosine cross integral over this interval is zero. The constant function must be treated separately: its squared integral is \\(2\\pi\\), rather than \\(\\pi\\). These results follow because nonconstant integer-frequency sine and cosine terms integrate to zero over a complete period.\n\nOrthogonality supplies the coefficient formulas for a Fourier series. In the conventional normalization,\n\n\\[f(x)\\sim\\frac{a_0}{2} +\\sum_{n=1}^{\\infty}\\bigl(a_n\\cos nx+b_n\\sin nx\\bigr),\\]\n\nwhere\n\n\\[a_n=\\frac1\\pi\\int_{-\\pi}^{\\pi}f(x)\\cos nx\\,dx, \\qquad b_n=\\frac1\\pi\\int_{-\\pi}^{\\pi}f(x)\\sin nx\\,dx.\\]\n\nTrigonometric identities explain why multiplication by one basis function and integration isolates its coefficient. Whether the infinite series converges to the original function, and in what sense, requires additional analytical hypotheses; it does not follow from the finite identities alone.\n\nThe same formulas describe interactions among frequencies. For example,\n\n\\[\\cos(\\omega_1t)\\cos(\\omega_2t) = \\frac12\\cos((\\omega_1-\\omega_2)t) +\\frac12\\cos((\\omega_1+\\omega_2)t).\\]\n\nA device or model that multiplies two signals therefore produces sum- and difference-frequency components. Quadratic terms applied to a single sinusoid generate a constant component and a second harmonic, since \\(\\cos^2\\omega t=(1+\\cos2\\omega t)/2\\).\n\nTrigonometric identities also simplify derivatives and solutions of differential equations. The Pythagorean identity gives \\(1+\\tan^2x=\\sec^2x\\), the usual expression for the derivative of tangent. The addition formulas express a shifted sinusoidal solution as a linear combination of sine and cosine. This is particularly useful for the harmonic oscillator,\n\n\\[y''+\\omega^2y=0,\\]\n\nwhose solutions can be written either as \\(A\\cos\\omega t+B\\sin\\omega t\\) or in amplitude–phase form."
    },
    {
      "heading": "Proof strategies, symbolic verification, and numerical reliability",
      "text": "A proof of a trigonometric identity establishes equality for every point of the claimed domain. Substituting selected values or comparing graphs can expose an error, but cannot prove a general identity. A common proof strategy is to transform one side into the other using already established identities. Another is to transform both sides independently into the same expression, for example by rewriting tangent, cotangent, secant, and cosecant in terms of sine and cosine.\n\nThe logical status of each operation matters. Multiplication by a denominator is reversible only on a domain where that denominator is nonzero. Squaring can conceal sign differences, and taking square roots requires sign information. In solving equations, these operations can introduce extraneous solutions or discard valid ones. For example, dividing \\(\\sin2x=\\sin x\\) by \\(\\sin x\\) loses all cases with \\(\\sin x=0\\). Factoring instead gives\n\n\\[\\sin x(2\\cos x-1)=0,\\]\n\nwhich preserves both families.\n\nA systematic symbolic method rewrites a trigonometric expression using complex exponentials. For integer multiples of a single variable, setting \\(z=e^{ix}\\) gives\n\n\\[\\cos nx=\\frac{z^n+z^{-n}}{2}, \\qquad \\sin nx=\\frac{z^n-z^{-n}}{2i}.\\]\n\nAn identity involving finitely many such terms can then be reduced to an equality of rational functions, or, after legitimate denominator clearing, a polynomial identity. This technique is useful in computer algebra, although any denominator restrictions must remain part of the result.\n\nExact equality does not imply equal numerical behavior in floating-point arithmetic. When \\(x\\) is small, direct evaluation of \\(1-\\cos x\\) subtracts nearly equal quantities. The equivalent form\n\n\\[1-\\cos x=2\\sin^2(x/2)\\]\n\nusually avoids that cancellation. Likewise,\n\n\\[\\frac{1-\\cos x}{\\sin x} =\\frac{\\sin x}{1+\\cos x}\\]\n\ncan be evaluated more reliably near zero using the second expression. Near an odd multiple of \\(\\pi\\), however, the denominator \\(1+\\cos x\\) is small, and a different representation or local treatment is needed.\n\nNumerical stability also depends on argument reduction. A library evaluating \\(\\sin x\\) for a very large \\(x\\) must determine the appropriate multiple of \\(\\pi/2\\) to remove with sufficient precision. A small reduction error can become a large relative error when the true answer is close to zero. Consequently, numerical testing of an identity should consider absolute error, relative error, excluded points, and the size of intermediate quantities rather than demand literal equality between rounded outputs."
    }
  ],
  "links": [
    "trigonometric-functions",
    "equation",
    "integer",
    "domain-of-a-function",
    "radian",
    "circle",
    "right-triangle",
    "pythagorean-theorem",
    "matrix",
    "matrix-multiplication",
    "linear-algebra",
    "orthogonal-matrix",
    "polynomial",
    "chebyshev-polynomials",
    "recurrence-relation",
    "geometric-series",
    "discrete-fourier-transform",
    "number-theory",
    "eulers-formula",
    "exponential-function",
    "de-moivres-formula",
    "binomial-theorem",
    "leonhard-euler",
    "complex-analysis",
    "integral",
    "fourier-series",
    "differential-equation",
    "mathematical-proof",
    "floating-point-arithmetic",
    "numerical-stability"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}