Determine and so that the following function is continuous:
Identify where continuity can actually fail. Each of the three branches is a polynomial, so it is continuous wherever it applies. Trouble can only arise at the two breakpoints and , where the formula switches. Continuity at a breakpoint means the left-hand limit, the right-hand limit and the function value all coincide — which here reduces to making the two neighbouring formulas agree at that point. Two breakpoints give two equations, matching the two unknowns.
Write the matching condition at . The first branch owns , so . The middle branch supplies the right-hand limit:
Setting them equal:
Write the matching condition at . The middle branch supplies the left-hand limit and the third branch owns :
Setting them equal:
Solve the two-equation system by substitution. Put into :
Back-substitute for and reduce. Using with :
Check both junctions in exact arithmetic. With and : at the left branch gives and the middle gives ; at the middle gives and the right branch gives . Both pairs match exactly as fractions, so is continuous everywhere.
Need to solve a different problem like this? Open the solver →