Consider the functionf(x)=⎧⎨⎩ax−2for−2<x<−1−1for−1≤x≤1a+2(x−1)2for1<x<2What is the value of a for which f(x) is continuous at x=−1 and x=1?