Question

Choose the correct expression for f(x)f(x) given in the graph.

Cartesian coordinate plot of function f(x) against x. The horizontal x-axis ranges from -4 to 3 with integer tick marks. The vertical y-axis ranges from -2.5 to 2.5 with ticks every 0.5. A continuous piecewise-linear graph has a triangular peak with vertex at point (1, 2). To the left, the line segment passes through (0, 1), (-1, 0), and terminates at (-3, -2). To the right, the line segment descends through (2, 1) and terminates at (3, 0).
Plot of f(x) against x
Choose one option
Official answer and solution
Official answer
C
From
Official GATE 2016 answer key

Solution

Identify the vertex and slope of the triangular absolute value curve from the graph to deduce the algebraic expression.

The graph shows a piecewise-linear curve with a single sharp peak (vertex) opening downwards in an inverted V-shape.

  1. Peak / Vertex coordinates: The peak of the graph occurs at (x,y)=(1,2)(x, y) = (1, 2).
    An inverted absolute value function with vertex at (h,k)(h, k) has the form:
f(x)=k−a∣x−h∣f(x) = k - a|x - h|

Substituting h=1h = 1 and k=2k = 2:

f(x)=2−a∣x−1∣f(x) = 2 - a|x - 1|
  1. Determine the slope aa: Look at other identifiable grid intersections on the plot:
  • At x=0x = 0, the graph passes through (0,1)(0, 1):
    1=2−a∣0−1∣=2−a  ⟹  a=11 = 2 - a|0 - 1| = 2 - a \implies a = 1
  • At x=3x = 3, the graph intersects the x-axis at (3,0)(3, 0):
    f(3)=2−1∣3−1∣=2−2=0f(3) = 2 - 1|3 - 1| = 2 - 2 = 0
  • At x=−3x = -3, the graph terminates at (−3,−2)(-3, -2):
    f(−3)=2−∣−3−1∣=2−4=−2f(-3) = 2 - |-3 - 1| = 2 - 4 = -2

All points match a=1a = 1.

Therefore, the function represented by the graph is:

f(x)=2−∣x−1∣f(x) = 2 - |x - 1|

This corresponds to option (C).

Final answer

C

Common trap

Selecting option (D) 2+∣x−1∣2 + |x - 1|, which opens upwards and has a minimum at (1,2)(1, 2) rather than a maximum.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2016 Computer Science and Information Technology (CS) Session 2
Question
10 of 65, printed as GA Q.10
Section
General Aptitude

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.