What is a Function: Types, Graph & Composition

Collegedunia Team logo

Collegedunia Team

Content Curator

A function, in mathematics, denotes a special relationship between an element of a non-empty set with an element of another non-empty set. Meaning, from a set X to a set Y, a function is an assignment of an element of Y to each element of X, where set X is the domain of the function and the set Y is the codomain of the function.

  • In mathematics, a function is simply a rule that allocates to each element of a set (called the domain) exactly one element of another set (called the range).
  • These functions are usually represented by letters such as f, g, and h, etc, and the value of a function f at an element x of its domain is expressed by f(x).
  • Moreover, a function is uniquely represented by the set of all pairs (x, f(x)), which is called the graph of the function.
  • Functions are a fundamental part of Calculus in mathematics. 

There are several types of functions as well. The types of functions in maths are:

  • Injective function or One to one function
  • Surjective functions or Onto function
  • Polynomial function
  • Inverse Functions

Read More: Eccentricity

Key Terms: Domain, Calculus, Particular equation, Function, Into funtion, Onto Function, Polynomial function, Quadratic Functions, Constant Function


What are Functions?

[Click Here for Sample Questions]

A function is simply a relationship between an element of one non-empty set with one element of another non-empty set. If we expand the concept and try to understand it in simple terms, an equation is a function if, for any X in the domain of the equation (here domain is all possible values of X that can be plugged into the particular equation), the equation will produce exactly one value of Y when we evaluate the equation at a specific X.

Functions

Functions

For example, let us take two equations and try to find a function in them.

  1. Y = X+ 3
  2. Y2= X + 3

In the case of the first equation, for a given X, there is only one way to square it and 3 have to be added to get the result. So, no matter what value of X we put in the equation, there will be one possible value Y as we evaluate the equation at the value of X. Thus, the equation Y= X2+ 3, is a function.

In the case of the second equation, for the value X=6, the equation Y= X+3 yields Y2=9. It means Y will be either 3 or -3. Thus, for one unique value of X=6, Y gives two values as per the second equation. Thus, this equation is not a function.

Relations and Functions Detailed Video Explanation

Also Check-Out:


What is a Function in Maths? 

[Click Here for Previous Year Questions]

A function is a relation or the association of each element 'a' of set A which is a non-empty set, to at least to a single element 'b' of another non-empty set B.

Thus, a relation of set A (the domain of the function) to another set B (the co-domain of the function) is formed that can be called a function.

Function in Maths

Function in Maths

It can be mathematically transcribed as:

f = {(a,b)| for all a ∈ A, b ∈ B}
  • A relation is described as a function if every element of set A has one and only one image in set B.
  • A function is a relation from a non-empty set B to the domain of a function is A and no two distinct ordered pairs in f can have the same first element.
  • A function from A → B and (a,b) ∈ f, then f(a) = b, where 'b' is the image of 'a' and 'a' is the pre-image of 'b'. Here the set A is called the domain of the function and set B is to be called the co-domain of it.

Composition of Functions

[Click Here for Sample Questions]

Assume that f : A → B and g: B→ C are two functions.

Fo this, the composition of f and g can be expressed as f(g) and it can be shown as the function f ∘∘ g = f(g(x)) for x ∈ A.

The two functions are f(x) and g(x).

Consider that f(x) = (x+1) and g(x) = x2. In case of that,

f ∘∘ g = f(x2)

→ f(x2) = x+ 1

g ∘∘ f = g(f(x))

→ g(f(x)) = g((x+1))

= (x+1)2 = x2+ 2x + 1

Hence, we can say that the composition of functions is not commutative. f ∘∘ g ≠ g ∘∘ f

Also read:


Domain, Co-domain and Range

[Click Here for Previous Year Questions]

There are two major concepts needed to be considered while we talk about functions are ‘domain’ and ‘range’.

  • A domain is the set of values that can be plugged in as input in the function while it can be defined.
  • A Co-domain is the set of values that have the potential to come out as output of a function.
  • The range is all the values that can be obtained as the output of the function involved.

Domain, Co-domain and Range

Domain, Co-domain and Range

Identification of a Function in Math

A function in math can simply be signified as the correspondence from one value x of the first set to another value y belonging to the second set. This correspondence can be of any of the four types:

  • 1 to 1
  • Many to 1
  • 1 to Many
  • Many to Many

Examples of Function

[Click Here for Sample Questions]

From the above-written explanation, we can interpret that whenever a variable quantity Y is a function of another variable quantity X, it means Y depends on X; thus, the value of Y can be determined by plugging any value of X.

This dependence is written as, Y=f (X)

  • So, the area(A) of a circle can be expressed in terms of its radius(r), A = π r2. Here it can be said that area A is dependent on the radius r. In the terms of functions, we say that A is a function of r.
  •  Let’s assume volume V of a sphere is a function of its radius(r). Then the dependence of V on r can be written as V = 4/3 π r3.
  • The acceleration of a body, a, with fixed mass m can be indicated as a function of the force F applied on the body. Thus, a = F/m.

Also Read: Midpoint Formula


Type of Functions

