餘弦(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)
這個定理也可以通過把三角形分為兩個直角三角形來證明。餘弦定律用於在一個三角形的兩個邊和一個角已知時確定未知的數據。
如果這個角不包含在這兩個邊之間,三角形可能不是唯一的(邊-邊-角全等歧義)。小心餘弦定律的這種歧義情況。
參見