Chalk−1

Math · Calculus I · Worked example

Make a piecewise function continuous

Find the value of k that makes f continuous at x=2, where f⁡(x)=x2+k for x<2 and f⁡(x)=3⁢x−1 for x≥2.

f⁡(x)={x2+k,x<23⁢x−1,x≥2

Try one — Chalk checks each line

Find the value at 2

x=2 belongs to the second piece, because of x≥2. f⁡(2)=3⁢(2)−1=5.

3⋅2−1=5

Find the limit from the right

For x>2 the function is 3⁢x−1, a polynomial, so substitution gives the limit 5.

limx→2+(3⁢x−1)=5

Find the limit from the left

For x<2 the function is x2+k. Substitution gives 4+k, which still depends on k.

limx→2−(x2+k)=4+k

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)=a⁢x+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)=c⁢x+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 3⁢c+2, and f⁡(3)=9⁢c−4. Setting them equal gives 3⁢c+2=9⁢c−4, then 6=6⁢c, and c=1. Both pieces then reach 5 at x=3.

3⁢c+2=9⁢c−46=6⁢cc=1

3. Somewhere new

A delivery service charges C⁢(w)=5+2⁢w dollars for a package of w kilograms, up to 10 kg, and C⁢(w)=3⁢w+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.

Return to the concept →
Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

See the pieces meet in Graph Solve for k in Math Check the left limit in Math Study the 8 key terms Open worked example on a board Intermediate Value Theorem in Math Reference

Your existing work stays on this device. Examples open as editable copies.