Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Sine and cosine

From Wikipedia, the free encyclopedia
Fundamental trigonometric functions
"Sine" and "Cosine" redirect here. For other uses, seeSine (disambiguation) andCosine (disambiguation). "Sine" is not to be confused withSign,Sign (mathematics) or thesign function.
Sine and cosine
General information
General definitionsin(θ)=oppositehypotenusecos(θ)=adjacenthypotenuse{\displaystyle {\begin{aligned}&\sin(\theta )={\frac {\textrm {opposite}}{\textrm {hypotenuse}}}\\[8pt]&\cos(\theta )={\frac {\textrm {adjacent}}{\textrm {hypotenuse}}}\\[8pt]\end{aligned}}}
Fields of applicationTrigonometry,Fourier series, etc.

Inmathematics,sine andcosine aretrigonometric functions of anangle. The sine and cosine of an acuteangle are defined in the context of aright triangle: for the specified angle, its sine is the ratio of the length of the side opposite that angle to the length of the longest side of thetriangle (thehypotenuse), and the cosine is theratio of the length of the adjacent leg to that of thehypotenuse. For an angleθ{\displaystyle \theta }, the sine and cosine functions are denoted assin(θ){\displaystyle \sin(\theta )} andcos(θ){\displaystyle \cos(\theta )}.

The definitions of sine and cosine have been extended to anyreal value in terms of the lengths of certain line segments in aunit circle. More modern definitions express the sine and cosine asinfinite series, or as the solutions of certaindifferential equations, allowing their extension to arbitrary positive and negative values and even tocomplex numbers.

The sine and cosine functions are commonly used to modelperiodic phenomena such assound andlight waves, the position and velocity of harmonic oscillators, sunlight intensity and day length, and average temperature variations throughout the year. They can be traced to thejyā andkoṭi-jyā functions used inIndian astronomy during theGupta period.

Elementary descriptions

[edit]

Right-angled triangle definition

[edit]
For the angleα, the sine function gives the ratio of the length of the opposite side to the length of the hypotenuse.

To define the sine and cosine of an acute angleα{\displaystyle \alpha }, start with aright triangle that contains an angle of measureα{\displaystyle \alpha }; in the accompanying figure, angleα{\displaystyle \alpha } in a right triangleABC{\displaystyle ABC} is the angle of interest. The three sides of the triangle are named as follows:[1]

  • Theopposite side is the side opposite to the angle of interest; in this case, it isa{\displaystyle a}.
  • Thehypotenuse is the side opposite the right angle; in this case, it ish{\displaystyle h}. The hypotenuse is always the longest side of a right-angled triangle.
  • Theadjacent side is the remaining side; in this case, it isb{\displaystyle b}. It forms a side of (and is adjacent to) both the angle of interest and the right angle.

Once such a triangle is chosen, the sine of the angle is equal to the length of the opposite side divided by the length of the hypotenuse, and the cosine of the angle is equal to the length of the adjacent side divided by the length of the hypotenuse:[1]sin(α)=oppositehypotenuse,cos(α)=adjacenthypotenuse.{\displaystyle \sin(\alpha )={\frac {\text{opposite}}{\text{hypotenuse}}},\qquad \cos(\alpha )={\frac {\text{adjacent}}{\text{hypotenuse}}}.}

The other trigonometric functions of the angle can be defined similarly; for example, thetangent is the ratio between the opposite and adjacent sides or equivalently the ratio between the sine and cosine functions. Thereciprocal of sine is cosecant, which gives the ratio of the hypotenuse length to the length of the opposite side. Similarly, the reciprocal of cosine is secant, which gives the ratio of the hypotenuse length to that of the adjacent side. The cotangent function is the ratio between the adjacent and opposite sides, a reciprocal of a tangent function. These functions can be formulated as:[1]tan(θ)=sin(θ)cos(θ)=oppositeadjacent,cot(θ)=1tan(θ)=adjacentopposite,csc(θ)=1sin(θ)=hypotenuseopposite,sec(θ)=1cos(θ)=hypotenuseadjacent.{\displaystyle {\begin{aligned}\tan(\theta )&={\frac {\sin(\theta )}{\cos(\theta )}}={\frac {\text{opposite}}{\text{adjacent}}},\\\cot(\theta )&={\frac {1}{\tan(\theta )}}={\frac {\text{adjacent}}{\text{opposite}}},\\\csc(\theta )&={\frac {1}{\sin(\theta )}}={\frac {\text{hypotenuse}}{\text{opposite}}},\\\sec(\theta )&={\frac {1}{\cos(\theta )}}={\frac {\textrm {hypotenuse}}{\textrm {adjacent}}}.\end{aligned}}}

Special angle measures

[edit]

As stated, the valuessin(α){\displaystyle \sin(\alpha )} andcos(α){\displaystyle \cos(\alpha )} appear to depend on the choice of a right triangle containing an angle of measureα{\displaystyle \alpha }. However, this is not the case as all such triangles aresimilar, and so the ratios are the same for each of them. For example, eachleg of the 45-45-90 right triangle is 1 unit, and its hypotenuse is2{\displaystyle {\sqrt {2}}}; therefore,sin45=cos45=22{\textstyle \sin 45^{\circ }=\cos 45^{\circ }={\frac {\sqrt {2}}{2}}}.[2] The following table shows the special value of each input for both sine and cosine with the domain between0<α<π2{\textstyle 0<\alpha <{\frac {\pi }{2}}}. The input in this table provides various unit systems such as degree, radian, and so on. The angles other than those five can be obtained by using a calculator.[3][4]

