余弦(cosine)是三角函数的一种。它的定义域是整个实数集,值域是
。它是周期函数,其最小正周期为
(360°)。在自变量为
(或
,其中
为整数)时,该函数有极大值1;在自变量为
(
)时,该函数有极小值-1。余弦函数是偶函数,其图像关于y轴对称。
符号说明
余弦的符号为
,取自拉丁文cosinus。该符号最早由瑞士数学家莱昂哈德·欧拉所采用。
定义
直角三角形中
直角三角形,∠C為直角,∠A 的角度為
, 對於 ∠A 而言,a為對邊、b為鄰邊、c為斜邊
在直角三角形中,一个锐角
的余弦定义为它的邻边与斜边的比值,也就是:
![{\displaystyle \cos \theta ={\frac {\mathrm {b} }{\mathrm {c} }}\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/ced1ca8471a7c7acb7922abd842835f8984c6973)
可以發現其定義和正割函數互為倒數。
直角坐标系中
设
是平面直角坐标系xOy中的一个象限角,
是角的终边上一点,
是P到原点O的距离,则
的余弦定义为:
![{\displaystyle \cos \alpha ={\frac {x}{r}}\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/a01c2d28e84a9c695d9f3db316d0877288cd131c)
单位圆定义
单位圆
图像中给出了用弧度度量的某个公共角。逆时针方向的度量是正角,而顺时针的度量是负角。设一个过原点的线,同x轴正半部分得到一个角
,并与单位圆相交。这个交点的y坐标等于
。
在这个图形中的三角形确保了这个公式;半径等于斜边并有长度1,所以有了
。单位圆可以被认为是通过改变邻边和对边的长度并保持斜边等于1查看无限数目的三角形的一种方式。
对于大于
(360°)或小于
(-360°)的角度,简单的继续绕单位圆旋转。在这种方式下,余弦变成了周期为
(360°)的周期函数:
![{\displaystyle \cos \theta =\cos \left(\theta +2\pi k\right)=\cos \left(\theta +360^{\circ }k\right)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/890d331b9b82bca50f57c4bca35a36817dd786d1)
对于任何角度
和任何整数
。
级数定义
![{\displaystyle \cos x=1-{\frac {x^{2}}{2!}}+{\frac {x^{4}}{4!}}-{\frac {x^{6}}{6!}}+\cdots =\sum _{n=0}^{\infty }{\frac {(-1)^{n}x^{2n}}{(2n)!}}\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/0fd03aa4b31293710a5c6bc9825df5f0ee835353)
微分方程定义
由于余弦的导数是负的正弦,正弦的导数是余弦,因此余弦函数满足初值問題
![{\displaystyle y''=-y,\,y(0)=1,\,y'(0)=0}](https://wikimedia.org/api/rest_v1/media/math/render/svg/d4916bcf6582fab174284704229897bcce47322e)
这就是余弦的微分方程定义。
指数定义
![{\displaystyle \cos \theta ={\frac {e^{i\theta }+e^{-i\theta }}{2}}\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/2f10f65efa4b0dd86f73eca44a5b3f605148e19a)
恒等式
用其它三角函数来表示余弦
函数
|
sin
|
cos
|
tan
|
csc
|
sec
|
cot
|
|
|
|
|
|
|
|
两角和差公式
![{\displaystyle \cos \left(x+y\right)=\cos x\cos y-\sin x\sin y}](https://wikimedia.org/api/rest_v1/media/math/render/svg/4d6c1f8820258d3db350d332f76ccd8b12a3900c)
![{\displaystyle \cos \left(x-y\right)=\cos x\cos y+\sin x\sin y}](https://wikimedia.org/api/rest_v1/media/math/render/svg/8ef8ff180ff764621c697ccbce00d1f9042abf8b)
二倍角公式
![{\displaystyle \cos(2\theta )=\cos ^{2}\theta -\sin ^{2}\theta =2\cos ^{2}\theta -1=1-2\sin ^{2}\theta }](https://wikimedia.org/api/rest_v1/media/math/render/svg/bf0552bdff2489f6581d000ebb25f501d6291a00)
三倍角公式
![{\displaystyle \cos 3\theta =4\cos ^{3}\theta -3\cos \theta \,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/e005910f2963beb3ad6ee3831c244398b0c7d24f)
半角公式
![{\displaystyle \cos {\frac {\theta }{2}}=\pm \,{\sqrt {\frac {1+\cos \theta }{2}}}.\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/fbd3ea17c24b2512f263d0c2792ffb0bc597f274)
幂简约公式
![{\displaystyle \cos ^{2}\theta ={\frac {1+\cos 2\theta }{2}}\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/d4fa50d468d991e54ce08385833801b876339ec9)
![{\displaystyle \cos ^{3}\theta ={\frac {3\cos \theta +\cos 3\theta }{4}}\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/2ffc4f85c2d3887ccffb7f017fa13cd0cbee036f)
和差化积公式
![{\displaystyle \cos \theta +\cos \phi =2\cos \left({\frac {\theta +\phi }{2}}\right)\cos \left({\frac {\theta -\phi }{2}}\right)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/1e09155004c19d563a2e6efc448e8a23ca66f63c)
![{\displaystyle \cos \theta -\cos \phi =-2\sin \left({\theta +\phi \over 2}\right)\sin \left({\theta -\phi \over 2}\right)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/7cf22db61db2932f000e496dfd3a6f969f83d402)
万能公式
![{\displaystyle \cos \alpha ={\frac {1-\tan ^{2}{\frac {\alpha }{2}}}{1+\tan ^{2}{\frac {\alpha }{2}}}}\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/7441fbdc780dc96e498160cfbda4ace7eabb5ab0)
含有余弦的积分
![{\displaystyle \int \cos cx\;dx={\frac {1}{c}}\sin cx\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/cd5a071bc63ba7f827d559d720b4e5ef34b64d48)
![{\displaystyle \int \cos ^{n}cx\;dx={\frac {\cos ^{n-1}cx\sin cx}{nc}}+{\frac {n-1}{n}}\int \cos ^{n-2}cx\;dx\qquad {\mbox{(}}n>0{\mbox{)}}\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/970d60b0e87421f02cfaa5672e6ce8a23aece7f7)
![{\displaystyle \int x\cos cx\;dx={\frac {\cos cx}{c^{2}}}+{\frac {x\sin cx}{c}}\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/7c5fc103923703bd335b87b1bffc18e6ed72832e)
![{\displaystyle \int x^{n}\cos cx\;dx={\frac {x^{n}\sin cx}{c}}-{\frac {n}{c}}\int x^{n-1}\sin cx\;dx\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/593a0631f1f6c5d29a40eed7e6035a515ff8e3d6)
![{\displaystyle \int _{\frac {-a}{2}}^{\frac {a}{2}}x^{2}\cos ^{2}{\frac {n\pi x}{a}}\;dx={\frac {a^{3}(n^{2}\pi ^{2}-6)}{24n^{2}\pi ^{2}}}\qquad {\mbox{(}}n=1,3,5...{\mbox{)}}\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/6daaf46dda633fcab2732530494a5d13379811d9)
![{\displaystyle \int {\frac {\cos cx}{x}}dx=\ln |cx|+\sum _{i=1}^{\infty }(-1)^{i}{\frac {(cx)^{2i}}{2i\cdot (2i)!}}\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/babee406174e7983169482bebe8d2f7b8f05a2f6)
![{\displaystyle \int {\frac {\cos cx}{x^{n}}}dx=-{\frac {\cos cx}{(n-1)x^{n-1}}}-{\frac {c}{n-1}}\int {\frac {\sin cx}{x^{n-1}}}dx\qquad {\mbox{(}}n\neq 1{\mbox{)}}\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/3a003beb101a0d8ff3efbffc7d465d3841654472)
![{\displaystyle \int {\frac {dx}{\cos cx}}={\frac {1}{c}}\ln \left|\tan \left({\frac {cx}{2}}+{\frac {\pi }{4}}\right)\right|}](https://wikimedia.org/api/rest_v1/media/math/render/svg/136d5e28887252d271d77638ae7c15b2b32c09f6)
![{\displaystyle \int {\frac {dx}{\cos ^{n}cx}}={\frac {\sin cx}{c(n-1)cos^{n-1}cx}}+{\frac {n-2}{n-1}}\int {\frac {dx}{\cos ^{n-2}cx}}\qquad {\mbox{(}}n>1{\mbox{)}}\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/2f94cbd2eafb3809e77a15be3725340ce84c39cc)
![{\displaystyle \int {\frac {dx}{1+\cos cx}}={\frac {1}{c}}\tan {\frac {cx}{2}}\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/478322b4056d8192a77bc75153738e2508453aa6)
![{\displaystyle \int {\frac {dx}{1-\cos cx}}=-{\frac {1}{c}}\cot {\frac {cx}{2}}\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/24e320bd9d4ec7e20248bbb72a2ab04ea060355c)
![{\displaystyle \int {\frac {x\;dx}{1+\cos cx}}={\frac {x}{c}}\tan {\frac {cx}{2}}+{\frac {2}{c^{2}}}\ln \left|\cos {\frac {cx}{2}}\right|}](https://wikimedia.org/api/rest_v1/media/math/render/svg/2d18ff5f4712370e7b333e04b0220acba13840b0)
![{\displaystyle \int {\frac {x\;dx}{1-\cos cx}}=-{\frac {x}{c}}\cot {\frac {cx}{2}}+{\frac {2}{c^{2}}}\ln \left|\sin {\frac {cx}{2}}\right|}](https://wikimedia.org/api/rest_v1/media/math/render/svg/62d94b8fcbba8f323b79bc40238f50ced144f145)
![{\displaystyle \int {\frac {\cos cx\;dx}{1+\cos cx}}=x-{\frac {1}{c}}\tan {\frac {cx}{2}}\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/b785bd70c86d08bbb26514f8f2e5d5302886c140)
![{\displaystyle \int {\frac {\cos cx\;dx}{1-\cos cx}}=-x-{\frac {1}{c}}\cot {\frac {cx}{2}}\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/c5924bce1ec5d6eae2f8ff87b166bea8199d3b46)
![{\displaystyle \int \cos c_{1}x\cos c_{2}x\;dx={\frac {\sin(c_{1}-c_{2})x}{2(c_{1}-c_{2})}}+{\frac {\sin(c_{1}+c_{2})x}{2(c_{1}+c_{2})}}\qquad {\mbox{(}}|c_{1}|\neq |c_{2}|{\mbox{)}}\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/8301ccd0d7f33818448d32bdb0bb9d34350a8697)
特殊值
弳度
|
|
|
|
|
|
|
|
|
|
|
|
角度
|
|
|
|
|
|
|
|
|
|
|
|
cos
|
|
|
|
|
|
|
|
|
|
|
|
角度
|
|
|
|
|
|
cos
|
|
|
|
|
|
余弦定理
余弦定理(也叫做余弦公式)是勾股定理的扩展:
![{\displaystyle c^{2}=a^{2}+b^{2}-2ab\cos C\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/7c5f4795efade2b94b3e89df23c25488cd9ea6de)
也表示为:
![{\displaystyle \cos C={\frac {a^{2}+b^{2}-c^{2}}{2ab}}\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/4376c7f93bd1369f44b2e0566b8fc2fadb56b03e)
这个定理也可以通过把三角形分为两个直角三角形来证明。余弦定律用于在一个三角形的两个边和一个角已知时确定未知的数据。
如果这个角不包含在这两个边之间,三角形可能不是唯一的(边-边-角全等歧义)。小心余弦定律的这种歧义情况。
參見