# 三角比と三角形の計量：正弦定理・余弦定理から Heron・Bretschneider の公式まで

> 三角比の 2 つの定義が一致することを確かめ、余弦定理・正弦定理（外接円の半径を含む形）・面積公式・Heron の公式・三角形の決定の解の個数・Stewart の定理・Bretschneider の公式・三角形の等周問題を、内積と行列式から証明する。
> https://rikai.mugen-giken.com/mathematics/hs-geometry/triangle-trigonometry

## 0. この記事の要点

三角形の 3 辺の長さが分かっているとき、角の大きさや面積はどうなるでしょうか。逆に、2 辺とその間の角が分かっているとき、残りの辺の長さはどうなるでしょうか。この記事は、三角形の辺・角・面積・外接円の間に成り立つ関係を、ベクトルの計算で一つずつ確かめていきます。読み終えると、測量のように「測れる量から測れない量を求める」公式が、なぜ成り立つのかを説明できるようになります。

- 三角比には 2 つの定義があります。直角三角形の辺の比と、単位円（半径 $r$ の半円）上の点の座標です。2 つが一致することを、前章までの[内積](/mathematics/hs-geometry/plane-vectors#def-dot-det)と三平方の定理から示します（<Ref to="prop-trig-ratio" />）。
- **余弦定理**は内積の展開、**面積公式** $S=\tfrac12bc\sin A$ は[行列式](/mathematics/hs-geometry/plane-vectors#def-dot-det)の言い換えです（<Ref to="thm-law-of-cosines" />、<Ref to="thm-area-sine" />）。**正弦定理**は、これに外接円の半径の公式 $R=\dfrac{abc}{4S}$ を合わせて得られます（<Ref to="lem-circumcircle" />、<Ref to="thm-law-of-sines" />）。
- 3 辺から面積を与える **Heron の公式**は、余弦定理と因数分解だけで出ます（<Ref to="thm-heron" />）。
- 2 辺と 1 つの対角から三角形を作るとき、解は 0・1・2 個になります。その分かれ目を判別式の言葉で完全に決めます（<Ref to="thm-triangle-determination" />）。
- 正接定理・Mollweide の公式・半角公式、Stewart の定理（中線定理の一般化）、四角形の面積の **Bretschneider の公式**、三角形の等周不等式（周が一定なら正三角形が面積最大）を証明します。
- 前章までは角を使わずに合同条件を証明しました。この章で初めて三角関数が主役になりますが、使うのは三角関数の定義と加法定理だけで、新しい幾何の公理は要りません。

<Aside type="tip" title="この記事で使う事前知識">

- **内積**: 2 つのベクトルから数を作る演算で、長さと、なす角の余弦に結びつくもの。→ [内積](/mathematics/hs-geometry/plane-vectors#def-dot-det)
- **符号付き面積**: 3 点が作る三角形の面積に、回る向きに応じた符号を付けたもの。→ [符号付き面積](/mathematics/hs-geometry/plane-vectors#def-signed-area)
- **向きつきの角**: 反時計回りを正として測る、ベクトルからベクトルへの角。→ [向きつきの角](/mathematics/hs-geometry/plane-vectors#def-oriented-angle)
- **余弦・正弦**: 単位円上の点の座標として現れる 2 つの関数。→ [一般角の三角関数](/mathematics/hs-analysis/trigonometric-functions#def-trig-unit-circle)
- **合同**: 形と大きさが同じで、重ね合わせられること。→ [合同](/mathematics/hs-geometry/congruence-and-similarity#def-congruence)
- **和積の公式・加法定理**: 正弦や余弦の和や差を、積に直す公式。→ [三角関数](/mathematics/hs-analysis/trigonometric-functions)

</Aside>

## 1. 動機 — 「辺の比」としての三角比を、定理にする

高校の数学 I では、直角三角形の辺の比として $\sin\theta=\dfrac{\text{対辺}}{\text{斜辺}}$ などを習い、後から $0^\circ\le\theta\le180^\circ$ に「拡張」されます。拡張のときには、半径 $r$ の半円上の点 $(x,y)$ について $\sin\theta=y/r$、$\cos\theta=x/r$ と定め直します。このとき自然な疑問が 2 つ出ます。

1. 鋭角では、2 つの定義は本当に同じ値を与えるのか。
2. 正弦定理 $\dfrac{a}{\sin A}=2R$ の「$2R$」はどこから来るのか。

この章は、前章までに作った道具（内積・行列式・合同条件・角の和）で、この 2 つの疑問に答えます。そのうえで、三角形の辺・角・面積・外接円の半径の間の公式を一通り証明します。

用語は前章までと同じです。三角形 $ABC$ で $a=|BC|$、$b=|CA|$、$c=|AB|$、$A,B,C$ は頂点での角（$\angle A=\angle BAC$ など）、$S$ は面積（$S=|S(A,B,C)|$）、$s=\dfrac{a+b+c}{2}$ は周の半分とします。三角関数 $\cos,\sin$ は級数で定義された関数（<Ref to="mathematics/hs-analysis/elementary-functions#def-cos-sin" />）で、基本性質は <Ref to="mathematics/hs-analysis/trigonometric-functions#prop-trig-basic" /> にあるものを使います。

## 2. 三角比の定義の一致

<Proposition id="prop-trig-ratio" title="三角比の 2 つの定義の一致">
1. 三角形 $ABC$ が $C$ で直角（$\overrightarrow{CA}\cdot\overrightarrow{CB}=0$）であるとき、$\theta=\angle A$ について
$$
\cos\theta=\frac{|AC|}{|AB|},\qquad\sin\theta=\frac{|BC|}{|AB|},\qquad\tan\theta=\frac{|BC|}{|AC|}
$$
が成り立つ。
2. 原点 $O$ と異なる点 $P=(x,y)$（$y\ge0$）について、$\theta=\angle(\boldsymbol e_1,\overrightarrow{OP})\in[0,\pi]$ とすると $x=|OP|\cos\theta$、$y=|OP|\sin\theta$ である。
</Proposition>

<Proof of="prop-trig-ratio">
1: $\overrightarrow{AB}=\overrightarrow{CB}-\overrightarrow{CA}$ と $\overrightarrow{CA}\cdot\overrightarrow{CB}=0$ から、前章の <Ref to="mathematics/hs-geometry/plane-vectors#thm-dot-properties" /> の 3 より $|AB|^2=|CB|^2+|CA|^2$（三平方の定理）である。また $\overrightarrow{AB}\cdot\overrightarrow{AC}=(\overrightarrow{CB}-\overrightarrow{CA})\cdot(-\overrightarrow{CA})=|CA|^2$ なので、なす角の定義（<Ref to="mathematics/hs-geometry/plane-vectors#def-vector-angle" />）から $\cos\theta=\dfrac{|AC|^2}{|AB||AC|}=\dfrac{|AC|}{|AB|}$。これは正なので $\theta\in[0,\pi/2)$ で、$\sin\theta\ge0$（<Ref to="mathematics/hs-analysis/elementary-functions#thm-periodicity" /> の 3）と $\sin^2\theta=1-\cos^2\theta=\dfrac{|AB|^2-|AC|^2}{|AB|^2}=\dfrac{|BC|^2}{|AB|^2}$ から $\sin\theta=\dfrac{|BC|}{|AB|}$。$\tan\theta=\sin\theta/\cos\theta$ も同様。

2: $r=|OP|$ として $\hat{\boldsymbol p}=\overrightarrow{OP}/r$ は単位ベクトルで、$\hat{\boldsymbol p}=e(\varphi)$ と書ける（<Ref to="mathematics/hs-analysis/elementary-functions#thm-unit-circle-param" />、$\varphi\in[0,2\pi)$）。$y\ge0$ なので $\sin\varphi\ge0$ で、$\varphi\in(\pi,2\pi)$ なら $\sin\varphi=-\sin(\varphi-\pi)<0$（同じ定理の 2 と 3）となって不適。したがって $\varphi\in[0,\pi]$ である。$\cos\angle(\boldsymbol e_1,\overrightarrow{OP})=\hat{\boldsymbol p}\cdot\boldsymbol e_1=\cos\varphi$ で、余弦は $[0,\pi]$ で単射なので $\theta=\varphi$。よって $x=r\cos\theta$、$y=r\sin\theta$ である。
</Proof>

1 は、直角三角形の辺の比が単位円の座標と同じ値を与えるという主張です。2 は、$0\le\theta\le\pi$ の範囲で「半円上の点の座標」による高校の定義を、そのまま認めてよいことを示します。さらに $\theta>\pi/2$ では、$\cos(\pi-\theta)=-\cos\theta$、$\sin(\pi-\theta)=\sin\theta$ （<Ref to="mathematics/hs-analysis/trigonometric-functions#prop-trig-basic" /> の 3）が成り立つので、鈍角の三角比は補角の三角比から求められます。

## 3. 余弦定理・第一余弦定理・面積公式

<Theorem id="thm-law-of-cosines" title="余弦定理">
三角形 $ABC$ について
$$
a^2=b^2+c^2-2bc\cos A,\qquad b^2=c^2+a^2-2ca\cos B,\qquad c^2=a^2+b^2-2ab\cos C
$$
である。
</Theorem>

<Proof of="thm-law-of-cosines">
前章の <Ref to="mathematics/hs-geometry/congruence-and-similarity#lem-cosine-formula" /> は $\cos A=\dfrac{b^2+c^2-a^2}{2bc}$ などを与える。分母を払えばよい。この補題の中身は、$a^2=|\overrightarrow{AC}-\overrightarrow{AB}|^2=b^2+c^2-2\overrightarrow{AB}\cdot\overrightarrow{AC}$ と $\overrightarrow{AB}\cdot\overrightarrow{AC}=bc\cos A$ である。
</Proof>

$C=\pi/2$ のとき $\cos C=0$ で、余弦定理は三平方の定理になります。

<Proposition id="prop-first-cosine" title="第一余弦定理（射影公式）">
三角形 $ABC$ について $a=b\cos C+c\cos B$、$b=c\cos A+a\cos C$、$c=a\cos B+b\cos A$ である。
</Proposition>

<Proof of="prop-first-cosine">
<Ref to="mathematics/hs-geometry/congruence-and-similarity#lem-cosine-formula" /> を使うと
$$
b\cos C+c\cos B=\frac{a^2+b^2-c^2}{2a}+\frac{a^2+c^2-b^2}{2a}=a.
$$
他の 2 式も同様に、$A,B,C$ を巡回させて得られる。
</Proof>

<Theorem id="thm-area-sine" title="三角形の面積公式">
三角形 $ABC$ の面積 $S$ は
$$
S=\tfrac12bc\sin A=\tfrac12ca\sin B=\tfrac12ab\sin C
$$
である。
</Theorem>

<Proof of="thm-area-sine">
前章の <Ref to="mathematics/hs-geometry/plane-vectors#prop-signed-area" /> の 5 により $S=\tfrac12|\det(\overrightarrow{AB},\overrightarrow{AC})|$ である。向きつきの角を $\theta=\operatorname{ang}(\overrightarrow{AB},\overrightarrow{AC})$ とすると、<Ref to="mathematics/hs-geometry/plane-vectors#prop-dot-cos" /> の 1 より $\det(\overrightarrow{AB},\overrightarrow{AC})=bc\sin\theta$ で、同 2 より $|\theta|=\angle A$ なので $|\sin\theta|=\sin|\theta|=\sin A$（$|\theta|\in[0,\pi]$ では $\sin\ge0$）。よって $S=\tfrac12bc\sin A$。他の 2 式は頂点の役割を取り替えれば同じである。
</Proof>

<Theorem id="thm-heron" title="Heron の公式">
三角形 $ABC$ の面積 $S$ は、$s=\dfrac{a+b+c}2$ として
$$
S=\sqrt{s(s-a)(s-b)(s-c)}
$$
である。
</Theorem>

<Proof of="thm-heron">
<Ref to="thm-area-sine" /> と <Ref to="thm-law-of-cosines" /> から
$$
16S^2=4b^2c^2\sin^2A=4b^2c^2-(2bc\cos A)^2=4b^2c^2-(b^2+c^2-a^2)^2.
$$
差の平方の因数分解を使うと、右辺は $\bigl(2bc-b^2-c^2+a^2\bigr)\bigl(2bc+b^2+c^2-a^2\bigr)=\bigl(a^2-(b-c)^2\bigr)\bigl((b+c)^2-a^2\bigr)$ で、さらに
$$
(a-b+c)(a+b-c)\cdot(b+c-a)(b+c+a)=2(s-b)\cdot2(s-c)\cdot2(s-a)\cdot2s=16\,s(s-a)(s-b)(s-c).
$$
$S>0$ なので平方根をとる。
</Proof>

<Example id="ex-heron-triangle" title="辺 13, 14, 15 の三角形">
$s=21$ で、$S=\sqrt{21\cdot8\cdot7\cdot6}=\sqrt{7056}=84$。このように辺も面積も整数になる三角形を Heron 三角形という（$3,4,5$ や $5,5,6$ もそうである）。余弦定理から $\cos C=\dfrac{13^2+14^2-15^2}{2\cdot13\cdot14}=\dfrac{140}{364}=\dfrac5{13}$ である（$C$ は辺 $15$ の対角）。
</Example>

## 4. 外接円と正弦定理

正弦定理の「$2R$」を、外接円の存在から示します。次の補題は、「3 頂点から等しい距離にある点」が本当に 1 つだけあることを、連立 1 次方程式を解いて確かめ、そのまま半径 $R$ を辺の長さと面積で表します。証明の後半の $J$ は、ベクトルを反時計回りに $90^\circ$ 回すだけの操作で、その解が方程式を満たすことを内積の計算で確かめています。

<Lemma id="lem-circumcircle" title="外接円の存在・一意性と半径の公式">
三角形 $ABC$ について、3 頂点から等しい距離にある点 $O$（**外心**）はただ 1 つ存在する。$R=|OA|$（**外接円の半径**）は
$$
R=\frac{abc}{4S}
$$
で与えられる。
</Lemma>

<Proof of="lem-circumcircle">
$\boldsymbol u=\overrightarrow{AB}$、$\boldsymbol w=\overrightarrow{AC}$、$D=\det(\boldsymbol u,\boldsymbol w)\ne0$、$\boldsymbol p=\overrightarrow{AO}$ とおく。$|OB|^2=|\boldsymbol p-\boldsymbol u|^2=|\boldsymbol p|^2-2\boldsymbol p\cdot\boldsymbol u+|\boldsymbol u|^2$ なので、$|OA|=|OB|$ は $2\boldsymbol p\cdot\boldsymbol u=|\boldsymbol u|^2$ と同値であり、同様に $|OA|=|OC|$ は $2\boldsymbol p\cdot\boldsymbol w=|\boldsymbol w|^2$ と同値である。この 2 つは $\boldsymbol p$ の成分についての連立 1 次方程式で、係数行列の行列式は $\det(\boldsymbol u,\boldsymbol w)=D\ne0$ なので、解がただ 1 つ存在する（行を $\boldsymbol u,\boldsymbol w$ とする係数行列の列を $\boldsymbol a'=(u_1,w_1)$、$\boldsymbol b'=(u_2,w_2)$ とおくと、方程式は $p_1\boldsymbol a'+p_2\boldsymbol b'=(\tfrac12|\boldsymbol u|^2,\tfrac12|\boldsymbol w|^2)$ の形で、$\det(\boldsymbol a',\boldsymbol b')=D\ne0$ だから <Ref to="mathematics/hs-geometry/plane-vectors#prop-plane-basis" /> が使える）。

$J=R(\pi/2)$（$J(x,y)=(-y,x)$）とおき、$\boldsymbol p=\dfrac{|\boldsymbol w|^2J\boldsymbol u-|\boldsymbol u|^2J\boldsymbol w}{2D}$ を確かめる。$J\boldsymbol u\cdot\boldsymbol u=0$、$J\boldsymbol w\cdot\boldsymbol u=-D$、$J\boldsymbol u\cdot\boldsymbol w=D$、$J\boldsymbol w\cdot\boldsymbol w=0$ なので、$\boldsymbol p\cdot\boldsymbol u=\dfrac{|\boldsymbol u|^2D}{2D}=\dfrac{|\boldsymbol u|^2}2$、$\boldsymbol p\cdot\boldsymbol w=\dfrac{|\boldsymbol w|^2D}{2D}=\dfrac{|\boldsymbol w|^2}2$ で、方程式を満たす。$J$ は内積を保つので（<Ref to="mathematics/hs-geometry/plane-vectors#prop-rotation-composition" /> の 2）$J\boldsymbol u\cdot J\boldsymbol w=\boldsymbol u\cdot\boldsymbol w$ で、
$$
R^2=|\boldsymbol p|^2=\frac{|\boldsymbol w|^4|\boldsymbol u|^2+|\boldsymbol u|^4|\boldsymbol w|^2-2|\boldsymbol u|^2|\boldsymbol w|^2\,\boldsymbol u\cdot\boldsymbol w}{4D^2}=\frac{|\boldsymbol u|^2|\boldsymbol w|^2\,|\boldsymbol u-\boldsymbol w|^2}{4D^2}=\frac{c^2b^2a^2}{4D^2}.
$$
$|D|=2S$ なので $R=\dfrac{abc}{2|D|}=\dfrac{abc}{4S}$ である。
</Proof>

<Theorem id="thm-law-of-sines" title="正弦定理">
三角形 $ABC$ の外接円の半径を $R$ とすると
$$
\frac{a}{\sin A}=\frac{b}{\sin B}=\frac{c}{\sin C}=2R
$$
である。
</Theorem>

<Proof of="thm-law-of-sines">
<Ref to="thm-area-sine" /> から $\sin A=\dfrac{2S}{bc}$ なので、$\dfrac{a}{\sin A}=\dfrac{abc}{2S}$。<Ref to="lem-circumcircle" /> により $\dfrac{abc}{2S}=2R$。$\sin B$、$\sin C$ についても同じ計算で $\dfrac{b}{\sin B}=\dfrac{c}{\sin C}=\dfrac{abc}{2S}$ である。
</Proof>

正弦定理から、$\sin A:\sin B:\sin C=a:b:c$ なので、前章の <Ref to="mathematics/hs-geometry/congruence-and-similarity#thm-side-angle" /> の主張（大きい辺に大きい角が対する）を、正弦で言い直すこともできます。

<Figure caption="外接円（中心 O、半径 R）と三角形 ABC。辺 a, b, c を対角の正弦で割ると、どれも 2R になる">
<svg viewBox="0 0 380 270" width="100%" role="img" aria-label="外接円と三角形">
  <circle cx="190" cy="140" r="100" fill="none" stroke="var(--sl-color-accent)" stroke-width="1.5" />
  <polygon points="173,41.5 103,189 277,189" fill="var(--sl-color-accent)" fill-opacity="0.12" stroke="currentColor" stroke-width="2" stroke-linejoin="round" />
  <line x1="190" y1="140" x2="173" y2="41.5" stroke="currentColor" stroke-width="1" stroke-dasharray="4 4" />
  <circle cx="190" cy="140" r="3" fill="currentColor" />
  <text x="196" y="150" font-size="14" fill="currentColor">O</text>
  <text x="176" y="36" font-size="14" fill="currentColor">A</text>
  <text x="86" y="204" font-size="14" fill="currentColor">B</text>
  <text x="282" y="204" font-size="14" fill="currentColor">C</text>
  <text x="182" y="212" font-size="13" fill="currentColor">a</text>
  <text x="232" y="106" font-size="13" fill="currentColor">b</text>
  <text x="124" y="108" font-size="13" fill="currentColor">c</text>
  <text x="168" y="92" font-size="13" fill="currentColor">R</text>
</svg>
</Figure>

<Example id="ex-law-of-sines-surveying" title="基線と 2 つの角から距離を求める（三角測量）">
2 地点 $A,B$ を結ぶ基線 $|AB|=c$ と、対岸の点 $C$ を見込む角 $A,B$ が測れたとする。$C=\pi-A-B$（<Ref to="mathematics/hs-geometry/congruence-and-similarity#thm-angle-sum" />）で、正弦定理から $|AC|=b=\dfrac{c\sin B}{\sin C}=\dfrac{c\sin B}{\sin(A+B)}$。たとえば $c=100$、$A=\pi/3$、$B=\pi/4$ なら、加法定理から $\sin(A+B)=\dfrac{\sqrt3}{2}\cdot\dfrac{\sqrt2}{2}+\dfrac12\cdot\dfrac{\sqrt2}{2}=\dfrac{\sqrt6+\sqrt2}{4}$ で、
$$
b=\frac{100\cdot\frac{\sqrt2}{2}}{\frac{\sqrt6+\sqrt2}{4}}=\frac{200\sqrt2}{\sqrt6+\sqrt2}=\frac{200\sqrt2(\sqrt6-\sqrt2)}{4}=100(\sqrt3-1)\approx73.2
$$
である。
</Example>

## 5. 三角形の決定

2 辺とその夾角（SAS）、3 辺（SSS）、1 辺と両端の角（ASA）は、前章の <Ref to="mathematics/hs-geometry/congruence-and-similarity#thm-sas" />、<Ref to="mathematics/hs-geometry/congruence-and-similarity#thm-sss" />、<Ref to="mathematics/hs-geometry/congruence-and-similarity#thm-asa" /> により三角形を（合同を除いて）ただ 1 つに決めます。決まらないのが「2 辺と夾角でない角（SSA）」です。解がいくつあるかを完全に決めます。なお夾角とは、2 辺にはさまれた角のことです。

次の定理の証明は、三角形の個数を、余弦定理から出てくる $c$ の 2 次方程式の正の解の個数に言い換えるのが方針です。あとは判別式と、解の和・積の符号で場合分けをします。

<Theorem id="thm-triangle-determination" title="2 辺と 1 つの対角から決まる三角形の個数">
$a,b>0$、$0<A<\pi$ を与える。$|BC|=a$、$|CA|=b$、$\angle A=A$ を満たす三角形 $ABC$ の個数（合同なものを同じとみなす）は、$k=b\sin A$ として次のとおりである。

| 条件 | 個数 |
|---|---|
| $a<k$ | $0$ |
| $a=k$ | $A<\pi/2$ なら $1$、$A\ge\pi/2$ なら $0$ |
| $k<a<b$ | $A<\pi/2$ なら $2$、$A\ge\pi/2$ なら $0$ |
| $a=b$ | $A<\pi/2$ なら $1$、$A\ge\pi/2$ なら $0$ |
| $a>b$ | $1$ |
</Theorem>

<Proof of="thm-triangle-determination">
そのような三角形があれば、$c=|AB|>0$ は余弦定理（<Ref to="thm-law-of-cosines" />）により
$$
c^2-2bc\cos A+b^2-a^2=0,\quad\text{すなわち}\quad(c-b\cos A)^2=a^2-b^2\sin^2A=a^2-k^2
$$
を満たす。逆に、この方程式の正の解 $c$ に対して、$a^2=b^2+c^2-2bc\cos A$ と $-1<\cos A<1$ から $(b-c)^2<a^2<(b+c)^2$、すなわち $|b-c|<a<b+c$ なので、<Ref to="mathematics/hs-geometry/congruence-and-similarity#thm-triangle-inequality-geo" /> により辺が $a,b,c$ の三角形が存在し、その $A$ での角の余弦は $\dfrac{b^2+c^2-a^2}{2bc}=\cos A$ なので角は $A$ である。異なる $c$ は合同でない三角形を与える。したがって個数は、$c$ についての方程式 $c^2-2b\cos A\,c+(b^2-a^2)=0$ の**正の解の個数**に等しい。解の和は $2b\cos A$、積は $b^2-a^2$ である。

- $a<k$: $a^2-k^2<0$ で実数解がない。個数 $0$。
- $a=k$: 重解 $c=b\cos A$。正であることは $\cos A>0$、すなわち $A<\pi/2$ と同値。
- $k<a<b$: 相異なる実数解が 2 つあり、積 $b^2-a^2>0$ なので同符号で、和 $2b\cos A$ の符号がそれらの符号である。$A<\pi/2$ なら 2 つとも正、$A\ge\pi/2$ なら 2 つとも正でない。
- $a=b$: 解は $c=0$ と $c=2b\cos A$。正の解は $\cos A>0$ のときの 1 つだけ。
- $a>b$: 積 $b^2-a^2<0$ なので解は異符号で、正の解はちょうど 1 つ。
</Proof>

<Example id="ex-ssa-count" title="2 辺と対角の問題で 2 つの三角形ができる例">
$b=4$、$A=\pi/6$（$k=2$）のとき、$a=3$ なら $k<a<b$ で 2 つ（$c=2\sqrt3\pm\sqrt5$）、$a=2$ なら $a=k$ で 1 つ（$c=2\sqrt3$、直角三角形）、$a=1$ なら 0 個、$a=5$ なら 1 つである。前章の <Ref to="mathematics/hs-geometry/congruence-and-similarity#ex-ssa-counterexample" /> の 2 つの三角形は、まさにこの「2 つ」の場合にあたる。
</Example>

## 6. 正接定理・Mollweide の公式・半角公式

三角関数の加法定理（<Ref to="mathematics/hs-analysis/elementary-functions#thm-addition-formulas" />）から、和積の公式 $\sin B+\sin C=2\sin\frac{B+C}2\cos\frac{B-C}2$、$\sin B-\sin C=2\cos\frac{B+C}2\sin\frac{B-C}2$ が得られます（<Ref to="mathematics/hs-analysis/trigonometric-functions#cor-product-sum" />）。

<Theorem id="thm-mollweide" title="Mollweide の公式">
三角形 $ABC$ について
$$
\frac{b-c}{a}=\frac{\sin\frac{B-C}{2}}{\cos\frac A2},\qquad\frac{b+c}{a}=\frac{\cos\frac{B-C}{2}}{\sin\frac A2}
$$
である。
</Theorem>

<Proof of="thm-mollweide">
正弦定理（<Ref to="thm-law-of-sines" />）から $b\mp c=2R(\sin B\mp\sin C)$、$a=2R\sin A$ なので、$\dfrac{b\pm c}{a}$ は $\dfrac{\sin B\pm\sin C}{\sin A}$ に等しい。$\sin A=2\sin\frac A2\cos\frac A2$（<Ref to="mathematics/hs-analysis/trigonometric-functions#cor-multiple-angle" /> の 1）と、<Ref to="mathematics/hs-geometry/congruence-and-similarity#thm-angle-sum" /> から得られる $\dfrac{B+C}2=\dfrac\pi2-\dfrac A2$ により、$\sin\frac{B+C}2=\cos\frac A2$、$\cos\frac{B+C}2=\sin\frac A2$（<Ref to="mathematics/hs-analysis/trigonometric-functions#prop-trig-basic" /> の 3）。和積の公式を使うと
$$
\frac{\sin B-\sin C}{\sin A}=\frac{2\sin\frac A2\sin\frac{B-C}2}{2\sin\frac A2\cos\frac A2}=\frac{\sin\frac{B-C}2}{\cos\frac A2},\qquad
\frac{\sin B+\sin C}{\sin A}=\frac{2\cos\frac A2\cos\frac{B-C}2}{2\sin\frac A2\cos\frac A2}=\frac{\cos\frac{B-C}2}{\sin\frac A2}.
$$
</Proof>

<Theorem id="thm-tangent-law" title="正接定理">
三角形 $ABC$ について
$$
\frac{b-c}{b+c}=\frac{\tan\frac{B-C}{2}}{\tan\frac{B+C}{2}}
$$
である。
</Theorem>

<Proof of="thm-tangent-law">
<Ref to="thm-mollweide" /> の 2 式の比をとると $\dfrac{b-c}{b+c}=\dfrac{\sin\frac{B-C}2}{\cos\frac{B-C}2}\cdot\dfrac{\sin\frac A2}{\cos\frac A2}=\tan\frac{B-C}2\tan\frac A2$（$|B-C|<\pi$ なので $\cos\frac{B-C}{2}>0$）。$\frac{B+C}2=\frac\pi2-\frac A2$ なので $\tan\frac{B+C}2=\dfrac{\cos\frac A2}{\sin\frac A2}=\dfrac{1}{\tan\frac A2}$（$0<\frac A2<\frac\pi2$）。よって $\tan\frac A2=\dfrac{1}{\tan\frac{B+C}2}$ を代入すればよい。
</Proof>

<Proposition id="prop-half-angle-triangle" title="半角公式">
三角形 $ABC$ について、$s=\dfrac{a+b+c}2$ とすると
$$
\sin\frac A2=\sqrt{\frac{(s-b)(s-c)}{bc}},\quad\cos\frac A2=\sqrt{\frac{s(s-a)}{bc}},\quad\tan\frac A2=\sqrt{\frac{(s-b)(s-c)}{s(s-a)}}=\frac{r}{s-a}
$$
である。ここで $r=\dfrac Ss=\sqrt{\dfrac{(s-a)(s-b)(s-c)}{s}}$。
</Proposition>

<Proof of="prop-half-angle-triangle">
半角の公式（<Ref to="mathematics/hs-analysis/trigonometric-functions#cor-multiple-angle" /> の 2）と余弦定理から
$$
\cos^2\frac A2=\frac{1+\cos A}2=\frac{2bc+b^2+c^2-a^2}{4bc}=\frac{(b+c)^2-a^2}{4bc}=\frac{(b+c-a)(b+c+a)}{4bc}=\frac{s(s-a)}{bc},
$$
$$
\sin^2\frac A2=\frac{1-\cos A}2=\frac{a^2-(b-c)^2}{4bc}=\frac{(a-b+c)(a+b-c)}{4bc}=\frac{(s-b)(s-c)}{bc}.
$$
$0<\frac A2<\frac\pi2$ なので正の平方根をとる（<Ref to="mathematics/hs-analysis/elementary-functions#thm-periodicity" /> の 3）。比をとって $\tan\frac A2$ を得る。最後の等号は、<Ref to="thm-heron" /> から $r=S/s=\sqrt{(s-a)(s-b)(s-c)/s}$ で、$\dfrac{r}{s-a}=\sqrt{\dfrac{(s-b)(s-c)}{s(s-a)}}$ となることによる。
</Proof>

$r=S/s$ は、後の章の[三角形の名定理](/mathematics/hs-geometry/triangle-theorems)で、内接円の半径（内心から各辺までの距離）と一致することを示します。ここでは $S/s$ という数の名前にすぎません。

## 7. Stewart の定理と Bretschneider の公式

後半の Bretschneider の公式は、四角形を対角線 $BD$ で 2 つの三角形に分け、各三角形に面積公式と余弦定理を使います。2 つの式を 2 乗して足すと、角 $A$ と $C$ の影響が $\cos(A+C)$ という一つの項にまとまる、というのが証明の筋道です。

<Theorem id="thm-stewart" title="Stewart の定理">
三角形 $ABC$ の辺 $BC$ 上の点 $D$ について、$m=|BD|$、$n=|DC|$、$d=|AD|$ とすると
$$
c^2n+b^2m=a(d^2+mn)
$$
である（$a=m+n$）。とくに $D$ が中点なら $b^2+c^2=2d^2+\dfrac{a^2}{2}$（中線定理）である。
</Theorem>

<Proof of="thm-stewart">
$D$ を原点にとり、$\boldsymbol e$ を $\overrightarrow{BC}$ 方向の単位ベクトル、$\boldsymbol x=\overrightarrow{DA}$（$|\boldsymbol x|=d$）とすると、$\overrightarrow{DB}=-m\boldsymbol e$、$\overrightarrow{DC}=n\boldsymbol e$ である。
$$
c^2=|\boldsymbol x+m\boldsymbol e|^2=d^2+2m\,\boldsymbol x\cdot\boldsymbol e+m^2,\qquad b^2=|\boldsymbol x-n\boldsymbol e|^2=d^2-2n\,\boldsymbol x\cdot\boldsymbol e+n^2.
$$
第 1 式に $n$、第 2 式に $m$ を掛けて足すと、$\boldsymbol x\cdot\boldsymbol e$ の項が消えて $c^2n+b^2m=(m+n)d^2+mn(m+n)=a(d^2+mn)$。中点なら $m=n=a/2$。
</Proof>

<Theorem id="thm-bretschneider" title="Bretschneider の公式">
凸四角形 $ABCD$（前章の <Ref to="mathematics/hs-geometry/congruence-and-similarity#def-convex-polygon" />、$n=4$）で、$a=|AB|$、$b=|BC|$、$c=|CD|$、$d=|DA|$、$s=\dfrac{a+b+c+d}2$ とし、頂点 $A,C$ での内角を $A,C$ とする。面積 $S$ について
$$
S^2=(s-a)(s-b)(s-c)(s-d)-abcd\cos^2\frac{A+C}{2}
$$
である。
</Theorem>

<Proof of="thm-bretschneider">
四角形は対角線 $BD$ で三角形 $ABD$ と $CBD$ に分かれ、2 つの三角形の共通部分は線分（面積 $0$）なので、面積は 2 つの三角形の面積の和である。$A,B,C,D$ は反時計回りの凸四角形なので、$S(A,B,D)$ と $S(B,C,D)$（添え字の順に取った 3 点）はどちらも正で、前章の <Ref to="mathematics/hs-geometry/plane-vectors#prop-signed-area" /> の 1 により和は $\tfrac12\bigl(\det(\boldsymbol a,\boldsymbol b)+\det(\boldsymbol b,\boldsymbol c)+\det(\boldsymbol c,\boldsymbol d)+\det(\boldsymbol d,\boldsymbol a)\bigr)$（$\det(\boldsymbol b,\boldsymbol d)+\det(\boldsymbol d,\boldsymbol b)=0$ による）である。同じ 1 を $S(A,B,C)+S(A,C,D)$ に使っても同じ式になるので、四角形の符号付き面積 $S(A,B,C,D)$ に等しい。<Ref to="thm-area-sine" /> を三角形 $ABD$（頂点 $A$ で辺 $a,d$）と $CBD$（頂点 $C$ で辺 $b,c$）に使うと
$$
2S=ad\sin A+bc\sin C.
$$
対角線 $BD$ の長さを、余弦定理（<Ref to="thm-law-of-cosines" />）で 2 通りに表すと $a^2+d^2-2ad\cos A=b^2+c^2-2bc\cos C$ なので、$\dfrac{a^2+d^2-b^2-c^2}{2}=ad\cos A-bc\cos C$。この 2 式を 2 乗して足すと、
$$
4S^2+\Bigl(\frac{a^2+d^2-b^2-c^2}{2}\Bigr)^2=a^2d^2+b^2c^2-2abcd\cos(A+C)
$$
（交差項は $2abcd(\sin A\sin C-\cos A\cos C)=-2abcd\cos(A+C)$）。$\cos(A+C)=2\cos^2\frac{A+C}2-1$（<Ref to="mathematics/hs-analysis/trigonometric-functions#cor-multiple-angle" /> の 1）を代入して整理すると
$$
16S^2=4(ad+bc)^2-(a^2+d^2-b^2-c^2)^2-16abcd\cos^2\frac{A+C}2.
$$
最初の 2 項は、差の平方の因数分解を 2 回使って $\bigl((b+c)^2-(a-d)^2\bigr)\bigl((a+d)^2-(b-c)^2\bigr)=16(s-a)(s-b)(s-c)(s-d)$ と変形できる（因子 $b+c-a+d=2(s-a)$ など）。
</Proof>

<Figure caption="四角形 ABCD を対角線 BD で三角形 ABD と CBD に分ける。辺は AB=a、BC=b、CD=c、DA=d で、証明では頂点 A と C の角を使う">
<svg viewBox="0 0 380 250" width="100%" role="img" aria-label="対角線 BD で分けた四角形 ABCD">
  <polygon points="60,200 290,200 330,70 110,40" fill="var(--sl-color-accent)" fill-opacity="0.12" stroke="currentColor" stroke-width="2" stroke-linejoin="round" />
  <line x1="290" y1="200" x2="110" y2="40" stroke="currentColor" stroke-width="1.5" stroke-dasharray="5 4" />
  <text x="42" y="214" font-size="14" fill="currentColor">A</text>
  <text x="294" y="216" font-size="14" fill="currentColor">B</text>
  <text x="336" y="70" font-size="14" fill="currentColor">C</text>
  <text x="96" y="32" font-size="14" fill="currentColor">D</text>
  <text x="170" y="218" font-size="13" fill="currentColor">a</text>
  <text x="322" y="140" font-size="13" fill="currentColor">b</text>
  <text x="224" y="48" font-size="13" fill="currentColor">c</text>
  <text x="72" y="124" font-size="13" fill="currentColor">d</text>
  <text x="80" y="190" font-size="13" fill="currentColor">A</text>
  <text x="300" y="92" font-size="13" fill="currentColor">C</text>
</svg>
</Figure>

対角の和が $\pi$（円に内接する四角形）のときは $\cos\frac{A+C}2=0$ で、Heron の公式の 4 辺版（Brahmagupta の公式）になります。それは円の幾何の章で、円に内接する四角形では対角の和が $\pi$ になることを示してから、[円の名定理](/mathematics/hs-geometry/circle-theorems)の <Ref to="mathematics/hs-geometry/circle-theorems#thm-brahmagupta-formula" text="Brahmagupta の公式" /> として得ます。

## 8. 三角形の等周問題

<Theorem id="thm-isoperimetric-triangle" title="周が一定の三角形で面積が最大のもの">
周の長さが $p$ の三角形の面積 $S$ は $S\le\dfrac{p^2}{12\sqrt3}$ を満たし、等号は正三角形のときに限る。
</Theorem>

<Proof of="thm-isoperimetric-triangle">
$s=p/2$、$x=s-a$、$y=s-b$、$z=s-c$ とおく。<Ref to="mathematics/hs-geometry/congruence-and-similarity#thm-triangle-inequality-geo" /> から $x,y,z>0$ で、$x+y+z=3s-(a+b+c)=s$。Heron の公式（<Ref to="thm-heron" />）から $S^2=s\,xyz$。相加相乗平均の不等式（<Ref to="mathematics/hs-algebra/identities-and-inequalities#thm-am-gm" />、$n=3$）により $xyz\le\bigl(\tfrac{x+y+z}{3}\bigr)^3=\dfrac{s^3}{27}$ で、等号は $x=y=z$（$a=b=c$）のときに限る。よって $S^2\le\dfrac{s^4}{27}$、$S\le\dfrac{s^2}{3\sqrt3}=\dfrac{p^2}{12\sqrt3}$ である。
</Proof>

<Remark id="rem-isoperimetric-general" title="一般の等周問題">
周の長さが一定の平面図形のうち、面積が最大のものは円である（等周不等式 $L^2\ge4\pi A$）。三角形の場合は上のように Heron の公式と相加相乗平均で証明できますが、一般の図形に対する証明（Steiner の対称化の議論、Hurwitz の Fourier 級数による証明）は高校の範囲を超えるので、ここでは扱いません。「周が一定の多角形で面積最大のものは正多角形」や「ディドの問題（海岸線と一定の長さの縄で囲む面積の最大化）」も同じ系統の話題です。歴史と証明の概説は、V. Blåsjö, “The Evolution of the Isoperimetric Problem”, *American Mathematical Monthly* 112 (2005) を参照してください。
</Remark>

## 9. 大学ではどこへ続くか

- **内積空間の余弦定理**。<Ref to="thm-law-of-cosines" /> は内積の展開 $|x-y|^2=|x|^2+|y|^2-2\langle x,y\rangle$ そのものです（[内積空間](/mathematics/linear-algebra/inner-product-spaces)）。関数空間でも、同じ式が角の定義を与えます。
- **球面三角法と空間図形**。平面三角形の公式は、球面三角形（後の[立体・球面・多面体](/mathematics/hs-geometry/solids-spheres-polyhedra)の章）では余弦定理が $\cos a=\cos b\cos c+\sin b\sin c\cos A$ の形になり、角の和が $\pi$ を超える分が面積になります。
- **外接円と円分体**。正弦定理の $2R$ は、複素平面では 1 の冪根と結びつき、[複素数平面と作図](/mathematics/hs-geometry/complex-plane)の章の正多角形の話題へ続きます。
- **凸最適化**。<Ref to="thm-isoperimetric-triangle" /> は、制約つきの最適化（Lagrange の乗数法、$\sqrt[3]{xyz}\le(x+y+z)/3$ の凸性）の最も簡単な例です。

## 10. 演習

<Exercise id="exr-sides-3-5-7" difficulty="標準">
辺の長さが $3,5,7$ の三角形について、最大の角、面積、外接円の半径を求めよ。
<Solution>
最大の角は最大の辺 $7$ の対角 $C$ で、<Ref to="thm-law-of-cosines" /> から $\cos C=\dfrac{9+25-49}{2\cdot3\cdot5}=-\dfrac12$、$C=\dfrac{2\pi}3$。面積は <Ref to="thm-area-sine" /> から $\tfrac12\cdot3\cdot5\sin\dfrac{2\pi}3=\dfrac{15\sqrt3}4$（Heron の公式 <Ref to="thm-heron" /> でも $s=\tfrac{15}2$、$\sqrt{\tfrac{15}2\cdot\tfrac92\cdot\tfrac52\cdot\tfrac12}=\tfrac{15\sqrt3}{4}$）。外接円の半径は <Ref to="thm-law-of-sines" /> から $R=\dfrac{7}{2\sin(2\pi/3)}=\dfrac7{\sqrt3}$。確かめとして $\dfrac{abc}{4S}=\dfrac{105}{15\sqrt3}=\dfrac7{\sqrt3}$。
</Solution>
</Exercise>

<Exercise id="exr-ssa-count-three" difficulty="標準">
$b=4$、$A=\dfrac\pi6$ のとき、$a=3$ で $c$ の値をすべて求め、2 つの三角形の面積をそれぞれ求めよ。
<Solution>
<Ref to="thm-triangle-determination" /> の証明の方程式は $c^2-4\sqrt3\,c+7=0$ で、$c=2\sqrt3\pm\sqrt5$。どちらも正である。面積は $\tfrac12bc\sin A=c$ なので、$2\sqrt3+\sqrt5$ と $2\sqrt3-\sqrt5$ である。
</Solution>
</Exercise>

<Exercise id="exr-stewart-cevian" difficulty="標準">
辺の長さが $|AB|=8$、$|AC|=6$、$|BC|=10$ の三角形で、辺 $BC$ 上に $|BD|=4$ となる点 $D$ をとる。$|AD|$ を求めよ。
<Solution>
$m=4$、$n=6$、$c=8$、$b=6$、$a=10$ として <Ref to="thm-stewart" /> を使うと $64\cdot6+36\cdot4=10(d^2+24)$、すなわち $528=10d^2+240$ で $d^2=\dfrac{144}5$、$d=\dfrac{12}{\sqrt5}$。（$AB^2+AC^2=BC^2$ なので $A$ は直角で、座標 $A=(0,0)$、$B=(8,0)$、$C=(0,6)$ で $D=(4.8,2.4)$ から $AD^2=23.04+5.76=28.8$ と確かめられる。）
</Solution>
</Exercise>

<Exercise id="exr-bretschneider-rectangle" difficulty="易">
<Ref to="thm-bretschneider" /> を、辺が $3,4,3,4$ の長方形（$A=C=\pi/2$）に適用して、面積が $12$ であることを確かめよ。
<Solution>
$s=7$ で $(s-a)(s-b)(s-c)(s-d)=4\cdot3\cdot4\cdot3=144$。$\dfrac{A+C}2=\dfrac\pi2$ で $\cos\dfrac\pi2=0$ なので $S^2=144$、$S=12=3\cdot4$ である。
</Solution>
</Exercise>

## 参考文献

- H. S. M. Coxeter, S. L. Greitzer, *Geometry Revisited*, Mathematical Association of America, 1967 — 第 1 章（三角形に関する点と直線）。
- Robin Hartshorne, *Geometry: Euclid and Beyond*, Springer, 2000 — 平面幾何と三角法の関係。
- Roger A. Johnson, *Advanced Euclidean Geometry*, Dover, 2007 — 三角形の計量（正接定理・Mollweide の公式・Stewart の定理など）の古典的な整理。
- Viktor Blåsjö, “The Evolution of the Isoperimetric Problem”, *American Mathematical Monthly* 112 (2005) — 一般の等周問題の歴史と証明。
