Let two functions R→R, R→R are defined as f(a) g(a)

Let functions f: R->R and g: R->R be defined by f(a) = a2 and g(a) = a + 1. Choose the correct option.

  1. A.

    The composition of f and g is commutative.

  2. B.

    The composition of f and g is not commutative.

  3. C.

    The composition of f and g is commutative and equal to f(a2 + 1)

  4. D.

    The composition of f and g is commutative and equal to (a2 + 1)

Attempted by 186 students.

Show answer & explanation

Correct answer: B

fog = f(g(a)) = f(a + 1) = (a + 1)2

gof = g(f(a)) = g(a2) = a2 + 1

fog, gof, so they are not commutative.

Explore the full course: Dsssb Tgt Computer Science Paper 2