Recent chats

How can I choose a constant to make a piecewise function continuous?

Quick answer

At the point where the formula changes, continuity requires the left-hand limit and right-hand limit to agree and their common value to equal the function’s value at that point. Calculate each side using its own formula, set them equal, and solve for the unknown constant. Then substitute the result back to check that both limits and the defined function value match. [S1]

LET’S WORK THROUGH IT

The question, the details, the next step.

Question

How do I choose a constant so a piecewise function is continuous at the point where its rule changes?

Geez

At the joining point, make the value approached from the left equal the value approached from the right, then make that shared value equal the function’s actual value at the point. Continuity requires the function to be defined there, its two-sided limit to exist, and that limit to equal the function value. [S1]

For example, suppose

f(x) = x + 1 when x < 2, and f(x) = x² + c when x ≥ 2.

The joining point is x = 2. The left-hand rule gives a limit of 2 + 1 = 3. The right-hand rule also defines f(2), because its condition includes x = 2; that value is 2² + c = 4 + c. Set them equal: 3 = 4 + c, so c = -1. The rules then meet at 3.

Follow-up question

Why do I use the right-hand formula to find f(2), rather than just compare the formulas?

Geez

Because the inequalities tell you which piece actually includes the joining point. In this example, x ≥ 2 includes x = 2, so f(2) is calculated with x² + c. The left piece, x + 1, applies only when x < 2; it tells you what the function approaches from the left, not what its assigned value is at 2.

Keep the three checks distinct:

  1. Left-hand limit: use the formula for x < 2.
  2. Right-hand limit: use the formula for x > 2 (here, the same expression as the x ≥ 2 piece).
  3. Function value: use the piece whose condition includes x = 2.

Here the right-hand limit and f(2) are both 4 + c. Setting that equal to the left-hand limit, 3, satisfies all three checks.

Follow-up question

Can you show the full check after solving, so I know I have not only found a plausible constant?

Geez

Substitute c = -1 into the piecewise definition:

f(x) = x + 1 when x < 2, and f(x) = x² - 1 when x ≥ 2.

From the left, as x approaches 2, x + 1 approaches 3. From the right, x² - 1 approaches 2² - 1 = 3. At the point itself, the second piece applies, so f(2) = 2² - 1 = 3. The two-sided limit exists, and it equals f(2); therefore the function is continuous at x = 2. [S1]

Write all three results explicitly. If the left and right limits differ, the two-sided limit does not exist, so changing a constant in the point’s assigned value alone cannot make the function continuous.

Follow-up question

What reusable setup should I write if my problem uses different formulas or puts the joining point in the other piece?

Geez

Let the joining point be x = a. Identify which formula applies for x < a, which applies for x > a, and which piece includes x = a. Call the unknown constant c. Then calculate L, the left-hand limit; R, the right-hand limit; and V = f(a). For continuity, solve L = R and then make their common value equal V. If the point belongs to the left piece instead, use that piece to calculate V; the method does not depend on the right piece owning the endpoint.

Copyable setup:

Joining point: a = [point] Left-hand limit: L = [evaluate left formula as x approaches a] Right-hand limit: R = [evaluate right formula as x approaches a] Function value: V = [evaluate the piece containing a at x = a] Continuity equations: L = R and R = V Solution: c = [solved value] Check: L = R = V = [common value]

This method checks continuity at that joining point. It does not by itself establish continuity at other points in the function’s domain.

A practical checklist

  • Find the point where the piecewise rule changes.

  • Identify the formulas used on either side and the piece that includes the joining point.

  • Evaluate the left-hand and right-hand limits using their respective formulas.

  • Evaluate the function at the joining point using the piece that includes it.

  • Set the limits equal, set their common value equal to the function value, and solve for the constant.

  • Substitute the result back and confirm the left limit, right limit, and function value all match.

A few more useful answers

What if the two side limits cannot be made equal?

Then the two-sided limit does not exist at that point, so the function cannot be continuous there. Check your limit expressions and whether the unknown constant appears in the pieces you are allowed to change.

Does matching the two limits guarantee continuity?

Not by itself: the common limit must also equal the function’s value at the joining point. The function must be defined there as well. [S1]

Can this method check continuity everywhere?

It checks the joining point you used. A piecewise function may need separate checks at other rule changes; this calculation alone does not establish continuity elsewhere.

Sources

References used for this guide.

  1. [S1] OpenStax Calculus Volume 1, Section 2.4: Continuity
    openstax.org · Checked

YOUR QUESTION. YOUR DETAILS.

Let’s work through your situation.

Get a tailored answer or help with your next task. Starts at $1, with a quote before you pay.

Ask your own question
← Back to Geez at Work