Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

三角関数

三角比

直角三角形は、内角θ\thetaの値を固定するとすべて相似な形となるため、x/rx/rやy/ry/rなどの辺の長さ同士の比は一定になる。

Source
<Figure size 400x300 with 1 Axes>

この値を三角比と呼び、角度θ\thetaの値によって決まるものとなる。

sin⁡θ=yrcos⁡θ=xrtan⁡θ=yx=sin⁡θcos⁡θ\sin \theta = \frac{y}{r}\\ \cos \theta = \frac{x}{r}\\ \tan \theta = \frac{y}{x} = \frac{\sin \theta}{\cos \theta}

三角関数

三角比の定義では、直角三角形の内角となりうる0∘0^\circから90∘90^\circの間の値しかとれないが、それ以外の値もとれるように定義を拡張したものが三角関数である。

単位円(半径r=1r=1の円)上において、sin⁡θ=y1=y,cos⁡θ=x1=x\sin \theta = \frac{y}{1} = y, \cos \theta = \frac{x}{1} = xとなり扱いやすい。

これを利用して、半径1、中心が原点OOの円(単位円)の円周上の点、xx軸の正の向きからの角度がθ\thetaの点のyy座標をsin⁡θ\sin \theta、xx座標をcos⁡θ\cos \thetaと定義する。

Source
<Figure size 500x500 with 1 Axes>
Source
<Figure size 600x200 with 1 Axes>
Source
<Figure size 600x200 with 1 Axes>

逆三角関数

三角関数の逆関数のことを逆三角関数という。

arcsin⁡x=sin⁡−1xarccos⁡x=cos⁡−1xarctan⁡x=tan⁡−1x\arcsin x = \sin^{-1} x\\ \arccos x = \cos^{-1} x\\ \arctan x = \tan^{-1} x\\
Source
<Figure size 200x300 with 1 Axes>

例:内積から角度を取り出す

cos⁡θ=a⋅b∥a∥∥b∥\cos \theta = \frac{\boldsymbol{a} \cdot \boldsymbol{b}}{\|\boldsymbol{a}\| \|\boldsymbol{b}\|}

で、ここでθ\thetaはラジアンであり、コサイン類似度cos⁡θ=0\cos \theta = 0のときはθ=arccos⁡θ=π2≈1.571\theta = \arccos \theta= \frac{\pi}{2} \approx 1.571

ラジアンを度(degree)に戻すにはdegree=θ×(180/π)degree = \theta \times (180 / \pi)

Source
<Figure size 640x480 with 1 Axes>
Source
<Figure size 1000x400 with 3 Axes>
Source
<Figure size 640x480 with 1 Axes>

bからaへ垂線をたらして射影したものの長さは∣∣b∣∣sin⁡θ||b|| \sin \thetaとなる。これは単位円におけるy=rsin⁡θy = r \sin \thetaに相当する(ノルム∣∣b∣∣||b||はベクトルの長さのため)

同様にx=rcos⁡θx = r \cos \thetaからy=∣∣b∣∣cos⁡θy = ||b|| \cos \thetaとなる

はずだが…?

1.7888543819998315 2.23606797749979
1.3416407864998743 1.4142135623730951

三角関数の基本的性質

一般に f(−x)=−f(x)f(-x)=-f(x) となる関数を 奇関数、 f(−x)=f(x)f(-x)=f(x) となる関数を 偶関数 という。

sin⁡x,tan⁡x\sin x, \tan x は奇関数, cos⁡x\cos x は偶関数である

sin⁡2θ=(yr)2=y2r2,cos⁡2θ=(xr)2=x2r2\sin^2 \theta = \left(\frac{y}{r}\right)^2 = \frac{y^2}{r^2} ,\quad \cos^2 \theta = \left(\frac{x}{r}\right)^2 = \frac{x^2}{r^2}
sin⁡2θ+cos⁡2θ=y2r2+x2r2=x2+y2r2\sin^2 \theta + \cos^2 \theta = \frac{y^2}{r^2} + \frac{x^2}{r^2} = \frac{x^2 + y^2}{r^2}

三平方の定理よりx2+y2=r2x^2 + y^2 = r^2なので

sin⁡2θ+cos⁡2θ=x2+y2r2=1\sin^2 \theta + \cos^2 \theta = \frac{x^2 + y^2}{r^2} = 1
証明
sin⁡2θ=sin⁡(θ+θ)=sin⁡θcos⁡θ+cos⁡θsin⁡θ(∵ 加法定理 )=2sin⁡θcos⁡θ\begin{aligned} \sin 2 \theta &= \sin (\theta+\theta) \\ &= \sin \theta \cos \theta+\cos \theta \sin \theta \quad (\because \text { 加法定理 })\\ &= 2 \sin \theta \cos \theta \end{aligned}
cos⁡2θ=cos⁡(θ+θ)=cos⁡θcos⁡θ−sin⁡θsin⁡θ(∵ 加法定理 )=cos⁡2θ−sin⁡2θ=2cos⁡2θ−1(∵ 相互関係 )=1−2sin⁡2θ(∵ 相互関係 )\begin{aligned} \cos 2 \theta &= \cos (\theta+\theta) \\ &= \cos \theta \cos \theta-\sin \theta \sin \theta \quad (\because \text { 加法定理 })\\ &= \cos ^2 \theta-\sin ^2 \theta \\ &= 2 \cos ^2 \theta-1 \quad (\because \text { 相互関係 }) \\ &= 1-2 \sin ^2 \theta \quad (\because \text { 相互関係 }) \end{aligned}
tan⁡2θ=tan⁡(θ+θ)=tan⁡θ+tan⁡θ1−tan⁡θ⋅tan⁡θ(∵ 加法定理 )=2tan⁡θ1−tan⁡2θ\begin{aligned} \tan 2 \theta &= \tan (\theta+\theta) \\ &= \frac{\tan \theta+\tan \theta}{1-\tan \theta \cdot \tan \theta} \quad (\because \text { 加法定理 })\\ &= \frac{2 \tan \theta}{1-\tan ^2 \theta} \end{aligned}