Angle,xsin(x)cos(x)
DegreesRadiansGradiansTurnsExactDecimalExactDecimal
00g{\displaystyle 0^{g}}00011
30°16π{\displaystyle {\frac {1}{6}}\pi }3313g{\displaystyle 33{\frac {1}{3}}^{g}}112{\displaystyle {\frac {1}{12}}}12{\displaystyle {\frac {1}{2}}}0.532{\displaystyle {\frac {\sqrt {3}}{2}}}0.866
45°14π{\displaystyle {\frac {1}{4}}\pi }50g{\displaystyle 50^{g}}18{\displaystyle {\frac {1}{8}}}22{\displaystyle {\frac {\sqrt {2}}{2}}}0.70722{\displaystyle {\frac {\sqrt {2}}{2}}}0.707
60°13π{\displaystyle {\frac {1}{3}}\pi }6623g{\displaystyle 66{\frac {2}{3}}^{g}}16{\displaystyle {\frac {1}{6}}}32{\displaystyle {\frac {\sqrt {3}}{2}}}0.86612{\displaystyle {\frac {1}{2}}}0.5
90°12π{\displaystyle {\frac {1}{2}}\pi }100g{\displaystyle 100^{g}}14{\displaystyle {\frac {1}{4}}}1100

Laws

[edit]
Main articles:Law of sines andLaw of cosines
Law of sines and cosines' illustration

Thelaw of sines is useful for computing the lengths of the unknown sides in a triangle if two angles and one side are known.[5] Given a triangleABC{\displaystyle ABC} with sidesa{\displaystyle a},b{\displaystyle b}, andc{\displaystyle c}, and angles opposite those sidesα{\displaystyle \alpha },β{\displaystyle \beta }, andγ{\displaystyle \gamma }, the law states,sinαa=sinβb=sinγc.{\displaystyle {\frac {\sin \alpha }{a}}={\frac {\sin \beta }{b}}={\frac {\sin \gamma }{c}}.}This is equivalent to the equality of the first three expressions below:asinα=bsinβ=csinγ=2R,{\displaystyle {\frac {a}{\sin \alpha }}={\frac {b}{\sin \beta }}={\frac {c}{\sin \gamma }}=2R,}whereR{\displaystyle R} is the triangle'scircumradius.

Thelaw of cosines is useful for computing the length of an unknown side if two other sides and an angle are known.[5] The law states,a2+b22abcos(γ)=c2{\displaystyle a^{2}+b^{2}-2ab\cos(\gamma )=c^{2}}In the case whereγ=π/2{\displaystyle \gamma =\pi /2} from whichcos(γ)=0{\displaystyle \cos(\gamma )=0}, the resulting equation becomes thePythagorean theorem.[6]

Vector definition

[edit]

Thecross product anddot product are operations on twovectors inEuclidean vector space. The sine and cosine functions can be defined in terms of the cross product and dot product. Ifa{\displaystyle \mathbb {a} } andb{\displaystyle \mathbb {b} } are vectors, andθ{\displaystyle \theta } is the angle betweena{\displaystyle \mathbb {a} } andb{\displaystyle \mathbb {b} }, then sine and cosine can be defined as:sin(θ)=|a×b||a||b|,cos(θ)=ab|a||b|.{\displaystyle {\begin{aligned}\sin(\theta )&={\frac {|\mathbb {a} \times \mathbb {b} |}{|a||b|}},\\\cos(\theta )&={\frac {\mathbb {a} \cdot \mathbb {b} }{|a||b|}}.\end{aligned}}}

Analytic descriptions

[edit]

Unit circle definition

[edit]

The sine and cosine functions may also be defined in a more general way by usingunit circle, a circle of radius one centered at the origin(0,0){\displaystyle (0,0)}, formulated as the equation ofx2+y2=1{\displaystyle x^{2}+y^{2}=1} in theCartesian coordinate system. Let a line through the origin intersect the unit circle, making an angle ofθ{\displaystyle \theta } with the positive half of thex{\displaystyle x}-axis. Thex{\displaystyle x}- andy{\displaystyle y}-coordinates of this point of intersection are equal tocos(θ){\displaystyle \cos(\theta )} andsin(θ){\displaystyle \sin(\theta )}, respectively; that is,[7]sin(θ)=y,cos(θ)=x.{\displaystyle \sin(\theta )=y,\qquad \cos(\theta )=x.}

This definition is consistent with the right-angled triangle definition of sine and cosine when0<θ<π2{\textstyle 0<\theta <{\frac {\pi }{2}}} because the length of the hypotenuse of the unit circle is always 1; mathematically speaking, the sine of an angle equals the opposite side of the triangle, which is simply they{\displaystyle y}-coordinate. A similar argument can be made for the cosine function to show that the cosine of an angle when0<θ<π2{\textstyle 0<\theta <{\frac {\pi }{2}}}, even under the new definition using the unit circle.[8][9]

Graph of a function and its elementary properties

[edit]
Animation demonstrating how the sine function (in red) is graphed from they-coordinate (red dot) of a point on theunit circle (in green), at an angle ofθ. The cosine (in blue) is thex-coordinate.

Using the unit circle definition has the advantage of drawing a graph of sine and cosine functions. This can be done by rotating counterclockwise a point along the circumference of a circle, depending on the inputθ>0{\displaystyle \theta >0}. In a sine function, if the input isθ=π2{\textstyle \theta ={\frac {\pi }{2}}}, the point is rotated counterclockwise and stopped exactly on they{\displaystyle y}-axis. Ifθ=π{\displaystyle \theta =\pi }, the point is at the circle's halfway. Ifθ=2π{\displaystyle \theta =2\pi }, the point returned to its origin. This results that both sine and cosine functions have therange between1y1{\displaystyle -1\leq y\leq 1}.[10]

Extending the angle to any real domain, the point rotated counterclockwise continuously. This can be done similarly for the cosine function as well, although the point is rotated initially from they{\displaystyle y}-coordinate. In other words, both sine and cosine functions areperiodic, meaning any angle added by the circumference's circle is the angle itself. Mathematically,[11]sin(θ+2π)=sin(θ),cos(θ+2π)=cos(θ).{\displaystyle \sin(\theta +2\pi )=\sin(\theta ),\qquad \cos(\theta +2\pi )=\cos(\theta ).}

