
Nitin P. answered 07/12/20
Tutor
4.9
(134)
Machine Learning Engineer - UC Berkeley CS+Math Grad
We need the piecewise function to agree on its value at the overlapping points. Therefore, at x = 0, we need:
a(0) + b = 2
b = 2
and at x = 5, we need:
5a + 2 = -8
5a = -10
a = -2