Advertisements
Advertisements
Question
Draw the graph of the following function:
f(x) = |x – 2|
Advertisements
Solution
Let y = f(x) = |x – 2|
f(x) = `{(x - 2 if x - 2 >= 0),(- (x - 2) if x - 2 < 0):}`
f(x) = `{(x - 2 if x >= 2),(- x + 2 if x < 2):}`
y = x - 2, x ≥ 2
| x | 2 | 3 | 4 | 5 |
| y | 0 | 1 | 2 | 3 |
y = - x + 2, x < 2
| x | 0 | -1 | -2 | -3 |
| y | 2 | 3 | 4 | 5 |
Plot the points (2, 0), (3, 1) (4, 2), (5, 3), (0, 2), (-1, 3), (-2, 4), (-3, 5) and draw a line.
The graph is as shown in the figure.

APPEARS IN
RELATED QUESTIONS
Determine whether the following function is odd or even?
f(x) = x2 – |x|
If f(x) = ex and g(x) = loge x then find (f + g)(1)
If f(x) = ex and g(x) = loge x then find (3f) (1).
If f(x) = ex and g(x) = loge x then find (5g)(1).
Draw the graph of the following function:
f(x) = e2x
Draw the graph of the following function:
f(x) = e-2x
Draw the graph of y = 9 - x2.
If f(x) = `{(x^2 - 4x if x >= 2),(x+2 if x < 2):}`, then f(5) is
The graph of y = ex intersect the y-axis at:
If f(x) = 2x and g(x) = `1/2^x` then (fg)(x) is:
