Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

Ceiling Function

ffImage
Last updated date: 25th Apr 2024
Total views: 425.7k
Views today: 10.25k
hightlight icon
highlight icon
highlight icon
share icon
copy icon

Introduction

If you look at mathematics and computer programming, two important functions are used quite often. One is called the floor function and the other is called the ceiling function. The ceiling function, which is also called the least integer function, of a real number x, denoted by ⌈x⌉, is defined as the smallest integer which is not smaller than x.


For example, the floor and ceiling of the decimal 2.31 are 2 and 3 respectively.  Hence, with the help of these two functions, you can get the nearest integer in a number line of the given decimal.

 

The ceiling function is related to the floor function by the formula

⌈x ⌉= − ⌊−x⌋

In this article, we will look at what is ceiling function and floor function, the definition of ceiling function, properties, and examples.


Ceiling Function Definition

A ceiling function is a type of function in which the given smallest successive integer is returned. In simpler words, the ceiling function of a given real number x is the least integer which is greater than or equal to the number x. The ceiling function is defined as follows:

f (x) = minimum { a ∈ Z ; a ≥ x }

Ceiling Function Symbol

The ceiling function is also known as the smallest integer function. The notation for representing this function is ⌈ ⌉. It can be used as follows:

⌈x⌉ or ceil (x) or f(x) = ⌈x⌉

The symbol of the floor function is also a kind of square bracket with the bottom part missing, such as 

⌊ ⌋.


Brief Description about Ceiling Function

For example, ⌊3.4⌋ = 3, ⌊− 3.4⌋ = − 3, ⌈3.4⌉ = 3, and ⌈− 3.4⌉ = −2.

 

The integral part or integer part of x frequently symbolised as [x] is defined as the ⌊x⌋ if x is non-negative and ⌈x⌉ otherwise. For example, ⌈3.4⌋ = 3 and ⌈− 3.4⌋ = − 3. The operation of truncation generalizes this to a specified number of digits: truncation to zero significant digits is the same as the integer part.

 

However, some mathematicians describe the integer part as the floor irrespective of the sign of x, using a list of notations for this.

 

For p an integer, ⌊p⌋ = ⌈p⌉ = [p] = p.

 

Ceiling Function Properties

Consider that x and y are two given real numbers and ceil (x) = ⌈x⌉. Let us now take a look at some of the important properties of the ceiling functions:

  1. ⌈x⌉ + ⌈y⌉ – 1 ≤ ⌈x + y⌉ ≤ ⌈x⌉ + ⌈y⌉

  2. ⌈x + a⌉ = ⌈x⌉ + a

  3. ⌈x⌉ = a; if x ≤ a < x + 1

  4. ⌈x⌉ = a; if x – 1 < a ≤ x

  5. a < ⌈x⌉ if a < x

  6. a ≤ ⌈x⌉ if x < a

 

Ceiling Function Graph

The ceiling function graph is a discrete graph that contains discontinuous line segments with one end with a dark dot, which is a closed interval, and the other end with an open circle, which is an open interval. The ceiling function is a type of step function because it looks like a staircase.

The graph of ceiling function is as follows:

 

(Image will be uploaded soon)


Difference Between Ceiling Function and Floor Function

The ceiling function and the floor function both have different definitions. The ceiling function returns the smallest value, whereas the floor function returns the largest value for the specific number. However, the ceiling and floor of an integer remain the same. Consider the floor and ceiling of 4 to be 4 for both of them. Both these functions are represented by a square brackets sign, however, with the top and the bottom parts missing. Also, another difference can be found when you use the graph. The graph of the ceiling function has an open dot on the left and a solid dot on the right. However, for the floor function, it is the opposite. This means that there is a solid dot on the left and an open dot on the right.

 

Ceiling Function Example


Example 1:

Find all the possible solutions to ⌈x⌉⌈2x⌉ = 15.


Solution:

The first step is to write x = n − r.

Then write ⌈2x⌉ = 2n or 2n-1 depending on the value of r.

Consider the first case where r <½ the equation would become 2n2 = 15, which does not have any solution. 

Considering the second case where r >½ the equation would become n(2n - 1) = 15.

Hence,

2n2 - n - 15 = 0

Solving this gives you

(n − 3)(2n + 5) = 0

Hence, the only integer solution you get is n = 3.

Hence, the range of the solution is given by the interval (2, 2.5).

 

Conclusion

Ceiling function returns the closest integer greater than or equal to a given number. In other terms, the ceiling function of a real number ‘m’ is the least integer that is greater than or equal to the given number ‘m’.  It represented by  ⌈ ⌉ and can be used as ⌈m⌉ or ceil (m) or f(m) = ⌈m⌉. It is often used as a rounding function. This is a single-value function. The ceiling function is mathematically defined as:

f (m) = minimum {a ∈ Z; a ≥ m}

FAQs on Ceiling Function

1. What exactly is a ceiling function?

A ceiling function is a type of function that returns the closest integer which is greater than or equal to the given number. The ceiling is often used as a rounding function. It is a single-value function.

2. What is the difference between the ceiling function and the floor function?

Ceiling and floor functions are different in many respects.

Ceiling function: It is a type of function which returns the greatest integer which is less than or equal to x.

Floor function: It is a type of function which returns the least integer which is greater than or equal to x. 

3. How can one determine whether a function is 'strictly increasing' or 'strictly decreasing' or 'neither increasing nor decreasing?

If the derivative is greater than zero, the change in the function with an increase in x is positive (definition of derivative) implying that it is strictly increasing. On the other hand, if the derivative is non-negative the function is non-decreasing. However, the first derivative merely acts as a tool in identifying the monotonicity. Thus to identify if a function is strictly increasing or non-decreasing we must check if F(x)=0 only at single points and not a range. In other words, the function remains to be strictly increasing if the point where f'(x)=0 is a point of inflection or an undulation point. 

4. How does the ceiling function work? 

CEILING always rounds up. If number and significance are both negative, CEILING rounds down, away from zero. If the number is negative, and significance is positive, CEILING rounds up, towards zero.