Cosine

Cosine, written as cos⁡(θ), is one of the six fundamental trigonometric functions.

Cosine definitions

There are two main ways in which trigonometric functions are typically discussed: in terms of right triangles and in terms of the unit circle. The right-angled triangle definition of trigonometric functions is most often how they are introduced, followed by their definitions in terms of the unit circle.

Right triangle definition

For a right triangle with an acute angle, θ, the sine value of this angle is defined to be the ratio of the adjacent side length to the hypotenuse length.



The sides of the right triangle are referenced as follows:



Example:

Find cos(⁡θ) for the right triangle below.


We can also use the cosine function when solving real world problems involving right triangles.


Example:

A plane is on a flying over a person. The person records an angle of elevation of 25° when the straight-line distance (hypotenuse of the triangle) between the person and the plane is 14 miles. What is the horizontal distance between the plane and the person?



Given the information above, we can form a right triangle such that x is the horizontal distance between the person and the plane, the straight-line distance between the person and the plane is the hypotenuse, and the vertical distance between the terminal ends of x and the hypotenuse forms the right angle of the triangle. We can then find the horizontal distance, x, using the cosine function:


x = 14 × cos⁡(25°) ≈ 12.69


The horizontal distance between the person and the plane is about 12.69 miles.

Unit circle definition

Trigonometric functions can also be defined as coordinate values on a unit circle. A unit circle is a circle of radius 1 centered at the origin. The right triangle definition of trigonometric functions allows for angles between 0° and 90° (0 and in radians). Using the unit circle definitions allows us to extend the domain of trigonometric functions to all real numbers. Refer to the figure below.



Given a point (x, y) on the circumference of the unit circle, we can form a right triangle, as shown in the figure. In such a triangle, the hypotenuse is the radius of the unit circle, or 1. θ is the angle formed between the initial side of an angle along the x-axis and the terminal side of the angle formed by rotating the ray either clockwise or counterclockwise. The terminal side of the angle is the hypotenuse of the right triangle and is the radius of the unit circle. Therefore, it always has a length of 1. Thus, we can use the right triangle definition of cosine to determine that



meaning that the x-value of any point on the circumference of the unit circle is equal to cos⁡(θ).

Unlike the definitions of trigonometric functions based on right triangles, this definition works for any angle, not just acute angles of right triangles, as long as it is within the domain of cos⁡(θ). The domain of the cosine function is (-∞,∞) and the range of the cosine function is [-1, 1].

cos values

To find the value(s) of cosine, it is common to reference a table of cosines, use a calculator, or approximate using the Taylor Series of cosine. In most practical cases, it is not necessary to compute a cosine value by hand, and a table, calculator, or some other reference will be provided.

Cosine calculator

The following is a calculator to find out either the cosine value of an angle or the angle from the cosine value.

cos =

Commonly used angles

While we can find cos(θ) for any angle, there are some angles that are more frequently used in trigonometry. Below are 16 commonly used angles in both radians and degrees, along with the coordinates of their corresponding points on the unit circle.



The above figure serves as a reference for quickly determining the cosines (x-value) and sines (y-value) of angles that are commonly used in trigonometry. As can be seen from the figure, cosine has a value of 0 at 90° and a value of 1 at 0°. Sine follows the opposite pattern; this is because sine and cosine are cofunctions (described later). The other commonly used angles are 30° (), 45° (), 60° () and their respective multiples. The cosine and sine values of these angles are worth memorizing in the context of trigonometry, since they are very commonly used.

One method that may help with memorizing these values is to express all the values of cos(θ) as fractions involving a square root. Starting from 0° and progressing through 90°, cos⁡(0°)=1=. The subsequent values, cos(30°), cos(45°), cos(60°), and cos(90°) follow a pattern such that, using the value of cos(0°) as a reference, to find the values of cosine for the subsequent angles, we simply decrease the number under the radical sign in the numerator by 1, as shown below:



