Let
f(x) = ax + 3 if x > 0
f(x) = ab if x = 0
f(x) = bx + c if x < 0
If f(2) = 5, f(0) = 2, and f(-2) = 0, and a, b, and c are nonnegative integers, then what is a + b + c?
for f(2) the piece ax + 3 applies since 2 is > 0
f(2) = a(2)+3 = 5
so a =1
for f(0) the second piece applies because x = 0
f(0) = ab = 2 we know a = 1 so b = 2
for f(-2) the third piece applies since -2 <0
f(-2) = bx+c = 0
2 (-2) + c = 0 so c = 4 I'll let you finish !
for f(2) the piece ax + 3 applies since 2 is > 0
f(2) = a(2)+3 = 5
so a =1
for f(0) the second piece applies because x = 0
f(0) = ab = 2 we know a = 1 so b = 2
for f(-2) the third piece applies since -2 <0
f(-2) = bx+c = 0
2 (-2) + c = 0 so c = 4 I'll let you finish !