Hornafræði er svið innan flatarmálsfræði og stærðfræðinnar sem fjallar um þríhyrninga. Hornafræðin fjallar um tengslin milli hliða og horna þríhyrninga.
Þríhyrningur
Til eru nokkur hornaföll, þau heita sínus, kósínus, tangens, kótangens, sekant og kósekant.
Hornafallareglur:
![{\displaystyle \sin(x\pm y)=\sin x\cos y\pm \cos x\sin y\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/5c998b7d2259da0045a4a4a1f9ccac2edeac4b9d)
![{\displaystyle \cos(x\pm y)=\cos x\cos y\pm \sin x\sin y\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/e9215120e1bf6a31354afd7683d486088e605afe)
Og ...
![{\displaystyle \sin ^{2}x+\cos ^{2}x=1\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/7cc492f3ceeb067e2ba8264304aad9a7c1a09910)
![{\displaystyle \sin \left(2x\right)=2\sin x\cos x\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/05c23b93523fdcdac039323428399e4690b27f11)
![{\displaystyle \cos \left(2x\right)=\cos ^{2}x-\sin ^{2}x\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/4329614e45d82491e4cf1faf4c2ded982b5c909d)
![{\displaystyle \tan ^{2}x=\sec ^{2}x-1\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/753328ca42b1f7648369a034a8be63ce90bd3700)