Calculus · real student question

Determine the values of a and b so that the piecewise function f is continuous, where f(x) = x + 7a for x at most -2, f(x) = 7ax + b for -2 < x < 1, and f(x) = x - 7b for x at least 1.

Question

Determine aa and bb so that the following function is continuous:

f(x)={x+7a,x27ax+b,2<x<1x7b,1xf(x)=\begin{cases} x+7a, & x\leq -2 \\ 7ax+b, & -2<x<1 \\ x-7b, & 1\leq x \end{cases}

Step-by-step solution

  1. 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 x=2x=-2 and x=1x=1, 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.

  2. Write the matching condition at x=2x=-2. The first branch owns x=2x=-2, so f(2)=2+7af(-2)=-2+7a. The middle branch supplies the right-hand limit:

    limx2+f(x)=7a(2)+b=14a+b\lim_{x\to -2^{+}}f(x)=7a(-2)+b=-14a+b

    Setting them equal:

    2+7a=14a+b  21ab=2  b=21a2-2+7a=-14a+b\ \Longrightarrow\ 21a-b=2\ \Longrightarrow\ b=21a-2

  3. Write the matching condition at x=1x=1. The middle branch supplies the left-hand limit and the third branch owns x=1x=1:

    limx1f(x)=7a+b,f(1)=17b\lim_{x\to 1^{-}}f(x)=7a+b,\qquad f(1)=1-7b

    Setting them equal:

    7a+b=17b  7a+8b=17a+b=1-7b\ \Longrightarrow\ 7a+8b=1

  4. Solve the two-equation system by substitution. Put b=21a2b=21a-2 into 7a+8b=17a+8b=1:

    7a+8(21a2)=1  7a+168a16=1  175a=17  a=171757a+8(21a-2)=1\ \Longrightarrow\ 7a+168a-16=1\ \Longrightarrow\ 175a=17\ \Longrightarrow\ a=\frac{17}{175}

  5. Back-substitute for bb and reduce. Using b=21a2b=21a-2 with 2117=35721\cdot 17=357:

    b=3571752=357175350175=7175=125b=\frac{357}{175}-2=\frac{357}{175}-\frac{350}{175}=\frac{7}{175}=\frac{1}{25}

  6. Check both junctions in exact arithmetic. With a=17175a=\tfrac{17}{175} and b=125b=\tfrac{1}{25}: at x=2x=-2 the left branch gives 2+7a=3325-2+7a=-\tfrac{33}{25} and the middle gives 14a+b=3325-14a+b=-\tfrac{33}{25}; at x=1x=1 the middle gives 7a+b=18257a+b=\tfrac{18}{25} and the right branch gives 17b=18251-7b=\tfrac{18}{25}. Both pairs match exactly as fractions, so ff is continuous everywhere.

Answer

a=17175,b=125a=\frac{17}{175},\qquad b=\frac{1}{25}

Need to solve a different problem like this? Open the solver →