The function f(x)=begincases2x+a,&x<1\\5,&x=1\\3x-b,&x>1endcases is continuous at x=1. The value of a+b is
Single correct option
The function f(x)=⎩⎨⎧2x+a,5,3x−b,x<1x=1x>1 is continuous at x=1. The value of a+b is
A.5
B.−1
C.1
D.8
Show answer and solution
Answer:(C) 1
Continuity needs limx→1−f=f(1)=limx→1+f. The left limit gives 2+a=5, so a=3. The right limit gives 3−b=5, so b=−2. Therefore a+b=1. The value 8 results from taking b=5 and forgetting the sign in 3−b.