
Step Function Definition Formula Graph and Solved Examples
A step function is explained as a finite linear combination of indicator functions for given intervals. A step function is also known as the Greatest Integer Function or Floor Function. However, it is a discontinuous function. Students may come across the step functions while learning other types of functions, for example, sign function “sgn(x)”, Heaviside Function, and Rectangular function, etc. The step function is used to coordinate session-based applications. For example, it can be used to coordinate all the steps of a checkout process on an e-commerce site. A step function f: R → R can be written in the form:
\[ f(x) = \sum _{ i = 0}^{n} \alpha _{i} X_{Ai}(x)\]
for all real numbers x.
If n ≥ 0, αi are real numbers and Ai are intervals, then the indicator function of A is χA, and it can be written as below:
\[X_{A}(x) = \left\{\begin{matrix} 1; if x \in A, & & \\ 0; if x \notin A, & & \end{matrix}\right.\]
Unit Step Function Definition
Unit Step Function is also known as Heaviside Function is known as the function that can mathematically describe the switching process in engineering applications. We often encounter some functions whose values change abruptly at specified units of time t. The value of t = 0 is taken as an appropriate time to switch on or off a given voltage.
Unit Step Function Examples
Some unit step function examples are switching on and off of voltage, binary cellular responses to chemical signals, etc.
Properties of Step Function
Some of the most important properties of Step functions are as follows:
The product or sum of two-step functions will also result in a step function.
The piecewise linear function is the definite integral of a step function.
If a number is multiplied by a step function then the product is also a step function. This is an indication that step functions create algebra over real numbers.
We can observe step-functions when dealing with other types of functions for different reasons. For instance, a trivial example of a step function is a constant function. The simplest non-constant step function is sign function “sgn(x)”, because this function results -1 for the negative inputs and 1 (i.e. +1) for the positive input values. Other types include the Heaviside function and rectangular function, etc.
Domain and Range of Step Function
In the case of a step function, for each value of x, f(x) takes the value of the greatest integer, less than or equal to x. For example:
(-2.19) = -3
(3.67) = 3
(-0.83) = -1
The domain of this function is a group of real numbers that are divided into intervals such as (-5, 3), (-4, 2), (-3, 1), (-2, 0), and so on. This helps us to explain the domain and range of a step function. Below we have generalized
(x) = -2, -2 ≤ x < -1
(x) = -1, -1 ≤ x < 0
(x) = 0, 0 ≤ x < 1
(x) = 1, 1 ≤ x < 2
Step Function Graph
The method of drawing a step function graph is similar to that of any piecewise function. In this graphing method, we have to graph each part of the function individually. The following steps are to be followed while drawing a step graph:
In the first step, we have to draw a horizontal line segment at each constant output value through input values to which it corresponds.
In the second step, we have to draw a closed filled-in circle or a closed circle point at the induced endpoint on each horizontal line. This means that if the end value is included in that particular interval then it has to be denoted with a filled-in circle.
In the final step, we have to draw an open circle at the endpoint that is excluded from each horizontal line. If the end value is not included in this particular interval then it should be denoted with an open circle.
The graph of a step function is given below:
(Image will be uploaded soon)
Step Function Examples
Draw a graph for the following step function
\[ f(x) = \left\{\begin{matrix} -2, x < 1 & \\ 0, -1 \leq x \leq 2 & \\ 2, x > 1 & \end{matrix}\right.\]
Solution: From the given data we have, -2, 0, 2 are the respective values of y.
x < -1 which means that the values of x can be x = …. -4, -3, -2, -1.
-1 < x < 2 or -1 = x or x = 2, so the values of x = -1, 0, 1, 2
x > 1 means the value of x can be x= 1, 2, 3, 4, 5…
(Image will be uploaded soon)
By plotting the above values on graph paper, the following graph can be obtained. The graph gives a picture of a group of steps and so it is known as a Step Function Graph. The left-hand side endpoint is a dark dot in order to show that the point is part of the graph while the right-hand side endpoint is an arrow denoting that the values are infinite. Hence, only the dark dots refer to finite definite values.
FAQs on What Is a Step Function in Mathematics
1. What is a step function?
A step function is a function whose value remains constant on specific intervals and changes abruptly at certain points. It does not vary smoothly but instead “jumps” from one value to another.
- It is defined piecewise over different intervals.
- The graph looks like horizontal line segments.
- The changes in value occur at specific boundary points.
2. What is an example of a step function?
An example of a step function is the greatest integer function defined as f(x) = ⌊x⌋. This function gives the greatest integer less than or equal to x.
- f(2.7) = 2
- f(-1.3) = -2
- f(5) = 5
3. How do you write a step function?
A step function is written using piecewise notation, where different constant values are assigned to different intervals. For example:
f(x) = { 1 if 0 ≤ x < 2; 3 if 2 ≤ x < 4 }
- Identify the intervals.
- Assign a constant value to each interval.
- Specify whether endpoints are included using ≤ or <.
4. What does the graph of a step function look like?
The graph of a step function consists of horizontal line segments with jumps at certain points. Each horizontal segment represents a constant value over an interval.
- Closed circles indicate included endpoints.
- Open circles indicate excluded endpoints.
- Vertical gaps show where the function jumps.
5. Is a step function continuous?
A step function is not continuous because it has jump discontinuities at certain points. At these points, the left-hand and right-hand limits are not equal.
- Within each interval, the function is constant and continuous.
- At boundary points, the function value changes abruptly.
6. What is the formula for the greatest integer step function?
The formula for the greatest integer step function is f(x) = ⌊x⌋, where ⌊x⌋ represents the greatest integer less than or equal to x. This function satisfies:
- n ≤ x < n + 1 implies ⌊x⌋ = n
7. What is the difference between a step function and a linear function?
The main difference is that a step function is constant on intervals, while a linear function changes continuously at a constant rate.
- A step function has horizontal segments and jumps.
- A linear function has a straight slanted line.
- Step functions are discontinuous at jump points.
- Linear functions are continuous everywhere.
8. How do you evaluate a step function at a given value?
To evaluate a step function, identify which interval the given x-value belongs to and use the corresponding constant value. For example, if f(x) = { 2 if 0 ≤ x < 3; 5 if 3 ≤ x < 6 }:
- f(1) = 2 because 1 is in [0, 3).
- f(4) = 5 because 4 is in [3, 6).
9. What are the properties of a step function?
A step function has key properties such as being piecewise constant and having jump discontinuities. Its main properties include:
- Constant value over each interval.
- Defined using piecewise notation.
- Finite or countable number of jumps.
- Discontinuous at step boundaries.
10. Where are step functions used in real life?
Step functions are used to model situations where values change abruptly rather than smoothly. Common applications include:
- Tax brackets where tax rates change at income thresholds.
- Electricity billing rates based on usage slabs.
- Digital signals that switch between discrete levels.





















