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) = x² + k for x < 2 and f(x) = 3x − 1 for x ≥ 2.

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

Find the value at 2

x = 2 belongs to the second piece, so f(2) = 3(2) − 1 = 5.

3⋅2−1=5

Find the limit from the right

For x > 2 the function is 3x − 1, which approaches 5.

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

Find the limit from the left

For x < 2 the function is x² + k, which approaches 4 + k.

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

Make them agree

Continuity needs 4 + k = 5, so k = 1. Then both one-sided limits equal f(2) = 5.

4+k=5k=1

Result

k = 1.

Your turn

Find a so that g(x) = ax + 1 for x < 1 and g(x) = x² + 3 for x ≥ 1 is continuous.

Show the answer and explanation

a = 3.

g(1) = 1 + 3 = 4, and the left piece approaches a + 1, so continuity needs a + 1 = 4.

a+1=4a=3

Keep exploring

In Graph, the two pieces meet at (2, 5). Change x² + 1 to x² + 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.

Make it concrete

Try in the workspace

Open the example inputs, change a value and keep a useful result on your board.

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

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