From 90° to 180°, we increase the number under the radical by 1 instead, but also must take into account the quadrant that the angle is in. Cosine is negative in quadrants II and III, so the values will be equal but negative. In quadrants I and IV, the values will be positive. This pattern repeats periodically for the respective angle measurements. A similar memorization method can be used for sine. Refer to the sine page if necessary.

Knowing the values of cosine and sine for angles in the first quadrant allows us to determine their values for corresponding angles in the rest of the quadrants in the coordinate plane through the use of reference angles.

Reference angles

A reference angle is an acute angle (<90°) that can be used to represent an angle of any measure. Any angle in the coordinate plane has a reference angle that is between 0° and 90°. It is always the smallest angle (with reference to the x-axis) that can be made from the terminal side of an angle. The figure below shows an angle θ and its reference angle θ'.



Because θ' is the reference angle of θ, both cos⁡(θ) and cos⁡(θ') have the same value. For example, 30° is the reference angle of 150°, and if we reference the unit circle, we can see that the cosines of both have a magnitude of , albeit they have different signs. Because all angles have a reference angle, we really only need to know the values of cos⁡(θ) (as well as those of other trigonometric functions) in quadrant I. All other corresponding angles will have values of the same magnitude, and we just need to pay attention to their signs based on the quadrant that the terminal side of the angle lies in. Below is a table showing the signs of cosine, sine, and tangent in each quadrant.


 CosineSineTangent
Quadrant I+++
Quadrant II-+-
Quadrant III--+
Quadrant IV+--

Once we determine the reference angle, we can determine the value of the trigonometric functions in any of the other quadrants by applying the appropriate sign to their value for the reference angle. The following steps can be used to find the reference angle of a given angle, θ:

  1. Subtract 360° or 2π from the angle as many times as necessary (the angle needs to be between 0° and 360°, or 0 and 2π). If the resulting angle is between 0° and 90°, this is the reference angle.
  2. Determine what quadrant the terminal side of the angle lies in (the initial side of the angle is along the positive x-axis)
  3. Depending what quadrant the terminal side of the angle lies in, use the equations in the table below to find the reference angle. In quadrant I, θ'=θ.

Quadrant II Quadrant III Quadrant IV
θ'= 180° - θ θ'= θ - 180° θ'= 360° - θ

Example:

Find cos⁡(120°).

  1. θ is already between 0° and 360°
  2. 120° lies in quadrant II
  3. 180° - 120° = 60°, so the reference angle is 60°

. 120° is in quadrant II, and cosine is negative in quadrant II, so:

Example:

Find cos⁡(1050°).

  1. 1050° - 360° = 690° - 360° = 330°
  2. 330° lies in quadrant IV
  3. 360° - 330° = 30°, so the reference angle is 30°

. 330° is in quadrant IV, and cosine is positive in quadrant IV, so:

Properties of the cosine function

Below are a number of properties of the cosine function that may be helpful to know when working with trigonometric functions.

Cosine is a cofunction of sine

A cofunction is a function in which f(A) = g(B) given that A and B are complementary angles. In the context of cosine and sine,

cos⁡(θ) = sin⁡(90° - θ)

sin⁡(θ) = cos⁡(90° - θ)


Example:

cos⁡(30°) = sin⁡(90° - 30°) = sin⁡(60°)

Referencing the unit circle shown above, we can plug in values for cos⁡(30°) and sin⁡(60°) and see that:

Cosine is an even function

An even function is a function in which f(x)=f(-x) meaning that reflecting the graph across the y-axis will yield the same graph. Thus,

cos⁡(θ) = cos⁡(-θ)

Example:

cos⁡(60°) = cos⁡(-60°)

cos⁡(60°) = cos⁡(300°)

Referencing the unit circle, we can see that cos⁡(60°)= and cos⁡(-60°) is equivalent to cos⁡(300°), which is also equal to . This is only one example, but this property holds true for all θ.

Cosine is a periodic function

