Free preview

83 lessons

Mathematical Foundations for ML

Free preview

Mathematical Foundations for ML · 83 lessons

Build the maths foundations that make ML click

No surprise gaps

Actually remember it

Skip what you know

One subscription. All learning paths included.

Our content is best on a larger screen

The unit circle

Definition of the unit circle

Explanation

The right-triangle definitions of sine and cosine work perfectly for acute angles, but they break down once an angle exceeds 90°90\degree. To extend trigonometry to any angle we need a new framework, and the unit circle provides it.

The unit circle

Definition

The unit circle is the circle of radius 11 centred at the origin. Every point (x,y)(x, y) on it satisfies:

x2+y2=1x^2 + y^2 = 1

The radius being exactly 11 is what makes this circle special: as we will see later in this lesson, it creates a direct link between a point's coordinates and the trigonometric ratios.

To use the unit circle we place angles in standard position: vertex at the origin, initial side along the positive xx-axis, measuring anticlockwise. The other ray, the terminal side, sweeps out the angle θ\theta and intersects the unit circle at a single point called the terminal point of θ\theta.

0.20.40.60.811.21.4−0.20.20.40.60.811.21.4−0.2−0.4−0.6−0.8−1−1.2−1.4−0.4−0.6−0.8−1−1.2−1.4
I
II
III
IV
θ

Drag the red dot to change the angle θ. The dot is the terminal point: where the terminal side meets the unit circle.

θ= 60° = π3 rad
Terminal point: (0.500,0.866)

The four points where the axes cross the unit circle correspond to the quadrantal angles:

θ\thetaTerminal point
00(1,0)(1, 0)
π2\dfrac{\pi}{2}(0,1)(0, 1)
π\pi(1,0)(-1, 0)
3π2\dfrac{3\pi}{2}(0,1)(0, -1)

Each of these satisfies x2+y2=1x^2 + y^2 = 1.

Example

An angle of θ=0\theta = 0 has its terminal side along the positive xx-axis, so the terminal point is (1,0)(1, 0). An angle of θ=π2\theta = \dfrac{\pi}{2} points straight up along the positive yy-axis, giving the terminal point (0,1)(0, 1). Verify that both points lie on the unit circle.

Solution

A point lies on the unit circle if it satisfies x2+y2=1x^2 + y^2 = 1.

For (1,0)(1, 0):

12+02=1+0=11^2 + 0^2 = 1 + 0 = 1

For (0,1)(0, 1):

02+12=0+1=10^2 + 1^2 = 0 + 1 = 1

Both points satisfy the equation, confirming they lie on the unit circle.

Practice questions

4 questions

What is the terminal point on the unit circle for the angle θ=π\theta = \pi?

Select the correct answer:

+ 3 more questions

Coordinates as (cosθ,sinθ)(\cos\theta, \sin\theta)

Explanation

We start by recalling the right-triangle definitions of cosine and sine:

cosθ=adjacenthypotenusesinθ=oppositehypotenuse\cos\theta = \dfrac{\text{adjacent}}{\text{hypotenuse}} \qquad \sin\theta = \dfrac{\text{opposite}}{\text{hypotenuse}}

On the unit circle, these ratios collapse into something much simpler.

Coordinates on the unit circle

Definition

For any angle θ\theta, the terminal point on the unit circle has coordinates:

(cosθ,  sinθ)(\cos\theta,\; \sin\theta)

That is, the xx-coordinate is cosθ\cos\theta and the yy-coordinate is sinθ\sin\theta.

To see why, take an angle θ\theta in standard position, mark its terminal point on the unit circle, and drop a perpendicular from that point to the xx-axis. This forms a right triangle whose hypotenuse is the radius of the circle - exactly 11.

0.20.40.60.811.21.4−0.20.20.40.60.811.21.4−0.2−0.4−0.6−0.8−1−1.2−1.4−0.4−0.6−0.8−1−1.2−1.4
I
II
III
IV
θ
x=cosθ
y=sinθ
1
(cosθ,sinθ)

Drag the red dot around the unit circle. Its coordinates are exactly (cosθ,sinθ); the green dashed legs of the inscribed right triangle have those lengths.

θ= 60° = π3 rad
(cosθ,sinθ)= (0.500,0.866)

Applying the right-triangle definitions to this triangle:

cosθ=adjacenthypotenuse=x1=xsinθ=oppositehypotenuse=y1=y\begin{align*} \cos\theta &= \dfrac{\text{adjacent}}{\text{hypotenuse}} = \dfrac{x}{1} = x \\[4pt] \sin\theta &= \dfrac{\text{opposite}}{\text{hypotenuse}} = \dfrac{y}{1} = y \end{align*}

