x=2 belongs to the second piece, because of x≥2.f(2)=3(2)−1=5.
3⋅2−1=5
2
Find the limit from the right
For x>2 the function is 3x−1, a polynomial, so substitution gives the limit 5.
x→2+lim(3x−1)=5
3
Find the limit from the left
For x<2 the function is x2+k. Substitution gives 4+k, which still depends on k.
x→2−lim(x2+k)=4+k
4
Make them agree
Continuity needs the left limit to equal the right limit and the value, all 5. Solve 4+k=5 to get k=1. With k=1, both one-sided limits equal f(2)=5.
4+k=5k=1
Result
k=1.
Your turn
1. One like the example
Find a so that g(x)=ax+1 for x<1 and g(x)=x2+3 for x≥1 is continuous.
Show the answer and explanation
a=3.
g(1)=1+3=4, from the second piece. The left piece approaches a+1, so continuity needs a+1=4, and a=3.
a+1=4a=3
2. A variation
Find c so that f(x)=cx+2 for x<3 and f(x)=cx2−4 for x≥3 is continuous. This time c appears in both pieces.
Show the answer and explanation
c=1.
The left piece approaches 3c+2, and f(3)=9c−4. Setting them equal gives 3c+2=9c−4, then 6=6c, and c=1. Both pieces then reach 5 at x=3.
3c+2=9c−46=6cc=1
3. Somewhere new
A delivery service charges C(w)=5+2w dollars for a package of w kilograms, up to 10 kg, and C(w)=3w+b dollars for a heavier package. What value of b keeps the charge from jumping at 10 kg?
Show the answer and explanation
b=−5. A 12 kg package then costs $31.
C(10)=5+2(10)=25, from the first piece. The second piece approaches 3(10)+b=30+b. Continuity needs 25=30+b, and b=−5. Then C(12)=36−5=31 dollars.
5+2(10)=3(10)+b25=30+bb=−5
Keep exploring
In Graph, the two pieces meet at (2,5). Change x2+1 to x2+3 and the left piece ends at height 7 instead, a jump discontinuity.