Question:medium

Determine \(a\) and \(b\) if \(f(x)\) is a continuous function, where

\[ f(x) = \begin{cases} 2, & x \le 3 \\ ax + b, & 3 < x < 5 \\ 5, & x \ge 5 \end{cases} \]

Show Hint

Equate the left and right limits at x = 3 and x = 5 to get two equations in a and b.
Updated On: Oct 22, 2026
Show Solution

Solution and Explanation

Step 1: Think of the graph:
The graph is flat at height 2 up to $x = 3$ and flat at height 5 from $x = 5$.
The line $y = ax + b$ must join these two flat parts without a jump.

Step 2: Use the two joining points:
The line must pass through $(3, 2)$ and through $(5, 5)$.
This gives $3a + b = 2$ and $5a + b = 5$.

Step 3: Find the slope:
The slope of the line through the two points is the value of $a$.
\[ a = \frac{5 - 2}{5 - 3} = \frac{3}{2} \]

Step 4: Find the intercept:
Use the point $(3, 2)$: $2 = \frac{3}{2}(3) + b$.
\[ b = 2 - \frac{9}{2} = -\frac{5}{2} \]

Step 5: Check the other point:
At $x = 5$: $\frac{3}{2}(5) - \frac{5}{2} = \frac{15 - 5}{2} = 5$. This matches.

Final Answer:
\[ \boxed{a = \frac{3}{2}, \quad b = -\frac{5}{2}} \]
Was this answer helpful?
0