A functionf{\displaystyle f} is said to beodd iff(x)=f(x){\displaystyle f(-x)=-f(x)}, and is said to beeven iff(x)=f(x){\displaystyle f(-x)=f(x)}. The sine function is odd, whereas the cosine function is even.[12] Both sine and cosine functions are similar, with their difference beingshifted byπ2{\textstyle {\frac {\pi }{2}}}. This means,[13]sin(θ)=cos(π2θ),cos(θ)=sin(π2θ).{\displaystyle {\begin{aligned}\sin(\theta )&=\cos \left({\frac {\pi }{2}}-\theta \right),\\\cos(\theta )&=\sin \left({\frac {\pi }{2}}-\theta \right).\end{aligned}}}

The fixed point iterationxn+1 = cos(xn) with initial valuex0 = −1 converges to the Dottie number.

Zero is the only realfixed point of the sine function; in other words the only intersection of the sine function and theidentity function issin(0)=0{\displaystyle \sin(0)=0}. The only real fixed point of the cosine function is called theDottie number. The Dottie number is the unique real root of the equationcos(x)=x{\displaystyle \cos(x)=x}. The decimal expansion of the Dottie number is approximately 0.739085.[14]

Continuity and differentiation

[edit]
Main article:Differentiation of trigonometric functions
The quadrants of the unit circle and of sin(x), using theCartesian coordinate system

The sine and cosine functions are infinitely differentiable.[15] The derivative of sine is cosine, and the derivative of cosine is negative sine:[16]ddxsin(x)=cos(x),ddxcos(x)=sin(x).{\displaystyle {\frac {d}{dx}}\sin(x)=\cos(x),\qquad {\frac {d}{dx}}\cos(x)=-\sin(x).}Continuing the process in higher-order derivative results in the repeated same functions; the fourth derivative of a sine is the sine itself.[15] These derivatives can be applied to thefirst derivative test, according to which themonotonicity of a function can be defined as the inequality of function's first derivative greater or less than equal to zero.[17] It can also be applied tosecond derivative test, according to which theconcavity of a function can be defined by applying the inequality of the function's second derivative greater or less than equal to zero.[18] The following table shows that both sine and cosine functions have concavity and monotonicity—the positive sign (+{\displaystyle +}) denotes a graph is increasing (going upward) and the negative sign ({\displaystyle -}) is decreasing (going downward)—in certain intervals.[19] This information can be represented as a Cartesian coordinates system divided into four quadrants.

QuadrantAngleSineCosine
DegreesRadiansSignMonotonyConvexitySignMonotonyConvexity
1st quadrant, I0<x<90{\displaystyle 0^{\circ }<x<90^{\circ }}0<x<π2{\displaystyle 0<x<{\frac {\pi }{2}}}+{\displaystyle +}IncreasingConcave+{\displaystyle +}DecreasingConcave
2nd quadrant, II90<x<180{\displaystyle 90^{\circ }<x<180^{\circ }}π2<x<π{\displaystyle {\frac {\pi }{2}}<x<\pi }+{\displaystyle +}DecreasingConcave{\displaystyle -}DecreasingConvex
3rd quadrant, III180<x<270{\displaystyle 180^{\circ }<x<270^{\circ }}π<x<3π2{\displaystyle \pi <x<{\frac {3\pi }{2}}}{\displaystyle -}DecreasingConvex{\displaystyle -}IncreasingConvex
4th quadrant, IV270<x<360{\displaystyle 270^{\circ }<x<360^{\circ }}3π2<x<2π{\displaystyle {\frac {3\pi }{2}}<x<2\pi }{\displaystyle -}IncreasingConvex+{\displaystyle +}IncreasingConcave

Both sine and cosine functions can be defined by using differential equations. The pair of(cosθ,sinθ){\displaystyle (\cos \theta ,\sin \theta )} is the solution(x(θ),y(θ)){\displaystyle (x(\theta ),y(\theta ))} to the two-dimensional system ofdifferential equationsy(θ)=x(θ){\displaystyle y'(\theta )=x(\theta )} andx(θ)=y(θ){\displaystyle x'(\theta )=-y(\theta )} with theinitial conditionsy(0)=0{\displaystyle y(0)=0} andx(0)=1{\displaystyle x(0)=1}. One could interpret the unit circle in the above definitions as defining thephase space trajectory of the differential equation with the given initial conditions. It can be interpreted as a phase space trajectory of the system of differential equationsy(θ)=x(θ){\displaystyle y'(\theta )=x(\theta )} andx(θ)=y(θ){\displaystyle x'(\theta )=-y(\theta )} starting from the initial conditionsy(0)=0{\displaystyle y(0)=0} andx(0)=1{\displaystyle x(0)=1}.[citation needed]

Integral and the usage in mensuration

[edit]
Main article:List of integrals of trigonometric functions

Their area under a curve can be obtained by using theintegral with a certain bounded interval. Their antiderivatives are:sin(x)dx=cos(x)+Ccos(x)dx=sin(x)+C,{\displaystyle \int \sin(x)\,dx=-\cos(x)+C\qquad \int \cos(x)\,dx=\sin(x)+C,}whereC{\displaystyle C} denotes theconstant of integration.[20] These antiderivatives may be applied to compute the mensuration properties of both sine and cosine functions' curves with a given interval. For example, thearc length of the sine curve between0{\displaystyle 0} andt{\displaystyle t} is0t1+cos2(x)dx=2E(t,12),{\displaystyle \int _{0}^{t}\!{\sqrt {1+\cos ^{2}(x)}}\,dx={\sqrt {2}}\operatorname {E} \left(t,{\frac {1}{\sqrt {2}}}\right),}whereE(φ,k){\displaystyle \operatorname {E} (\varphi ,k)} is theincomplete elliptic integral of the second kind with modulusk{\displaystyle k}. It cannot be expressed usingelementary functions.[21] In the case of a full period, its arc length isL=42π3Γ(1/4)2+Γ(1/4)22π=2πϖ+2ϖ7.6404{\displaystyle L={\frac {4{\sqrt {2\pi ^{3}}}}{\Gamma (1/4)^{2}}}+{\frac {\Gamma (1/4)^{2}}{\sqrt {2\pi }}}={\frac {2\pi }{\varpi }}+2\varpi \approx 7.6404\ldots }whereΓ{\displaystyle \Gamma } is thegamma function andϖ{\displaystyle \varpi } is thelemniscate constant.[22]

