Limits help us understand the behavior of functions at particular points and are crucial in defining continuity and tackling piecewise functions. In simple terms, a limit determines what value a function approaches as the input (or \( x \) value) gets infinitely close to a certain point.
For the exercise at hand, limits were used to ensure the function is continuous at the boundary points \( x = -1 \) and \( x = 3 \). At these points, the limit of \( ax + b \) must match the constant values from neighboring segments of the function. To verify this:
- At \( x = -1 \), we need \( \lim_{{x \to -1^+}} (ax+b) = 2 \), ensuring continuity from the right.
- Similarly, at \( x = 3 \), \( \lim_{{x \to 3^-}} (ax+b) = -2 \), guaranteeing a smooth transition.
Ensuring these conditions involve setting up equations, which allows us to find \( a \) and \( b \) and maintain the function's continuity at junctions.