Trigonometry#
Angles#
Angle Type |
Size of Angle |
---|---|
Acute Angle |
\(0^\circ < \theta < 90^\circ\) |
Right Angle |
\(\theta = 90^\circ\) |
Obtuse Angle |
\(90^\circ < \theta < 180^\circ\) |
Straight Line |
\(\theta = 180^\circ\) |
Reflex Angle |
\(180^\circ < \theta < 360^\circ\) |
Full Circle |
\(\theta < 360^\circ\) |

Radians#
We often use degrees to measure angles, however, we have another measurement of angles called radians. Instead of splitting the full circle into 360°, it is split into 2π radians. We must use radians in calculus (differentiation and integration), complex numbers and polar coordinates. This may seem new and complicated at first, however, it is no different to thinking that we could measure length in miles or metres.
Below, we have a full circle, showing some angles in degrees and what they are in radians.

We may wish to convert between degree and radians. In order to turn \(x^\circ\) degrees into radians, we use the formula:
In order to convert \(x\) radians into degrees, we use rearrange the formula:
Example
Convert the following:
\(60^\circ\) into radians.
\(\frac{3\pi}{8}\) radians to degrees.
Solution:
\(\frac{x^\circ}{360^\circ} \times 2\pi = \frac{60^\circ}{360^\circ} \times 2\pi = \frac{\pi}{3}\;\textrm{rad}\)
\(\frac{x}{2\pi} \times 360^\circ = \frac{\left(\frac{3\pi}{8}\right)}{2\pi} \times 360^\circ = \frac{3}{16} \times 360^\circ = 67.5^\circ\)
The pint
library has the ability to perform this unit conversion.
from numpy import pi
from pint import UnitRegistry
ureg = UnitRegistry()
(60 * ureg.degree).to(ureg.radian)
(3 * pi / 8 * ureg.radian).to(ureg.degree)
Right-Angle Triangles#

As shown in the diagram above, when given a right-angled triangle with one of the non-right angles labelled &\theta;, then we label the sides as follows:
The longest side is called the hypotenuse, this is always the side opposite the right angle.
The side that is opposite the angle θ is called the opposite. The side that is next to the angle θ is call the adjacent.
Pythagoras’ Theorem#
Pythagoras’ theroem relates only to right-angled triangles. So given a right-angled triangle, such as the one below, it states:
where \(c\) is the length of the hypotheuse and \(a\) and \(b\) are the lengths of the other two sides of the triangle.

Example
Find the length of \(x\) and \(y\) in the following triangles
Solution:
Using Pythagoras’ Theorem we know that, since \(x\) is the hypotenuse,
Using Pythagoras’ Theorem we know that,
Crystalline Distances
Below is the structure of solid sodium chloride (sodium in blue, chloride in black). If the distance between the centres of adjacent chlroide and sodium ions is 278 pm, what is the next shortest distance between such ions? i.e., what is the length of the red dashed line?
Solution: First we consider the triangle from the cube lattice above, with lengths \(a\), \(b\), and \(c\). This is a right-angled triangle, shown below on the left, so we can apply Pythagoras’ Theorem.
We know from the question tht the distance between adjacent chloride and sodium ions is 278 pm, so \(a = b = 278\;\textrm{pm}\). So we have, using Pythagoras’ Theorem,
Now, consider the triangle from the cube lattice with lengths \(c\), \(d\), \(e\). This is a right-angled triangle, shown above on the right, so we can again apply Pythagoras’ Theorem.
We know from the question that the distance between adjacent chloride and sodium ions is 278 pm, so \(d=278\;\textrm{pm}\) and from our previous calculations, we know \(c=393\;\textrm{pm}\). So we have, using Pythagoras Theorem,
SOHCAHTOA#

Given our right-angled triangle, we start by defining sine, cosine, and tangent, before reviewing what their graphs look like.
Sine Function#
We define sine as the ratio of the opposite to the hypotenuse.
Part of the graph of \(y=\sin(\theta)\) is shown below.

Cosine Function#
We define cosine as the ratio of the adjacent to the hypotenuse.
Part of the graph of \(y=\cos(\theta)\) is shown below.

Tangent Function#
We define tangent as the ratio of the opposite to the adjacent.
This leads to the relationship \(\tan{\theta} = \frac{\sin{\theta}}{\cos{\theta}}\) shown below:
The graph of \(y=\tan(\theta)\) is shown below.