Inverse functions

[edit]
The usual principal values of thearcsin(x) andarccos(x) functions graphed on the Cartesian plane

Theinverse function of sine is arcsine or inverse sine, denoted as "arcsin", "asin", orsin1{\displaystyle \sin ^{-1}}.[23] The inverse function of cosine is arccosine, denoted as "arccos", "acos", orcos1{\displaystyle \cos ^{-1}}.[a] As sine and cosine are notinjective, their inverses are not exact inverse functions, but partial inverse functions. For example,sin(0)=0{\displaystyle \sin(0)=0}, but alsosin(π)=0{\displaystyle \sin(\pi )=0},sin(2π)=0{\displaystyle \sin(2\pi )=0}, and so on. It follows that the arcsine function is multivalued:arcsin(0)=0{\displaystyle \arcsin(0)=0}, but alsoarcsin(0)=π{\displaystyle \arcsin(0)=\pi },arcsin(0)=2π{\displaystyle \arcsin(0)=2\pi }, and so on. When only one value is desired, the function may be restricted to itsprincipal branch. With this restriction, for eachx{\displaystyle x} in the domain, the expressionarcsin(x){\displaystyle \arcsin(x)} will evaluate only to a single value, called itsprincipal value. The standard range of principal values for arcsin is fromπ2{\textstyle -{\frac {\pi }{2}}} toπ2{\textstyle {\frac {\pi }{2}}}, and the standard range for arccos is from0{\displaystyle 0} toπ{\displaystyle \pi }.[24]

The inverse function of both sine and cosine are defined as:[citation needed]θ=arcsin(oppositehypotenuse)=arccos(adjacenthypotenuse),{\displaystyle \theta =\arcsin \left({\frac {\text{opposite}}{\text{hypotenuse}}}\right)=\arccos \left({\frac {\text{adjacent}}{\text{hypotenuse}}}\right),}where for some integerk{\displaystyle k},sin(y)=xy=arcsin(x)+2πk, or y=πarcsin(x)+2πkcos(y)=xy=arccos(x)+2πk, or y=arccos(x)+2πk{\displaystyle {\begin{aligned}\sin(y)=x\iff &y=\arcsin(x)+2\pi k,{\text{ or }}\\&y=\pi -\arcsin(x)+2\pi k\\\cos(y)=x\iff &y=\arccos(x)+2\pi k,{\text{ or }}\\&y=-\arccos(x)+2\pi k\end{aligned}}}By definition, both functions satisfy the equations:[citation needed]sin(arcsin(x))=xcos(arccos(x))=x{\displaystyle \sin(\arcsin(x))=x\qquad \cos(\arccos(x))=x}andarcsin(sin(θ))=θforπ2θπ2arccos(cos(θ))=θfor0θπ{\displaystyle {\begin{aligned}\arcsin(\sin(\theta ))=\theta \quad &{\text{for}}\quad -{\frac {\pi }{2}}\leq \theta \leq {\frac {\pi }{2}}\\\arccos(\cos(\theta ))=\theta \quad &{\text{for}}\quad 0\leq \theta \leq \pi \end{aligned}}}

Other identities

[edit]
Main article:List of trigonometric identities

According toPythagorean theorem, the squared hypotenuse is the sum of two squared legs of a right triangle. Dividing the formula on both sides with squared hypotenuse resulting in thePythagorean trigonometric identity, the sum of a squared sine and a squared cosine equals 1:[25][b]sin2(θ)+cos2(θ)=1.{\displaystyle \sin ^{2}(\theta )+\cos ^{2}(\theta )=1.}

Sine and cosine satisfy the following double-angle formulas:[26]sin(2θ)=2sin(θ)cos(θ),cos(2θ)=cos2(θ)sin2(θ)=2cos2(θ)1=12sin2(θ){\displaystyle {\begin{aligned}\sin(2\theta )&=2\sin(\theta )\cos(\theta ),\\\cos(2\theta )&=\cos ^{2}(\theta )-\sin ^{2}(\theta )\\&=2\cos ^{2}(\theta )-1\\&=1-2\sin ^{2}(\theta )\end{aligned}}}

Sine function in blue and sine squared function in red. Thex-axis is in radians.

The cosine double angle formula implies that sin2 and cos2 are, themselves, shifted and scaled sine waves. Specifically,[27]sin2(θ)=1cos(2θ)2cos2(θ)=1+cos(2θ)2{\displaystyle \sin ^{2}(\theta )={\frac {1-\cos(2\theta )}{2}}\qquad \cos ^{2}(\theta )={\frac {1+\cos(2\theta )}{2}}}The graph shows both sine and sine squared functions, with the sine in blue and the sine squared in red. Both graphs have the same shape but with different ranges of values and different periods. Sine squared has only positive values, but twice the number of periods.[citation needed]

Series and polynomials

[edit]
This animation shows how including more and more terms in the partial sum of its Taylor series approaches a sine curve.

