Use Sophia to knock out your gen-ed requirements quickly and affordably. Learn more
×

Greatest Integer Functions

Author: Sophia

what's covered

1. The Greatest Integer Function

1a. Motivation: Why Do We Need This?

You have 60 pieces of candy to give a group of x people, and you want to distribute them evenly.

  • If there are 15 people, then you would give each person 60/15 = 4 pieces of candy.
  • If there are 12 people, then you would give each person 60/12 = 5 pieces of candy.
What happens when you can’t divide evenly?

If there are 13 people in the room, then each person would get 60/13 = 4.615… pieces of candy. Since this is impossible and you want to be fair to each person, you would give each person 4 pieces of candy, with some left over.

So, what would be a mathematical rule for this situation?

Let p open parentheses x close parentheses = the number of pieces of candy each person receives when there are x people.

Then, the value of p open parentheses x close parentheses is found as follows:

  • If 60 over x is a whole number, then use 60 over x.
  • If 60 over x is not a whole number, then use the next whole number less than 60 over x.

1b. The Basic Greatest Integer Function

This leads us to a need to define another function, called the greatest integer function, which is denoted open floor x close floor. The piecewise definition of open floor x close floor is as follows:

Error converting from MathML to accessible text.

hint
There are other commonly used notations for the greatest integer function:
I N T open parentheses x close parentheses open square brackets x close square brackets f l o o r open parentheses x close parentheses
(In computer science, this function is often called the floor function, since it usually produces a lower value).

Here are a few function values for f open parentheses x close parentheses equals open floor x close floor colon

Function Statement Reasoning
f open parentheses 3.4 close parentheses equals 3 Since 3.4 is not an integer, the function returns the greatest integer below 3.4, which is 3.
f open parentheses 5 close parentheses equals 5 Since 5 is an integer, the function returns 5.
f open parentheses short dash 2.1 close parentheses equals short dash 3 Since -2.1 is not an integer, the function returns the greatest integer that is below -2.1, which is -3.
f open parentheses 10.8 close parentheses equals 10 Since 10.8 is not an integer, the function returns the greatest integer that is below 10.8, which is 10.

formula to know
The Piecewise Greatest Integer Function
Error converting from MathML to accessible text.

term to know
Greatest Integer Function
Returns the greatest integer that is less than or equal to the input value.

1c. The Graph of the Basic Greatest Integer Function

The graph of the basic greatest integer function is shown below.

Note, the “stair step” pattern continues indefinitely in both directions.

To understand how this graph works, consider the two points that are labelled (2, 2) and (3, 2). If 2 less or equal than x less than 3 comma the greatest integer function returns the value of 2. We can see this by using some input-output pairs:

bold italic x 2 2.2 2.5 2.8 2.9 2.99 2.999 2.9999
open floor bold x close floor 2 2 2 2 2 2 2 2
open parentheses bold x bold comma bold space bold y close parentheses (2, 2) (2.2, 2) (2.5, 2) (2.8, 2) (2.9, 2) (2.99, 2) (2.999, 2) (2.9999, 2)

As soon as the value of x jumps to exactly 3, then the greatest integer function returns a value of 3, which means the graph moves to the next “stair step.”


2. Compositions That Involve the Greatest Integer Function

Let’s now return to the situation where you were handing out candy to a group of x people.

To find the number of pieces, we calculate 60 over x comma then round down if necessary. This is the essence of a greatest integer function!

Using the greatest integer function, the number of pieces received by each person is:

p open parentheses x close parentheses equals open floor 60 over x close floor
Here is the graph of p open parentheses x close parentheses, with selected points labelled:

Note, the piece of the graph where y = 1 would extend out to the point (60, 1) until falling to 0 for x > 60. Why is this? If you have more than 60 people in your group and you only have 60 pieces of candy to give out, there is no way to give the same amount of candy to each of them (so each person would receive no candy). On the bright side, that means you get to keep it all.

summary
In this lesson, you were introduced to the greatest integer function, which returns the greatest integer that is less than or equal to the input value. You investigated a real-life situation in which finding a composition involving a greatest integer function was useful, in order to understand the motivation behind why we need this function (everyone wants their fair share of candy!). In learning about the basic greatest integer function, you explored what the graph of the basic greatest integer function looks like, noting its “stair step” pattern which continues indefinitely in both directions. Lastly, you circled back to the original real-life situation in order to apply your knowledge to compositions that involve the greatest integer function.

SOURCE: THIS WORK IS ADAPTED FROM CHAPTER 0 OF CONTEMPORARY CALCULUS BY DALE HOFFMAN.

Terms to Know
Greatest Integer Function

Returns the greatest integer that is less than or equal to the input value.

Formulas to Know
The Piecewise Greatest Integer Function

Error converting from MathML to accessible text.