A periodic function is a function, f, in which some positive value, p, exists such that


f(x+p) = f(x)


for all x in the domain of f, p is the smallest positive number for which f is periodic, and is referred to as the period of f.

Trigonometric functions are commonly used to model periodic phenomena due to their periodicity; no matter what point we start at on the unit circle, if we travel a distance of 2π (360°) along the unit circle from that point, we will arrive back at our starting point. If we look at the cosine function, we will find that it repeats every 2π, so 2π is the period of the cosine function. We can write this as:


cos⁡(θ+2π) = cos⁡(θ)


To account for multiple full rotations, this can also be written as


cos⁡(θ+2πn) = cos⁡(θ)


where n is an integer.

The figure below shows an example of this periodicity.

In blue, we see that . . If we add 2π to , we get the angle shown in red, . As can be seen from the figure, even though there is a different degree of rotation in both angles, their terminal sides are exactly the same, meaning that . We could add another 2π, and would still see that has the same cosine value as . This is the nature of periodic functions. are referred to as coterminal angles; they are angles with the same initial and terminal sides, but with different rotations.

Examples:

1.

2.

Graph of the cosine function

The graph of cosine is periodic, meaning that it repeats indefinitely and has a domain of -∞<x< ∞. The cosine graph has an amplitude of 1; its range is -1≤y≤1. Below is a graph of y = cos⁡(x) in the interval [0, 2π], showing just one period of the cosine function.



Repeating this portion of y = cos⁡(x) indefinitely to the left and right side would result in the full graph of cosine. Below is a graph showing four periods of the cosine function in the interval [-4π, 4π].



In this graph, we can see that y = cos⁡(x) exhibits y-axis symmetry; reflecting the cosine graph across the y-axis produces the same graph. This confirms that cosine is an even function, since cos⁡(x)=cos⁡(-x).

General cosine equation

The general form of the cosine function is


y = A·cos(B(x - C)) + D


where A, B, C, and D are constants. To be able to graph a cosine equation in general form, we need to first understand how each of the constants affects the original graph of y = cos⁡(x), as shown above. To apply anything written below, the equation must be in the form specified above; be careful with signs.

A—the amplitude of the function; the height from the center of the graph to a maximum or minimum. In y = cos⁡(x), the center is the x-axis, and the amplitude is 1, or A=1, so the highest and lowest points the graph reaches are 1 and -1, the range of cos(x).



Compared to y=cos⁡(x), shown in purple below, the function y=2 cos⁡(x) (red) has an amplitude that is twice that of the original cosine graph.

B—used to determine the period of the function; the period of a function is the distance from peak to peak (or any point on the graph to the next matching point) and can be found as . In y=cos⁡(x), the period is 2π. We can confirm this by looking at the peaks in the cosine graph. At x=0, y=cos⁡(x) has a peak. The first time another peak occurs on the function is at x=±2π, confirming that the period of cosine is 2π.



Compared to y=cos⁡(x), shown in purple below, which has a period of 2π, y=cos⁡(2x) (red) has a period of . This means that the graph repeats every π rather than every 2π.

C—the phase shift of the function; phase shift determines how the function is shifted horizontally. If C is negative, the function shifts to the left. If C is positive the function shifts to the right. Be wary of the sign; if we have the equation then C is not , because this equation in standard form is . Thus, we would shift the graph units to the left.



The figure below shows y=cos⁡(x) (purple) and (red). Using one of the peaks of the cosine graph as a reference, we can see that the peak at (0,1) has been shifted to the left from its original position and is now at (,1).

D—the vertical shift of the function; if D is positive, the graph shifts up D units, and if it is negative, the graph shifts down.



Compared to y=cos⁡(x), shown in purple below, which is centered at the x-axis (y=0), y=cos⁡(x)+5 (red) is centered at the line y=5 (blue).

Putting together all the examples above, the figure below shows the graph of (red) compared to that of y=cos⁡(x) (purple).