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

Step Function: Meaning, Features & Illustrations

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon
SearchIcon

How Does a Step Function Work in Real-Life Math?

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 Step Function: Meaning, Features & Illustrations

1. What is a step function in mathematics?

A step function, also known as a staircase function, is a type of function that is constant between certain intervals, creating a graph that looks like a series of steps. More formally, it is a function defined as a finite linear combination of indicator functions of intervals. Its value remains constant over various sections of its domain and then 'jumps' to another constant value at specific points. The Greatest Integer Function and the Heaviside function are popular examples of step functions.

2. What are some common examples of step functions covered in the NCERT syllabus?

Several key examples of step functions are important for the CBSE/NCERT curriculum:

  • Greatest Integer Function (or Floor Function): Denoted as f(x) = ⌊x⌋, it gives the greatest integer less than or equal to x. For example, ⌊3.9⌋ = 3 and ⌊-2.1⌋ = -3.
  • Signum Function: This function returns -1 for negative inputs, 0 for zero, and +1 for positive inputs. It steps at x=0.
  • Heaviside Unit Step Function: Often used in engineering and physics, this function is 0 for negative arguments and 1 for positive arguments. It models an on/off switch.
  • Constant Function: A simple function like f(x) = 4 is technically a trivial step function with only one 'step'.

3. How do you draw the graph of a step function?

To draw the graph of a step function, follow these steps:

  • Identify the intervals: Look at the function's definition to find the different intervals for the input variable (x).
  • Plot horizontal lines: For each interval, draw a horizontal line segment corresponding to the constant output value (y) defined for that interval.
  • Mark the endpoints: For each horizontal segment, check if the endpoints of the interval are included. Use a closed (filled) circle for an included endpoint (e.g., at x ≤ a or x ≥ a) and an open circle for an excluded endpoint (e.g., at x < a or x > a). This correctly shows the 'jumps' where the function is discontinuous.

4. Where are step functions used in real-world applications?

Step functions are extremely useful for modelling scenarios where quantities change abruptly. Some real-world applications include:

  • Pricing Models: Postage rates, electricity bills, or mobile data plans that charge a flat fee up to a certain limit and then a new, higher fee. For example, a parking garage might charge ₹50 for the first hour and ₹80 for 1 to 2 hours.
  • Digital Signals: In electronics and signal processing, a digital signal is essentially a step function, as it switches between discrete voltage levels (like 0V and 5V) at specific times.
  • Quantum Mechanics: Energy levels of electrons in an atom are quantised, meaning they can only exist at specific, discrete levels, a concept that can be represented using step functions.

5. Is the Greatest Integer Function the same as a step function?

No, they are not exactly the same, which is a common misconception. The Greatest Integer Function (GIF) is a specific example of a step function. The term 'step function' is a broader category for any function with a step-like graph. While the GIF, f(x) = ⌊x⌋, is a perfect illustration, other functions like the Signum function or custom-defined piecewise functions are also step functions. Therefore, all Greatest Integer Functions are step functions, but not all step functions are the Greatest Integer Function.

6. How does the Heaviside unit step function differ from the Signum function?

While both are step functions that change value at x=0, they differ in their output values and purpose. The Heaviside unit step function, H(x), typically has two levels: 0 for x < 0 and 1 for x > 0. It models an 'off/on' switch. In contrast, the Signum function, sgn(x), has three levels: -1 for x < 0, 0 for x = 0, and +1 for x > 0. It is used to determine the sign of a number, not just whether it is positive or not.

7. What happens when you integrate or differentiate a step function?

This question connects to calculus concepts. Differentiating a step function where it is continuous (on the flat 'steps') results in a derivative of zero. At the points of discontinuity (the 'jumps'), the derivative is undefined. Integrating a step function results in a piecewise linear function. For example, integrating the Greatest Integer Function f(x) = ⌊x⌋ from 0 to x gives a function whose graph is a series of connected line segments with increasing slopes, creating a saw-tooth-like shape.