The definition of sine, cosine, and tangent are often more easily remembered as SOHCAHTOA. We can use the formulas in SOHCAHTOA to calculate the size of angles and the lengths of sides in right-angled triangles.
Example
Using SOHCAHTOA, find the lengths of \(x\), \(y\), and \(z\), in the right-angled triangles below.
Solution: For shorthand, we have used \(\textrm{H}\) to denote hypotenuse, \(\textrm{O}\) the opposite, and \(\textrm{A}\) the adjacent.
We know the length of the hypotenuse and wish to find the opposite, hence we need to use:
\[ \sin(\theta) = \frac{\textrm{O}}{\textrm{H}} \Rightarrow \sin(30^\circ) = \frac{\textrm{O}}{3} \Rightarrow \textrm{O} = \sin(30^\circ) \times 3 = \frac{3}{2} \]We know the length of the adjacent and wish to find the opposite, hence we need to use:
\[ \tan(\theta) = \frac{\textrm{O}}{\textrm{A}} \Rightarrow \tan(30^\circ) = \frac{\textrm{O}}{7} \Rightarrow \tan(30^\circ)\times 7 = \frac{7\sqrt{3}}{3} \]We know the length of the adjacent are wish to find the hypotenuse, hence we need to use:
\[ \cos(\theta) = \frac{\mathrm{A}}{\mathrm{H}} \Rightarrow \cos\left(\frac{\pi}{4}\right) = \frac{6}{\textrm{H}} \Rightarrow \textrm{H} = \frac{6}{\cos\left(\frac{\pi}{4}\right)} = 6\sqrt{2} \]
We can use Python to help us with these computations.
np.sin(np.radians(30)) * 3
1.4999999999999998
np.tan(np.radians(30)) * 7
4.04145188432738
6 / np.cos(np.pi / 4)
8.48528137423857
Carbon-Carbon Bond
A carbon-carbon bond has a length of 154 pm. If the bond is positioned at an angle of 30° to a surface, as shown below. What is the projected length of the bond?
Solution: To solve this, we should first note that we have a right-angled triangle and can therefore use SOHCAHTOA. We know the hypotenuse, which is 154 pm and want to find the projected length, which is the adjacent. So, we need to use:
With Python
np.cos(np.radians(30)) * 154 * ureg.pm
Inverse Function and Rearranging Trigonometric Functions#
We may be given the lengths of two sides of a right-angled triangle and be asked to find the angle, θ, between them or be ased to rearrange an equation with a trigonometric function. In order to do these, we need to introduce the inverse trigonometric function:
The inverse function of sine is sin-1(θ), can also be denoted as arcsin(θ).
The inverse function of cosine is cos-1(θ), can also be denoted as arccos(θ).
The inverse function of tangent is tan-1(θ), can also be denoted as arctan(θ).
We use the inverse trigonometric functions with SOHCAHTOA to find the values of anlges in right-angled triangles in which two of the lengths of the sides have been given. We do this as followis, suppose we know that:
To find θ, we can apply the inverse sine function to both sides of the equation,
We can use a calculator, or Python, to find \(\sin^{-1}\left(\frac{1}{2}\right) = 30^\circ = \frac{\pi}{6} \;\textrm{radians}\).
np.degrees(np.arcsin(1/2)), np.arcsin(1/2)
(30.000000000000004, 0.5235987755982989)
Example
Using SOHCAHTOA find the size of the angles \(B\), \(C\), and \(D\), in the right-angled triangles below.
Solution:
We know the length of the hypotenuse and the opposite.
\[ \sin(\theta) = \frac{\textrm{O}}{\textrm{H}} \Rightarrow \sin(B) = \frac{3}{5} \Rightarrow \sin^{-1}\left(\frac{3}{5}\right) = 36.9^\circ/0.64\;\textrm{rad} \]We know the length of the adjacent and the opposite.
\[ \tan(\theta) = \frac{\textrm{O}}{\textrm{A}} \Rightarrow \tan(C) = \frac{6}{5} \Rightarrow \tan^{-1}\left(\frac{6}{5}\right) = 50.2^\circ/0.88\;\textrm{rad} \]We know the length of the hypotenuse and the adjacent.
\[ \cos(\theta) = \frac{\textrm{A}}{\textrm{H}} \Rightarrow \cos(D) = \frac{6}{11} \Rightarrow \cos^{-1}\left(\frac{6}{11}\right) = 56.9^\circ/0.99\;\textrm{rad} \]
Once again, using the arc*
NumPy functions.
np.arcsin(3/5), np.degrees(np.arcsin(3/5))
(0.6435011087932844, 36.86989764584402)
np.arctan(6/5), np.degrees(np.arctan(6/5))
(0.8760580505981934, 50.19442890773481)
np.arccos(6/11), np.degrees(np.arccos(6/11))
(0.9938649815584398, 56.944268849146)
Bond Angles
The position of certain bands in the infra-red spectrum of SO2 can be used to determine the angle θ of the O-S-O bonds. The analysis leads to the equation:
Find the value of \(\theta\) in degrees.
Solution: First, we can square root both sides to remove the square on the sin function. This gives us:
We now take the inverse of both sides:
We can check this with Python.
np.degrees(np.arcsin(np.sqrt(0.769)) * 2)
122.54759369030917