1. Continuity at x=100
The value from the first slab and the value from the second slab must agree with C(100):
limx→100−C(x)=5(100)=500,limx→100+C(x)=100a+b
so the condition is
100a+b=500…(i)
2. Continuity at x=300
limx→300−C(x)=300a+b,limx→300+C(x)=7(300)−200=1900
so
300a+b=1900…(ii)
3. The values of a and b
Subtracting (i) from (ii):
200a=1400⟹a=7
and then from (i), b=500−700=−200. So
a=7,b=−200
Check. At x=100: 7(100)−200=500=5(100). At x=300: 7(300)−200=1900, which is also what the third slab gives. ✓
4. The one-sided derivatives at x=100
On the left of 100 the rule is C(x)=5x, and on the right it is C(x)=7x−200, so
L.H.D.=limh→0−hC(100+h)−C(100)=limh→0−h5(100+h)−500=5
R.H.D.=limh→0+hC(100+h)−C(100)=limh→0+h7(100+h)−200−500=7
5. Continuous is not the same as smooth
No — the two claims are different, and this function shows exactly why.
The advertisement is a statement about continuity: the bill has no sudden jump, and parts 1-3 show that is achieved. But at x=100 the left-hand derivative is 5 and the right-hand derivative is 7; they are unequal, so C is not differentiable at x=100.
What the customer experiences is a bill that never leaps, but whose rate leaps: the hundred-and-first unit suddenly costs ₹7 instead of ₹5. Graphically the line has no break but does have a corner. Continuity forbids gaps; differentiability forbids corners as well, and only the first has been arranged here.