What Are Trig Functions Used For? (12 Real Life Examples)

We learn about trig functions such as sine, cosine, and tangent in high school math courses. However, this often leads students to wonder how these ideas are applied in technology and other disciplines.

So, what are trig functions used for in real life? Trig functions are used or found in architecture & construction, communications, day length, electrical engineering, flight, GPS, graphics, land surveying & cartography, music, tides, optics, and trajectories.

Of course, the trig function we use will depend on the situation we find ourselves in. Often, a computer will perform the calculations, but the mathematical concepts are still very much necessary for our technology to work correctly.

In this article, we’ll take a closer look at 12 real life examples of how trig functions are used every day.

Having math trouble?

Looking for a tutor?

Math Tutor Picture

What Are Trig Functions Used For? (12 Real Life Examples)

Trig functions are used in real life a lot more often than you think. Although you might not need to use trig functions in your work, they probably shows up many times throughout your day – without you even realizing it!

Here are some fields that use trigonometric functions:

Let’s start with architecture & construction.

Architecture & Construction

Trig functions are used for architecture and construction in many different ways. Some of the uses include:

We can also use tangent to calculate the height of the roof of a building, given the width of the roof and the desired angle (or “pitch”) of the roof.

If H is the height, W is the width, and A is the angle (pitch) of the roof, then we can use the equation:

since tangent is opposite (height) divided by hypotenuse. We can rearrange (by multiplying W on both sides) to get:

So, to find the height of the roof, we take the tangent of the angle (pitch) of the roof and then multiply by the width of the roof.

So, if we wanted a pitch of 45 degrees (fairly steep!) for a roof that is 40 feet wide, we would have A = 45 degrees and W = 40 feet.

We could then calculate the height of the roof using our formula:

So, the height of the roof would also be 40 feet.

In architecture, weight plays a huge role in how we construct building. More weight means more force is exerted, which means we need more support for a heavy roof or bridge.

Architects can use trig functions to find the horizontal (x) and vertical (y) force components to figure out how to build a truss to support a bridge. Proper calculation of force components (using trig!) prevents the bridge from collapsing under its own weight, leaning to one side, or buckling due to imbalanced forces.

Communications

Trig functions are also used in communications, such as radio waves and other signals. A radio wave can be described as sinusoidal, since it repeats periodically (just like a sine function) and has the same pattern over time.

sine waves

A sinusoidal function f(x) = Asin(Bx) can describe a radio wave.

The amplitude, A, tells us how “tall” the wave is. A larger amplitude means a taller wave.

This is the same A as in AM radio (amplitude modulation). When you change the amplitude, you change the shape of the wave and the signal that is sent and received.

The period, 2*pi / B, tells us how long it takes the wave to go through one full “cycle”. When you change the amplitude, you change the shape of the wave and the signal.

The frequency, F = 1 / period or F = B / 2*pi, tells us how often the wave repeats. A higher frequency means a faster moving wave.

This is the same F as in FM radio (frequency modulation). When you change the frequency, you change the speed of the wave and the signal that is sent and received.

For example, the sine function f(x) = 2sin(4x) has twice the amplitude and 4 times higher frequency than g(x) = sin(x).

Day Length

The day length (from sunrise to sunset) varies throughout the year, changing by a small amount each day. In fact, the amount that day length increases or decreases is not the same every day!

sunlight day length

The reason is that we can model day length with a sinusoidal function. This means that day length has a maximum and a minimum, and it increases or decreases at different rates during the year.

On the other hand, day length changes a lot each day near the “midpoints” between the shortest and longest days: we gain or lose about 3 minutes per day around March 21 and September 21.

Of course, the change in day length also varies depending on latitude (how far north or south you are from the equator).

Electrical Engineering

We can use a trig function to find the angle between R and X, depending on which values R, X, and Z we know.

Flight

We would need to use vectors and trig functions to determine the angle a plane should fly at to maintain course. However, this will happen more than once during a flight.

airplane in flight

In fact, small course corrections are made throughout a flight. The reason is that the wind can change often, especially during a long flight over a great distance.

GPS

GPS (global positioning system) uses trigonometry as part of a triangulation to find the position of an object on Earth (triangulation involves the Law of Sines).

Having math trouble?

Looking for a tutor?

Math Tutor Picture

Graphics

Trig functions are also used often in computer graphics to determine the position of an object based on its speed (and its speed based on its acceleration).

This is useful in video games, movies, and other applications. As in architecture, trig functions are used to break up a vector (velocity or acceleration) into its components (x and y directions, or possibly even z directions in 3D applications).

video game graphics

For example, let’s say an object on-screen is traveling at a speed of 50 miles per hour and moving northeast at 30 degrees from the horizontal.

Then the speed components are:

We can use these units to move the object the proper distance north and east on the screen using pixels (the smallest unit in a graphics system, which indicates screen size).

Land Surveying & Cartography

Trigonometry also appears in land surveying and cartography (map making). For example, let’s say we want to find the distance across a river at a certain point.

cartography map

First, we mark our starting position. Next, we identify a stationary object across the river.

Then, we mark a line between our starting position and the stationary object across the river. The next step is to move a known distance along a line perpendicular to the line across the river.

Finally, we find the angle between the marker at the starting position and the stationary object across the river.

Since we moved a known distance along a perpendicular line, we have a right triangle. We also know one of the side lengths (the distance we moved) and one of the angles.

We can then use a trig function (tangent) to find the length of the other leg of the triangle (the distance across the river).

rearranging, we get:

where x is the angle between the starting position and the stationary object, D is the distance across the river, and K is the known distance we walked from the starting point.

Music

Trig functions are also involved in music, although not in an obvious way. We can model a sound with a sine wave:

When you hear (or play) music, you have something that can be expressed as the sum of these various sine waves (this result is due to Joseph Fourier).

sound wave

Tides

Similar to day length, we can also model tides using trig functions. Tides vary between low tide and high tide about every 6 hours (this means that the period is about 12 hours).

The tide (which can be high, low, or somewhere in between) varies throughout the day, changing by a small amount each minute. In fact, the amount that the tide increases or decreases is not the same every minute!

The reason is that we can model tide with a sinusoidal function. This means that the tide has a maximum and a minimum, and it increases or decreases at different rates during the day.

On the other hand, the tide changes a lot each day near the “midpoints” between the low tide and high tide: the tide changes the most at the 3 hour mark between low and high tide, or around 12:40PM, 6:40PM, 12:40AM, and 6:40AM).

Tide Graph

Of course, the change in tide also varies depending on location (how far north or south you are from the equator).

Optics

Trig functions can help us in the field of optics. For example, we can figure out how light travels via reflection and refraction.

In particular, the law of refraction involves the sine function. Of course, the material that the light is traveling through will affect how fast it travels (known as the material’s refractive index).

Trajectories

As with so many other disciplines, trig functions are used to break down a trajectory into components (x and y, and possibly a z component).

missile defense launch

Conclusion

Now you know all about how trig functions are used in real life. The applications are astounding in their scope, and they make our lives much better and more enjoyable, don’t you think?

I hope you found this article helpful. If so, please share it with someone who can use the information.