The hypotenuse being exactly 11 is the key: the ratios collapse to the coordinates themselves.

Example

The terminal point of an angle θ\theta on the unit circle is (35,45)\left(\dfrac{3}{5},\, \dfrac{4}{5}\right). State cosθ\cos\theta and sinθ\sin\theta, and verify that the point lies on the unit circle.

Solution

On the unit circle, the terminal point has coordinates (cosθ,sinθ)(\cos\theta,\, \sin\theta). Reading off the coordinates directly:

cosθ=35sinθ=45\cos\theta = \dfrac{3}{5} \qquad \sin\theta = \dfrac{4}{5}

To verify the point lies on the unit circle, we check that x2+y2=1x^2 + y^2 = 1:

(35)2+(45)2=925+1625=2525=1\begin{align*} \left(\dfrac{3}{5}\right)^2 + \left(\dfrac{4}{5}\right)^2 &= \dfrac{9}{25} + \dfrac{16}{25} \\ &= \dfrac{25}{25} \\ &= 1 \end{align*}

The point satisfies x2+y2=1x^2 + y^2 = 1, confirming it lies on the unit circle.

Visually, this is the famous 33-44-55 right triangle inscribed in the unit circle, with each side scaled by 15\dfrac{1}{5} so the hypotenuse equals 11. The adjacent side has length 35=cosθ\dfrac{3}{5} = \cos\theta and the opposite side has length 45=sinθ\dfrac{4}{5} = \sin\theta.

0.20.40.60.811.21.4−0.20.20.40.60.811.21.4−0.2−0.4−0.6−0.8−1−1.2−1.4−0.4−0.6−0.8−1−1.2−1.4
I
II
III
IV
θ
35=cosθ
45=sinθ
1
(35,45)

Practice questions

4 questions

The terminal point of an angle θ\theta on the unit circle is (513,1213)\left(\dfrac{5}{13},\, \dfrac{12}{13}\right). What is sinθ\sin\theta?

Select the correct answer:

+ 3 more questions

Reference angles

Explanation

When an angle θ\theta lands outside quadrant I, it helps to relate it back to a familiar acute angle. The reference angle gives us exactly that.

Reference angle

Definition

For an angle θ\theta in standard position, the reference angle α\alpha is the acute angle between the terminal side and the xx-axis. It is always positive and acute: 0<α<π20 < \alpha < \dfrac{\pi}{2}, equivalently 0°<α<90°0\degree < \alpha < 90\degree.

The reference angle is always measured to the xx-axis, never the yy-axis. The formula for α\alpha depends on which quadrant the terminal side falls in:

Finding the reference angle

Procedure

QuadrantFormula (radians)Formula (degrees)
Iα=θ\alpha = \thetaα=θ\alpha = \theta
IIα=πθ\alpha = \pi - \thetaα=180°θ\alpha = 180\degree - \theta
IIIα=θπ\alpha = \theta - \piα=θ180°\alpha = \theta - 180\degree
IVα=2πθ\alpha = 2\pi - \thetaα=360°θ\alpha = 360\degree - \theta
0.20.40.60.811.21.4−0.20.20.40.60.811.21.4−0.2−0.4−0.6−0.8−1−1.2−1.4−0.4−0.6−0.8−1−1.2−1.4
I
II
III
IV
θ
α

Drag the red dot through the quadrants to see how the reference angle α adapts. α is always the acute angle between the terminal side and the x-axis.

θ= 120° = 2π3 rad | Quadrant II
α= πθ = π3 rad

If θ\theta falls outside the range [0,2π)[0, 2\pi), first find a coterminal angle in that range by adding or subtracting 2π2\pi, then apply the appropriate formula.

Example

Find the reference angle for θ=5π3\theta = \dfrac{5\pi}{3}.

Solution

First, identify the quadrant. Since 3π2<5π3<2π\dfrac{3\pi}{2} < \dfrac{5\pi}{3} < 2\pi, the terminal side is in quadrant IV.

For an angle in quadrant IV, the reference angle formula is α=2πθ\alpha = 2\pi - \theta:

α=2π5π3=6π35π3=π3\begin{align*} \alpha &= 2\pi - \dfrac{5\pi}{3} \\ &= \dfrac{6\pi}{3} - \dfrac{5\pi}{3} \\ &= \dfrac{\pi}{3} \end{align*}

The reference angle is π3\dfrac{\pi}{3}, which is the acute angle between the terminal side and the positive xx-axis.

Practice questions

4 questions

What is the reference angle for θ=3π4\theta = \dfrac{3\pi}{4}?

Select the correct answer:

+ 3 more questions