Piecewise Function: Definition, Evaluation & Examples

Piecewise Function: Definition, Evaluation & Examples

Edited By Komal Miglani | Updated on Oct 12, 2024 11:36 AM IST


A piecewise function is a function that is defined by different expressions for different intervals of the domain. These functions are useful for modeling situations where a single formula cannot accurately describe the entire behavior of the function across its domain. Generally, the piecewise function is discontinuous in nature. Piecewise functions are used in real-world scenarios where a single rule does not apply to all domain values.

Piecewise Function: Definition, Evaluation & Examples
Piecewise Function: Definition, Evaluation & Examples

In this article, we will cover the concept of complex numbers. This concept falls under the broader category of complex numbers. It is not only essential for board exams but also for competitive exams like the Joint Entrance Examination (JEE Main), and other entrance exams such as SRMJEE, BITSAT, WBJEE, BCECE, and more. Over the last ten years of the JEE Main exam (from 2013 to 2023), a total of six questions have been asked on this concept, including one in 2014, two in 2020, and three in 2021.

Function-

A relation from a set A to a set B is said to be a function from A to B if every element of set A has one and only one image in set B.

OR

A and B are two non-empty sets, so a relation from A to B is said to be a function if each element x in A is assigned a unique element f(x) in B, and it is written as

f: A ➝ B and read as f is a mapping from A to B.

17273602949081727360292686 17273602951021727360292741 17273602951481727360292790

Function Function Not a function


17273602948081727360292836

Not a function

Third one is not a function because d is not related(mapped) to any element in B.

Fourth is not a function as element a in A is mapped to more than one element in B.

Signum function:

The function f:RR is defined by

sgn(x)={1 if x>01 if x<00 if x=0
is called the signum function. The domain of the signum function is R and the range is the set {-1,0,1}.

This function can also be written in another form:

sgn(x)={|x|x,x00,x=0}

Graph:

17273602949451727360292864

Range {1,0,1}


Greatest integer function (G.I.F.)

The function f:RR defined by f(x)=[x],xR assumes the value of the greatest integer which is equal to or less than x. Such a function is called the greatest integer function.
eg;

[1.75]=1[2.34]=2[0.9]=1[4.8]=5[4]=4[1]=1
Graph:

17273602950661727360292892

From the definition of [x], we

can see that

[x]=1 for 1x<0
[x]=0 for 0x<1
[x]=1 for 1x<2
[x]=2 for 2x<3 and so on.

Properties of greatest integer function:
i) [ a ] = a (If a is an integer)
ii) [[x]]=[x]
iii) x1<[x]x
iv) [x+a]=[x]+a (If a is an integer)

v) [xa]=[x]a (If a is an integer)
vi) [x]+[x]={0, if 1, if xZxZ

Fractional part function:

{x}=x[x]
When [ x ] is the Greatest Integer Function

Eg

{2.2}=2.2[2.2]=2.22=0.2{1.7}=1.7[1.7]=1.71=0.7{2}=2[2]=22=0{2.2}=2.2[2.2]=2.2(3)=0.8{1.7}=1.7[1.7]=1.7(2)=0.3{2}=2[2]=2(2)=0 Clearly, 0{x}<1
{

Graph

17273602965071727360292921

Domain: R

Range [0,1)

Properties of the fractional part of x
i) {x}=x if 0x<1
ii) {a}=0, if a is an integer
iii) 0{x}<1
iv) {x+a}={x} (If a is an integer)
v) {x}+{x}=1, if x doesn't belongs to integer
vi) {x}+{x}=0, if x belongs to integer


Summary

Piecewise functions are versatile and can model various scenarios where behavior changes across different segments of the domain. They are defined by multiple expressions, each valid over a specific interval, and can represent real-world situations more accurately than single-expression functions.

Recommended Video :

Solved Examples Based On the Piecewise Functions:

Example 1: What is the range of f(x)=4[x] ?
Solution:
Range of [x] is Z i.e {2,1,0,1,2}
so Range of 4[x] is {8,4,0,4,8}
Example 2: What is the range of function f(x)={x}+{x}
1) [0,1)
2) (1,1)
3) {0,1}
4) [0,1]

Solution:

f(x)={x}+{x}


If xZ, then f(x)=0
If x is not an integer, then let x=Z+k

f(x)={Z+k}+{Zk}=k+1k=1
Hence, the answer is the option 3.

Example 3: Let [t] denote the greatest integer. Then the equation in x,[x]2+2[x+2]7=0 has.
1) exactly two solutions
2) exactly four integral solution
3) no integral solution
4) infinitely many solutions

Solution:

[x]2+2[x+2]7=0[x]2+2[x]+47=0[x]=1,3x[1,2)[3,2)
Hence, the answer is option (4).

Example 4: The real-valued function f(x)=cosec1xx[x], where [x] denotes the greatest integer less than or equal to x , is defined for all x belonging to :
1) all non-integers except the interval [1,1]
2) all real except integers
3) all integers except 0,1,1
4) all real except the interval [1,1]

Solution:

f(x)=cosec1x{x}

Domain of cosec1x is |x|1

and x[x]>0xR{I}

So xRI[1,1]

Hence, the answer is the option 1.

Example 5: If f(x)=3sgn(x). Then what is the range of f(x) ?1) {-1,0,1}

2) {-1/3,0,1/3}

3) {-3,0,3}

4) {-1,1}

Solution:

As sgn(x) can take only three values -1,0 and 1

So 3sgn(x) can take only three values -3, 0, 3

So, the range of this function is {-3,0,3}

Hence, the answer is the option 3.

Frequently Asked Questions(FAQ)-

1. What is a function?

Ans: A relation from a set A to a set B is a function from A to B if every element of set A has one and only one image in set B.
2. What is a piecewise function?

Ans: A piecewise function is a function that is defined by different expressions for different intervals of the domain.
3. What is the domain and range of signum function?

Ans: The domain of the signum function is R and the range is the set {1,0,1}.
4. What is the greatest integer function?

Ans: The value of the greatest integer which is equal to or less than x. Such a function is called the greatest integer function.
5. What is the domain and range of fractional part function?

Ans: The domain of the signum function is R and the range belongs to [0,1).


Frequently Asked Questions (FAQs)

1. What is a function?

A relation from a set A to a set B is a function from A to B if every element of set A has one and only one image in set B.

2. What is a piecewise function?

A piecewise function is a function that is defined by different expressions for different intervals of the domain.

3. What is the domain and range of signum function?

The domain of the signum function is R and the range is the set {-1,0,1}.

4. What is the greatest integer function?

The value of the greatest integer which is equal to or less than x. Such a function is called the greatest integer function.

5. What is the domain and range of fractional part function?

The domain of the signum function is R and the range belongs to [0,1).

Articles

Get answers from students and experts
Back to top