Both sine and cosine functions can be defined by using aTaylor series, apower series involving the higher-order derivatives. As mentioned in§ Continuity and differentiation, thederivative of sine is cosine and that the derivative of cosine is the negative of sine. This means the successive derivatives ofsin(x){\displaystyle \sin(x)} arecos(x){\displaystyle \cos(x)},sin(x){\displaystyle -\sin(x)},cos(x){\displaystyle -\cos(x)},sin(x){\displaystyle \sin(x)}, continuing to repeat those four functions. The(4n+k){\displaystyle (4n+k)}-th derivative, evaluated at the point 0:sin(4n+k)(0)={0when k=01when k=10when k=21when k=3{\displaystyle \sin ^{(4n+k)}(0)={\begin{cases}0&{\text{when }}k=0\\1&{\text{when }}k=1\\0&{\text{when }}k=2\\-1&{\text{when }}k=3\end{cases}}}where the superscript represents repeated differentiation. This implies the following Taylor series expansion atx=0{\displaystyle x=0}. One can then use the theory ofTaylor series to show that the following identities hold for allreal numbersx{\displaystyle x}—wherex{\displaystyle x} is the angle in radians.[28] More generally, for allcomplex numbers:[29]sin(x)=xx33!+x55!x77!+=n=0(1)n(2n+1)!x2n+1{\displaystyle {\begin{aligned}\sin(x)&=x-{\frac {x^{3}}{3!}}+{\frac {x^{5}}{5!}}-{\frac {x^{7}}{7!}}+\cdots \\&=\sum _{n=0}^{\infty }{\frac {(-1)^{n}}{(2n+1)!}}x^{2n+1}\end{aligned}}}Taking the derivative of each term gives the Taylor series for cosine:[28][29]cos(x)=1x22!+x44!x66!+=n=0(1)n(2n)!x2n{\displaystyle {\begin{aligned}\cos(x)&=1-{\frac {x^{2}}{2!}}+{\frac {x^{4}}{4!}}-{\frac {x^{6}}{6!}}+\cdots \\&=\sum _{n=0}^{\infty }{\frac {(-1)^{n}}{(2n)!}}x^{2n}\end{aligned}}}

Both sine and cosine functions with multiple angles may appear as theirlinear combination, resulting in a polynomial. Such a polynomial is known as thetrigonometric polynomial. The trigonometric polynomial's ample applications may be acquired inits interpolation, and its extension of a periodic function known as theFourier series. Letan{\displaystyle a_{n}} andbn{\displaystyle b_{n}} be any coefficients, then the trigonometric polynomial of a degreeN{\displaystyle N}—denoted asT(x){\displaystyle T(x)}—is defined as:[30][31]T(x)=a0+n=1Nancos(nx)+n=1Nbnsin(nx).{\displaystyle T(x)=a_{0}+\sum _{n=1}^{N}a_{n}\cos(nx)+\sum _{n=1}^{N}b_{n}\sin(nx).}

Thetrigonometric series can be defined similarly analogous to the trigonometric polynomial, its infinite inversion. LetAn{\displaystyle A_{n}} andBn{\displaystyle B_{n}} be any coefficients, then the trigonometric series can be defined as:[32]12A0+n=1Ancos(nx)+Bnsin(nx).{\displaystyle {\frac {1}{2}}A_{0}+\sum _{n=1}^{\infty }A_{n}\cos(nx)+B_{n}\sin(nx).}In the case of a Fourier series with a given integrable functionf{\displaystyle f}, the coefficients of a trigonometric series are:[33]An=1π02πf(x)cos(nx)dx,Bn=1π02πf(x)sin(nx)dx.{\displaystyle {\begin{aligned}A_{n}&={\frac {1}{\pi }}\int _{0}^{2\pi }f(x)\cos(nx)\,dx,\\B_{n}&={\frac {1}{\pi }}\int _{0}^{2\pi }f(x)\sin(nx)\,dx.\end{aligned}}}

Complex numbers relationship

[edit]
This sectionneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources in this section. Unsourced material may be challenged and removed.(August 2024) (Learn how and when to remove this message)

Complex exponential function definitions

[edit]

Both sine and cosine can be extended further viacomplex number, a set of numbers composed of bothreal andimaginary numbers. For real numberθ{\displaystyle \theta }, the definition of both sine and cosine functions can be extended in acomplex plane in terms of anexponential function as follows:[34]sin(θ)=eiθeiθ2i,cos(θ)=eiθ+eiθ2,{\displaystyle {\begin{aligned}\sin(\theta )&={\frac {e^{i\theta }-e^{-i\theta }}{2i}},\\\cos(\theta )&={\frac {e^{i\theta }+e^{-i\theta }}{2}},\end{aligned}}}

Alternatively, both functions can be defined in terms ofEuler's formula:[34]eiθ=cos(θ)+isin(θ),eiθ=cos(θ)isin(θ).{\displaystyle {\begin{aligned}e^{i\theta }&=\cos(\theta )+i\sin(\theta ),\\e^{-i\theta }&=\cos(\theta )-i\sin(\theta ).\end{aligned}}}

When plotted on thecomplex plane, the functioneix{\displaystyle e^{ix}} for real values ofx{\displaystyle x} traces out theunit circle in the complex plane. Both sine and cosine functions may be simplified to the imaginary and real parts ofeiθ{\displaystyle e^{i\theta }} as:[35]sinθ=Im(eiθ),cosθ=Re(eiθ).{\displaystyle {\begin{aligned}\sin \theta &=\operatorname {Im} (e^{i\theta }),\\\cos \theta &=\operatorname {Re} (e^{i\theta }).\end{aligned}}}

Whenz=x+iy{\displaystyle z=x+iy} for real valuesx{\displaystyle x} andy{\displaystyle y}, wherei=1{\displaystyle i={\sqrt {-1}}}, both sine and cosine functions can be expressed in terms of real sines, cosines, andhyperbolic functions as:[citation needed]sinz=sinxcoshy+icosxsinhy,cosz=cosxcoshyisinxsinhy.{\displaystyle {\begin{aligned}\sin z&=\sin x\cosh y+i\cos x\sinh y,\\\cos z&=\cos x\cosh y-i\sin x\sinh y.\end{aligned}}}

Polar coordinates

[edit]
cos(θ){\displaystyle \cos(\theta )} andsin(θ){\displaystyle \sin(\theta )} are the real and imaginary parts ofeiθ{\displaystyle e^{i\theta }}.

Sine and cosine are used to connect the real and imaginary parts of acomplex number with itspolar coordinates(r,θ){\displaystyle (r,\theta )}:z=r(cos(θ)+isin(θ)),{\displaystyle z=r(\cos(\theta )+i\sin(\theta )),}and the real and imaginary parts areRe(z)=rcos(θ),Im(z)=rsin(θ),{\displaystyle {\begin{aligned}\operatorname {Re} (z)&=r\cos(\theta ),\\\operatorname {Im} (z)&=r\sin(\theta ),\end{aligned}}}wherer{\displaystyle r} andθ{\displaystyle \theta } represent the magnitude and angle of the complex numberz{\displaystyle z}.

For any real numberθ{\displaystyle \theta }, Euler's formula in terms of polar coordinates is stated asz=reiθ{\textstyle z=re^{i\theta }}.

Complex arguments

[edit]
Domain coloring of sin(z) in the complex plane. Brightness indicates absolute magnitude, hue represents complex argument.
Vector field rendering of sin(z)

Applying the series definition of the sine and cosine to a complex argument,z, gives:

sin(z)=n=0(1)n(2n+1)!z2n+1=eizeiz2i=sinh(iz)i=isinh(iz)cos(z)=n=0(1)n(2n)!z2n=eiz+eiz2=cosh(iz){\displaystyle {\begin{aligned}\sin(z)&=\sum _{n=0}^{\infty }{\frac {(-1)^{n}}{(2n+1)!}}z^{2n+1}\\&={\frac {e^{iz}-e^{-iz}}{2i}}\\&={\frac {\sinh \left(iz\right)}{i}}\\&=-i\sinh \left(iz\right)\\\cos(z)&=\sum _{n=0}^{\infty }{\frac {(-1)^{n}}{(2n)!}}z^{2n}\\&={\frac {e^{iz}+e^{-iz}}{2}}\\&=\cosh(iz)\\\end{aligned}}}

where sinh and cosh are thehyperbolic sine and cosine. These areentire functions.

It is also sometimes useful to express the complex sine and cosine functions in terms of the real and imaginary parts of its argument:

sin(x+iy)=sin(x)cos(iy)+cos(x)sin(iy)=sin(x)cosh(y)+icos(x)sinh(y)cos(x+iy)=cos(x)cos(iy)sin(x)sin(iy)=cos(x)cosh(y)isin(x)sinh(y){\displaystyle {\begin{aligned}\sin(x+iy)&=\sin(x)\cos(iy)+\cos(x)\sin(iy)\\&=\sin(x)\cosh(y)+i\cos(x)\sinh(y)\\\cos(x+iy)&=\cos(x)\cos(iy)-\sin(x)\sin(iy)\\&=\cos(x)\cosh(y)-i\sin(x)\sinh(y)\\\end{aligned}}}

Partial fraction and product expansions of complex sine

[edit]

Using the partial fraction expansion technique incomplex analysis, one can find that the infinite seriesn=(1)nzn=1z2zn=1(1)nn2z2{\displaystyle \sum _{n=-\infty }^{\infty }{\frac {(-1)^{n}}{z-n}}={\frac {1}{z}}-2z\sum _{n=1}^{\infty }{\frac {(-1)^{n}}{n^{2}-z^{2}}}}both converge and are equal toπsin(πz){\textstyle {\frac {\pi }{\sin(\pi z)}}}. Similarly, one can show thatπ2sin2(πz)=n=1(zn)2.{\displaystyle {\frac {\pi ^{2}}{\sin ^{2}(\pi z)}}=\sum _{n=-\infty }^{\infty }{\frac {1}{(z-n)^{2}}}.}

Using product expansion technique, one can derivesin(πz)=πzn=1(1z2n2).{\displaystyle \sin(\pi z)=\pi z\prod _{n=1}^{\infty }\left(1-{\frac {z^{2}}{n^{2}}}\right).}

Usage of complex sine

[edit]

sin(z) is found in thefunctional equation for theGamma function,

Γ(s)Γ(1s)=πsin(πs),{\displaystyle \Gamma (s)\Gamma (1-s)={\pi \over \sin(\pi s)},}

which in turn is found in thefunctional equation for theRiemann zeta-function,

ζ(s)=2(2π)s1Γ(1s)sin(π2s)ζ(1s).{\displaystyle \zeta (s)=2(2\pi )^{s-1}\Gamma (1-s)\sin \left({\frac {\pi }{2}}s\right)\zeta (1-s).}

As aholomorphic function, sinz is a 2D solution ofLaplace's equation:

Δu(x1,x2)=0.{\displaystyle \Delta u(x_{1},x_{2})=0.}

The complex sine function is also related to the level curves ofpendulums.[how?][36][better source needed]

Complex graphs

[edit]
Sine function in the complex plane
Real componentImaginary componentMagnitude


Arcsine function in the complex plane
Real componentImaginary componentMagnitude

Background

[edit]

Etymology

[edit]
Main article:History of trigonometry § Etymology

The wordsine is derived, indirectly, from theSanskrit wordjyā 'bow-string' or more specifically its synonymjīvá (both adopted fromAncient Greekχορδή 'string'), due to visual similarity between the arc of a circle with its corresponding chord and a bow with its string (seejyā, koti-jyā and utkrama-jyā). This wastransliterated inArabic asjība, which is meaningless in that language and written asjb (جب). Since Arabic is written without short vowels,jb was interpreted as thehomographjayb (جيب), which means 'bosom', 'pocket', or 'fold'.[37][38] When the Arabic texts ofAl-Battani andal-Khwārizmī were translated intoMedieval Latin in the 12th century byGerard of Cremona, he used the Latin equivalentsinus (which also means 'bay' or 'fold', and more specifically 'the hanging fold of atoga over the breast').[39][40][41] Gerard was probably not the first scholar to use this translation; Robert of Chester appears to have preceded him and there is evidence of even earlier usage.[42][43] The English formsine was introduced inThomas Fale's 1593Horologiographia.[44]

The wordcosine derives from an abbreviation of the Latincomplementi sinus 'sine of thecomplementary angle' ascosinus inEdmund Gunter'sCanon triangulorum (1620), which also includes a similar definition ofcotangens.[45]

History

[edit]
Main article:History of trigonometry
Quadrant from 1840sOttoman Turkey with axes for looking up the sine andversine of angles

While the early study of trigonometry can be traced to antiquity, thetrigonometric functions as they are in use today were developed in the medieval period. Thechord function was discovered byHipparchus ofNicaea (180–125 BCE) andPtolemy ofRoman Egypt (90–165 CE).[46]

The sine and cosine functions are closely related to thejyā andkoṭi-jyā functions used inIndian astronomy during theGupta period (Aryabhatiya andSurya Siddhanta), via translation from Sanskrit to Arabic and then from Arabic to Latin.[39][47]

All six trigonometric functions in current use were known inIslamic mathematics by the 9th century, as was thelaw of sines, used insolving triangles.[48]Al-Khwārizmī (c. 780–850) produced tables of sines, cosines and tangents.[49][50]Muhammad ibn Jābir al-Harrānī al-Battānī (853–929) discovered the reciprocal functions of secant and cosecant, and produced the first table of cosecants for each degree from 1° to 90°.[50]

In the early 17th-century, the French mathematicianAlbert Girard published the first use of the abbreviationssin,cos, andtan; these were further promulgated by Euler (see below). TheOpus palatinum de triangulis ofGeorg Joachim Rheticus, a student ofCopernicus, was probably the first in Europe to define trigonometric functions directly in terms of right triangles instead of circles, with tables for all six trigonometric functions; this work was finished by Rheticus' student Valentin Otho in 1596.

In a paper published in 1682,Leibniz proved that sinx is not analgebraic function ofx.[51]Roger Cotes computed the derivative of sine in hisHarmonia Mensurarum (1722).[52]Leonhard Euler'sIntroductio in analysin infinitorum (1748) was mostly responsible for establishing the analytic treatment of trigonometric functions in Europe, also defining them as infinite series and presenting "Euler's formula", as well as the near-modern abbreviationssin.,cos.,tang.,cot.,sec., andcosec.[39]

Software implementations

[edit]
This sectionneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources in this section. Unsourced material may be challenged and removed.(August 2024) (Learn how and when to remove this message)
See also:Lookup table § Computing sines

There is no standard algorithm for calculating sine and cosine.IEEE 754, the most widely used standard for the specification of reliable floating-point computation, does not address calculating trigonometric functions such as sine. The reason is that no efficient algorithm is known for computing sine and cosine with a specified accuracy, especially for large inputs.[53]

Algorithms for calculating sine may be balanced for such constraints as speed, accuracy, portability, or range of input values accepted. This can lead to different results for different algorithms, especially for special circumstances such as very large inputs, e.g.sin(1022).

A common programming optimization, used especially in 3D graphics, is to pre-calculate a table of sine values, for example one value per degree, then for values in-between pick the closest pre-calculated value, orlinearly interpolate between the 2 closest values to approximate it. This allows results to be looked up from a table rather than being calculated in real time. With modern CPU architectures this method may offer no advantage.[citation needed]

TheCORDIC algorithm is commonly used in scientific calculators.

The sine and cosine functions, along with other trigonometric functions, are widely available across programming languages and platforms. In computing, they are typically abbreviated tosin andcos.

Some CPU architectures have a built-in instruction for sine, including the Intel x87 FPUs since the 80387.

In programming languages,sin andcos are typically either a built-in function or found within the language's standard math library. For example, theC standard library defines sine functions withinmath.h:sin(double),sinf(float), andsinl(long double). The parameter of each is afloating point value, specifying the angle in radians. Each function returns the samedata type as it accepts. Many other trigonometric functions are also defined inmath.h, such as for cosine, arc sine, and hyperbolic sine (sinh). Similarly,Python definesmath.sin(x) andmath.cos(x) within the built-inmath module. Complex sine and cosine functions are also available within thecmath module, e.g.cmath.sin(z).CPython's math functions call theCmath library, and use adouble-precision floating-point format.

Turns based implementations

[edit]

Some software libraries provide implementations of sine and cosine using the input angle in half-turns, a half-turn being an angle of 180 degrees orπ{\displaystyle \pi } radians. Representing angles in turns or half-turns has accuracy advantages and efficiency advantages in some cases.[54][55] These functions are calledsinpi andcospi in MATLAB,[54] OpenCL,[56] R,[55] Julia,[57] CUDA,[58] and ARM.[59] For example,sinpi(x) would evaluate tosin(πx),{\displaystyle \sin(\pi x),} wherex is expressed in half-turns, and consequently the final input to the function,πx can be interpreted in radians bysin.

The accuracy advantage stems from the ability to perfectly represent key angles like full-turn, half-turn, and quarter-turn losslessly in binary floating-point or fixed-point. In contrast, representing2π{\displaystyle 2\pi },π{\displaystyle \pi }, andπ2{\textstyle {\frac {\pi }{2}}} in binary floating-point or binary scaled fixed-point always involves a loss of accuracy since irrational numbers cannot be represented with finitely many binary digits.

Turns also have an accuracy advantage and efficiency advantage for computing modulo to one period. Computing modulo 1 turn or modulo 2 half-turns can be losslessly and efficiently computed in both floating-point and fixed-point. For example, computing modulo 1 or modulo 2 for a binary point scaled fixed-point value requires only a bit shift or bitwise AND operation. In contrast, computing moduloπ2{\textstyle {\frac {\pi }{2}}} involves inaccuracies in representingπ2{\textstyle {\frac {\pi }{2}}}.

For applications involving angle sensors, the sensor typically provides angle measurements in a form directly compatible with turns or half-turns. For example, an angle sensor may count from 0 to 4096 over one complete revolution.[60] If half-turns are used as the unit for angle, then the value provided by the sensor directly and losslessly maps to a fixed-point data type with 11 bits to the right of the binary point. In contrast, if radians are used as the unit for storing the angle, then the inaccuracies and cost of multiplying the raw sensor integer by an approximation toπ2048{\textstyle {\frac {\pi }{2048}}} would be incurred.

See also

[edit]


References

[edit]

Footnotes

[edit]
  1. ^The superscript of −1 insin1{\displaystyle \sin ^{-1}} andcos1{\displaystyle \cos ^{-1}} denotes the inverse of a function, instead ofexponentiation.
  2. ^Here,sin2(x){\displaystyle \sin ^{2}(x)} means the squared sine functionsin(x)sin(x){\displaystyle \sin(x)\cdot \sin(x)}.

Citations

[edit]
  1. ^abcYoung (2017), p. 27.
  2. ^Young (2017), p. 36.
  3. ^Varberg, Purcell & Rigdon (2007), p. 42.
  4. ^Young (2017), p. 37,78.
  5. ^abAxler (2012), p. 634.
  6. ^Axler (2012), p. 632.
  7. ^Varberg, Purcell & Rigdon (2007), p. 41.
  8. ^Young (2017), p. 68.
  9. ^Varberg, Purcell & Rigdon (2007), p. 47.
  10. ^Varberg, Purcell & Rigdon (2007), p. 41–42.
  11. ^Varberg, Purcell & Rigdon (2007), p. 41, 43.
  12. ^Young (2012), p. 165.
  13. ^Varberg, Purcell & Rigdon (2007), p. 42, 47.
  14. ^"OEIS A003957".oeis.org. Retrieved2019-05-26.
  15. ^abBourchtein & Bourchtein (2022), p. 294.
  16. ^Varberg, Purcell & Rigdon (2007), p. 115.
  17. ^Varberg, Purcell & Rigdon (2007), p. 155.
  18. ^Varberg, Purcell & Rigdon (2007), p. 157.
  19. ^Varberg, Rigdon & Purcell (2007), p. 42. sfnp error: no target: CITEREFVarbergRigdonPurcell2007 (help)
  20. ^Varberg, Purcell & Rigdon (2007), p. 199.
  21. ^Vince (2023), p. 162.
  22. ^Adlaj (2012).
  23. ^Varberg, Purcell & Rigdon (2007), p. 366.
  24. ^Varberg, Purcell & Rigdon (2007), p. 365.
  25. ^Young (2017), p. 99.
  26. ^Dennis G. Zill (2013).Precalculus with Calculus Previews. Jones & Bartlett Publishers. p. 238.ISBN 978-1-4496-4515-1.Extract of page 238
  27. ^"Sine-squared function". RetrievedAugust 9, 2019.
  28. ^abVarberg, Purcell & Rigdon (2007), p. 491–492.
  29. ^abAbramowitz & Stegun (1970), p. 74.
  30. ^Powell (1981), p. 150.
  31. ^Rudin (1987), p. 88.
  32. ^Zygmund (1968), p. 1.
  33. ^Zygmund (1968), p. 11.
  34. ^abHowie (2003), p. 24.
  35. ^Rudin (1987), p. 2.
  36. ^"Why are the phase portrait of the simple plane pendulum and a domain coloring of sin(z) so similar?".math.stackexchange.com. Retrieved2019-08-12.
  37. ^Plofker (2009), p. 257.
  38. ^Maor (1998), p. 35.
  39. ^abcMerzbach & Boyer (2011).
  40. ^Maor (1998), p. 35–36.
  41. ^Katz (2008), p. 253.
  42. ^Smith (1958), p. 202.
  43. ^Various sources credit the first use ofsinus to eitherSeeMerlet (2004). SeeMaor (1998), Chapter 3, for an earlier etymology crediting Gerard. SeeKatz (2008), p. 210.
  44. ^Fale's book alternately uses the spellings "sine", "signe", or "sign".
    Fale, Thomas (1593).Horologiographia. The Art of Dialling: Teaching, an Easie and Perfect Way to make all Kindes of Dials ... London: F. Kingston. p. 11, for example.
  45. ^Gunter (1620).
  46. ^Brendan, T. (February 1965). "How Ptolemy constructed trigonometry tables".The Mathematics Teacher.58 (2):141–149.doi:10.5951/MT.58.2.0141.JSTOR 27967990.
  47. ^Van Brummelen, Glen (2009). "India".The Mathematics of the Heavens and the Earth. Princeton University Press. Ch. 3, pp. 94–134.ISBN 978-0-691-12973-0.
  48. ^Gingerich, Owen (1986)."Islamic Astronomy".Scientific American. Vol. 254. p. 74. Archived fromthe original on 2013-10-19. Retrieved2010-07-13.
  49. ^Jacques Sesiano, "Islamic mathematics", p. 157, inSelin, Helaine;D'Ambrosio, Ubiratan, eds. (2000).Mathematics Across Cultures: The History of Non-western Mathematics.Springer Science+Business Media.ISBN 978-1-4020-0260-1.
  50. ^ab"trigonometry". Encyclopedia Britannica. 17 June 2024.
  51. ^Nicolás Bourbaki (1994).Elements of the History of Mathematics. Springer.ISBN 9783540647676.
  52. ^"Why the sine has a simple derivativeArchived 2011-07-20 at theWayback Machine", inHistorical Notes for Calculus TeachersArchived 2011-07-20 at theWayback Machine byV. Frederick RickeyArchived 2011-07-20 at theWayback Machine
  53. ^Zimmermann (2006).
  54. ^ab"MATLAB Documentation sinpi
  55. ^ab"R Documentation sinpi
  56. ^"OpenCL Documentation sinpi
  57. ^"Julia Documentation sinpi
  58. ^"CUDA Documentation sinpi
  59. ^"ARM Documentation sinpi
  60. ^"ALLEGRO Angle Sensor DatasheetArchived 2019-04-17 at theWayback Machine

Works cited

[edit]

External links

[edit]
Look upsine in Wiktionary, the free dictionary.
Look upsine and cosine in Wiktionary, the free dictionary.
Trigonometric and hyperbolic functions
Groups
Other
Retrieved from "https://en.wikipedia.org/w/index.php?title=Sine_and_cosine&oldid=1281075910"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp