F (x) are respectively equal to: F (x) = ax + 1 x ≤ 2 F (x) = x ^ 2 x > 2 find a B

F (x) are respectively equal to: F (x) = ax + 1 x ≤ 2 F (x) = x ^ 2 x > 2 find a B

F (x) are equal to:
f(x)=ax+b x≤2
f(x)=x^2 x>2
1. Continuous
2a+b=2²
2a+b=4
2. Derivable
Left derivative = a
Right derivative = 4
a=4
therefore
b=4-8=-4
Namely
a=4,b=-4