Given:
f(x)=⎩⎨⎧5,ax+b,21,x≤2(i)2<x<10(ii)x≥10(iii)
From (i), (ii), and (iii), f(x) is defined for x≤2 or 2<x<10 or x≥10, i.e., for (−∞,2]∪(2,10)∪[10,∞).
Because f(x) is a continuous function (on its domain), we know that f(x) is also continuous at partitioning points x=2 and x=10.
Since f(x) is continuous at partitioning point x=2, therefore,
x→2−limf(x)=x→2+limf(x)=f(2)
Left Hand Limit at x=2
x→2−limf(x)=5[By (i)]
Right Hand Limit at x=2
x→2+limf(x)=x→2+lim(ax+b)=2a+b[By (ii)]
Since f(x) is continuous at x=2,
f(2)=5
Thus,
2a+b=5...(iv)
Continuity at x=10
Since f(x) is continuous at partitioning point x=10, therefore,
x→10−limf(x)=x→10+limf(x)=f(10)
Left Hand Limit at x=10
x→10−limf(x)=x→10−lim(ax+b)=10a+b[By (ii)]
Right Hand Limit at x=10
x→10+limf(x)=21[By (iii)]
Since f(x) is continuous at x=10,
f(10)=21
Thus,
10a+b=21...(v)
Solving Equations
From equations (iv) and (v), we have:
- 2a+b=5
- 10a+b=21
Subtract equation (iv) from equation (v),
(10a+b)−(2a+b)=21−5
8a=16
a=2
Substitute a=2 in equation (iv):
2(2)+b=5
4+b=5
b=1
Final Answer
a=2,b=1