[Click Here for Previous Year Questions]

The types of functions can be defined on the basis of the domain, range, and function expression. There are numerous types of functions in mathematics. Some of them are mentioned below:

One to One function

Also known as an injective function, a one-to-one function is defined by f: A→ B such that every element of set A is connected to a distinct element in set B. Here, for the given function- every element of one domain has a distinct image or co-domain element.

One to one function

One to one function

Many to one function

It can be defined by the function f: A → B, such that more than one element of set A is connected to the same element in set B. In this case, more than one element has the same co-domain or image.

Many to one function

Many to one function

Onto functions

In the case of an onto function, every element in the codomain is related to the domain element. For a function defined by f: A → B, such that every element in set B must have a pre-image in set A.

Onto functions

Onto functions

Into Function

Here, there will be certain elements in the co-domain that would not have any pre-image. The elements in set B are in excess and not connected to any of the elements in set A. The into the function is exactly opposite in properties to an onto function.

Into Function

Into Function

Constant Functions

It is the kind of function which gives the same value of output for any input. It is expressed as, f(x) = c, c =constant.

For example, f(x) = 4 is a constant function. Whatever we put as x we get 4 as output.

Polynomial functions

It is a type of function which can be expressed as a polynomial. Thus, assuming that P(x) = an xn + an-1 xn-1+.……….…+a2 x2 + a1 x + a0, then for x ≫ 0 or x ≪ 0, P(x) ≈ an xn

Thus, polynomial functions are known to approach power functions for very large variable values.

Polynomial functions

Polynomial functions

Quadratic function

Here is a type of function which has the highest power of 2 in the polynomial function. It is expressed as, f(x)=a(x-h)2+k.

For example, f(x) = x2 + 2 is a quadratic function

Read More: Differential Equation


Representation of Functions in Math

[Click Here for Sample Questions]

The rule that mentions a function can come in a variety of forms depending on how it is defined. It can be expressed as piecewise-defined functions or in terms of other formulas.

In case we express f(x) = √x, for x ≥ 0, then, here, the inputs can be denoted as numbers and the 'taking square root' function takes all non-negative real numbers, yielding the output as f(x). Most often it is a formula, as in:

\(\begin{equation*} g(x) = \begin{cases} 2x & x < 0\\ x^2 & x \geq 0\\ \end{cases} \end{equation*} \)

Here, domain of g = real numbers


Function in Algebra

[Click Here for Previous Year Questions]

A function is an equation for which any value of x that can be put into the equation will produce exactly one and only one output such as y. It is mathematically translated as;

y = f(x)

(Where, x is an independent variable and y is a dependent variable.)


What is a Function on a Graph?

[Click Here for Sample Questions]

It is done by placing the values of the independent variable on the X-axis and values of the dependent variable along the Y-axis in a cartesian plane. All the points of the graph must satisfy the function y = f(x). For instance:

Let us assume, y = x + 3

  • when x = 0, y = 3
  • when x = -2, y = -2 + 3 = 1
  • when x = -1, y = -1 + 3 = 2
  • when x = 1, y = 1 + 3 = 4
  • when x = 2, y = 2 + 3 = 5

Algebra of Functions

Algebra of functions refers to the rules and operations that can be applied to functions in algebraic expressions. In case of functions f(x) and g(x), where f: X → R and g: X → R, where x ϵ X, we have:

  • (f-g) (x) = f(x) - g(x)
  • (f+g) (x) = f(x) + g(x)
  • (f.g) (x) = f(x) .g(x)
  • (k f(x)) = k (f(x)), here, k = real number
  • (f/g)(x) = f(x) /g(x), here, g(x) ≠ 0

Things to Remember

  • A function is referred to as a process or relationship between an element of one non-empty set with one element of another non-empty set.
  • In other words, a function is a relation or the association of each element 'a' of set A which is a non-empty set, to at least to a single element 'b' of another non-empty set B.
  • A relation of set A (the domain of the function) to another set B (the co-domain of the function) is formed which can be called a function.
  • A domain refers to the set of values that can be plugged in as input in the function while it can be defined.
  • A Co-domain is a set of values that have the potential to come out the output of a function.
  • The range is all the values that can be obtained as the output of the function involved.
  • The area (A) of a circle can be expressed in terms of its radius(r), A = πr2

Read More:


Previous Year Questions 


Sample Questions

Ques: What is a function? (2 marks)

Ans: A function is a process or relationship between an element of one non-empty set with one element of another non-empty set. In other words, for every single input, there will one unique output.

Ques: What is a domain? (2 marks)

Ans: A domain is the set of values that can be plugged in as input in the function while it can be defined.

Ques: What are a co-domain and a range? (2 marks)

Ans: A Co-domain is the set of values that have the potential to come out as output for every input of a function.

The range is all the values that can be obtained as the output of the function involved.

Ques: Find out the domain for the following function: (2 marks)
fx=x-4x2-2x-15

Ans: Here the denominator cannot be zero because if it becomes zero f(X) becomes undefinable.

Thus, x2-2x-15=0

Or, (x-5)(x+3)=0

Or, x= 5, -3

Thus, the domain of the function is any number except 5, -3.

Ques: Assume that the length of a rectangle is twice its breadth. Express the area of the rectangle as a function of its length and diagonal length. (3 marks)

Ans: (i) If the length=l, then breadth will be l/2. Now if the area is denoted as A, it can be written as,

A = f(l) = l × l/2 = l2/2

So, area as a function of length = l2/2

(ii) The diagonal length is d, then

d2 = l2 + l2 /4 = 5l2/4

so, l =2d/√5, and b = l/2 =d/√5

Now, the area A can be written as the function of d as,

A = g(d) = lb = 2d/ √5 × d/ √5

=2d2 /5

So, area as a function of diagonal length = 2d2 /5

Ques: What is the general form of a Quadratic function? (1 Mark)

Ans: The general form of a quadratic function is written as, f(x)=ax2+bx+c, where a ≠ 0.

Ques: Let A = {-1, 0, 1, 2} and B = {2, 3, 4, 5}. Which of the following are the functions from A to B. give reason. (3 marks)
(i) f={(-1,2),(-1,3),(0,4),(1,5)} 
(ii) g={(0,2),(1,3),(2,4)} 
(iii) h = {( − 1,2),( 0 ,3) , (1,4), (2, 5 )}

Ans: The correct answer is- (i) No, as one element, that is -1, has two different images. 
(ii) No, as dom ( g ) ≠ A (g)≠A. 
(iii) Yes, as each element in A has a unique image in B. 
(i) No, as two different ordered pairs (-1,2) and (-1,3) have the same first coordinate. 
(ii) No, as dom ( g ) = { 0 , 1 , 2 } ≠ A (g)={0,1,2}≠A. 
(iii) Yes, dom (h) = A, and no two different ordered pairs have the same first coordinate.

Ques: Find which of the following relations are functions? (1 mark)
(a) R1 = {(4, 7) (5, 7) (6, 7) (7, 7)}
(b) R2 = {(1, 3) (1, 4) (1, 5) (1, 6)}
(c) R3 = {(a,b) (b, c) (c, d) (d, e)}

Ans: R3 is a function as each element in one set is associated with a unique element in the other set, which is why it is a function.

Ques: If f(x) = 4x – 3, x∈R and f(x) = 15, then find the value of x? (2 marks)

Ans: Given f(x) = 4x – 3

f(x) = 15

Equating both, we get the value of x as such,

4x-3 = 15

4x = 15+3

x = 18/4

x = 9/2

Ques: The function S(r) =4πr2 gives the surface area of a sphere with a radius r. Find the surface area of a sphere for radius 2? (2 marks)

Ans: Given S(r) =4πr2

Substitute 2 in the place of the radius in the given function to find the surface area of the sphere with radius 2.

S(2) = 4.π.22

= 4π.4

= 16π

Therefore the surface area of the Sphere for Radius 2 is 16π.

Ques. Conisder they two functions f and g as, f (x) = √(x - 2) and g (x) = ln( 1 + x 2). Now, determine the composite function (g ∘∘ f )( x ). (3 marks)

Ans. The functions given are, f(x) and g(x).

(g ∘∘ f )( x ) = g ( f (x))

Since f (x) =√(x - 2), we need to replace x = f (x). Thus, we get:

(g ( f (x)) = ln( 1+ f (x)2)

= ln( 1 +√(x - 2) 2)

= ln(1 + ( x - 2 ))

= ln((x - 1))

∴ (g ∘∘ f )( x ) = ln(x - 1)

For Latest Updates on Upcoming Board Exams, Click Here: https://t.me/class_10_12_board_updates 


Read Also:

CBSE CLASS XII Related Questions

1.
Let f: R→R be defined as f(x) = 3x. Choose the correct answer.

    • f is one-one onto
    • f is many-one onto
    • f is one-one but not onto
    • f is neither one-one nor onto

    2.

     If \(\frac{d}{dx}f(x) = 4x^3-\frac{3}{x^4}\) such that \(f(2)=0\), then \(f(x)\) is

      • \(x^4+\frac{1}{x^3}-\frac{129}{8}\)

      • \(x^3+\frac{1}{x^4}+\frac{129}{8}\)

      • \(x^4+\frac{1}{x^3}+\frac{129}{8}\)

      • \(x^3+\frac{1}{x^4}-\frac{129}{8}\)

      3.

      Evaluate \(\begin{vmatrix} cos\alpha cos\beta &cos\alpha sin\beta  &-sin\alpha \\   -sin\beta&cos\beta  &0 \\   sin\alpha cos\beta&sin\alpha\sin\beta  &cos\alpha  \end{vmatrix}\)

          4.
          By using the properties of definite integrals, evaluate the integral: \(∫_0^π log(1+cosx)dx\)

              5.
              Find the inverse of each of the matrices,if it exists \(\begin{bmatrix} 2 & 1 \\ 7 & 4  \end{bmatrix}\)

                  6.
                  Find the following integral: \(\int (ax^2+bx+c)dx\)

                      CBSE CLASS XII Previous Year Papers

                      Comments



                      No Comments To Show