Class 12 Maths, Worked in Full Past papersGet updates
Chapter 5 · Continuity and Differentiability

Exercise 5.1 · Q17: Joining ax+1ax+1 and bx+3bx+3 at x=3x=3

Exercise 5.1Continuity at a point · Section 5.2
The question

17. Find the relationship between aa and bb so that the function ff defined by

f(x)={ax+1,if x≤3bx+3,if x>3f(x)=\begin{cases} ax+1, & \text{if } x\le 3\\ bx+3, & \text{if } x\gt 3\end{cases}

is continuous at x=3x=3⁠.

Exam answer

At x=3x = 3⁠, f(3)=3a+1f(3) = 3a + 1⁠.

LHL=lim⁡h→0f(3−h)=lim⁡h→0(a(3−h)+1)=3a+1RHL=lim⁡h→0f(3+h)=lim⁡h→0(b(3+h)+3)=3b+3\begin{aligned} \text{LHL} &= \lim_{h\to0} f(3 - h) \\ &= \lim_{h\to0}\bigl(a(3 - h) + 1\bigr) \\ &= 3a + 1 \\ \text{RHL} &= \lim_{h\to0} f(3 + h) \\ &= \lim_{h\to0}\bigl(b(3 + h) + 3\bigr) \\ &= 3b + 3 \end{aligned}

For continuity at x=3x = 3⁠, LHL=RHL=f(3)\text{LHL} = \text{RHL} = f(3)⁠, that is,

3a+1=3b+3⇒ 3a−3b=2\begin{aligned} 3a + 1 &= 3b + 3 \\ \Rightarrow\ 3a - 3b &= 2 \end{aligned}

∴ a−b=23\therefore\ a - b = \dfrac23⁠, that is, a=b+23a = b + \dfrac23⁠.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

At a junction point, continuity means three numbers agree: the value f(3)f(3)⁠, the left-hand limit and the right-hand limit. Here the value and the left-hand limit both come from the same rule ax+1ax+1 (because "x≤3x\le3" includes 33⁠), so they agree automatically. The only real condition is that the two straight lines reach the same height at x=3x=3: 3a+1=3b+33a+1=3b+3⁠. That single equation links aa and bb⁠; it does not fix either of them.

Given, to find, and the plan
Given
The two-piece function ff above, where aa and bb are real constants.
To find
The condition on aa and bb under which ff is continuous at x=3x=3⁠.
Plan
(1) Check that 33 is in the domain and find f(3)f(3) from the correct rule. (2) Find the left-hand limit at 33⁠. (3) Find the right-hand limit at 33⁠. (4) Demand that all three are equal and solve for the relation. (5) Show the relation is enough, not only necessary, and picture it.

Basics you need

1Continuity at a point

ff is continuous at a point cc of its domain when lim⁡x→cf(x)=f(c)\lim_{x\to c}f(x)=f(c)⁠. In practice: the left-hand limit, the right-hand limit and the value f(c)f(c) all exist and are equal (Definition 1, Section 5.2). Basics: what a limit is

2Left-hand and right-hand limits

lim⁡x→c−f(x)\lim_{x\to c^-}f(x) uses only xx slightly less than cc⁠; lim⁡x→c+f(x)\lim_{x\to c^+}f(x) uses only xx slightly greater than cc⁠. Writing x=c−hx=c-h or x=c+hx=c+h with h>0h\gt0⁠, h→0h\to0⁠, makes this concrete. Basics: left-hand and right-hand limits

3Reading a piecewise rule

For each input, first decide which condition it satisfies, then use that line only. The input 33 satisfies "x≤3x\le3", so f(3)f(3) comes from ax+1ax+1⁠, never from bx+3bx+3⁠. Basics: piecewise functions

4Limit of a linear expression

As h→0h\to0⁠, mh→0mh\to0 for any fixed number mm⁠. So lim⁡h→0(k+mh)=k\lim_{h\to0}(k+mh)=k⁠. This is all the limit work this question needs. Basics: what a limit is

Solution

  1. Check that 33 is in the domain and find f(3)f(3)

    Every real number satisfies exactly one of "x≤3x\le3" and "x>3x\gt3", so ff is defined on all of R\R⁠; in particular 33 is in the domain. Since 3≤33\le3 is true, the first rule applies:

    f(3)=a(3)+1=3a+1.f(3)=a(3)+1=3a+1.
    Continuity is only discussed at points of the domain, so we confirm that first. The sign "≤\le" in the first line is what puts the point 33 itself on the left piece. The rule bx+3bx+3 is only for xx strictly greater than 33⁠, so it never gives the value at 33⁠.
    Which line of a piecewise definition to use is decided by the condition, not by convenience. Basics: piecewise functions
  2. The left-hand limit at 33

    Approach 33 from the left: put x=3−hx=3-h with h>0h\gt0 and let h→0h\to0⁠. Such xx are less than 33⁠, so the first rule applies:

    f(3−h)=a(3−h)+1=3a+1−ah.f(3-h)=a(3-h)+1=3a+1-ah.

    As h→0h\to0⁠, the term ah→0ah\to0⁠, so

    lim⁡x→3−f(x)=lim⁡h→0 (3a+1−ah)=3a+1.\lim_{x\to3^-}f(x)=\lim_{h\to0}\,(3a+1-ah)=3a+1.
    The left-hand limit asks what height the graph is heading for as we walk towards x=3x=3 from the left. On that side the graph is the line y=ax+1y=ax+1⁠, and a line heads straight to its own value at 33⁠.
    aa is a fixed constant, so ahah shrinks to 00 with hh (Basic 4). Basics: left-hand and right-hand limits
  3. The right-hand limit at 33

    Approach 33 from the right: put x=3+hx=3+h with h>0h\gt0⁠, h→0h\to0⁠. Now x>3x\gt3⁠, so the second rule applies:

    f(3+h)=b(3+h)+3=3b+3+bh.f(3+h)=b(3+h)+3=3b+3+bh.

    As h→0h\to0⁠, bh→0bh\to0⁠, so

    lim⁡x→3+f(x)=lim⁡h→0 (3b+3+bh)=3b+3.\lim_{x\to3^+}f(x)=\lim_{h\to0}\,(3b+3+bh)=3b+3.
    The right-hand limit uses the formula bx+3bx+3 even though f(3)f(3) does not. A limit only looks at points near 33⁠, never at 33 itself, and every point just to the right of 33 is governed by the second rule.
    The value of a limit does not depend on the value of the function at the point. Basics: left-hand and right-hand limits
  4. Demand that the three numbers agree

    By Definition 1, ff is continuous at 33 exactly when

    lim⁡x→3−f(x)=lim⁡x→3+f(x)=f(3),\lim_{x\to3^-}f(x)=\lim_{x\to3^+}f(x)=f(3),

    that is, by Steps 1 to 3,

    3a+1=3b+3=3a+1.3a+1=3b+3=3a+1.

    The first and last numbers are the same expression, so they are always equal. The only condition is the middle equality:

    3a+1=3b+33a−3b=2a−b=23a=b+23.\begin{aligned} 3a+1&=3b+3\\ 3a-3b&=2\\ a-b&=\tfrac{2}{3}\\ a&=b+\tfrac{2}{3}. \end{aligned}
    We subtract 3b3b and 11 from both sides to collect the unknowns on the left, then divide by 33⁠. Every step is reversible (we only added, subtracted or divided by a non-zero number), so the last line says exactly the same thing as the first.
    Continuity at a junction is "the left piece, the right piece and the value meet at one height". Lesson: continuity at a point
  5. The relation is enough, not just necessary

    Step 4 shows: if ff is continuous at 33⁠, then a=b+23a=b+\frac23⁠. Conversely, suppose a=b+23a=b+\frac23⁠. Then

    3a+1=3b+2+1=3b+3,3a+1=3b+2+1=3b+3,

    so the left-hand limit, the right-hand limit and f(3)f(3) all equal 3b+33b+3⁠, and ff is continuous at 33⁠. So ff is continuous at x=3x=3 if and only if a=b+23a=b+\frac23.

    The relation leaves one free choice. For example b=0, a=23b=0,\ a=\frac23⁠; or b=1, a=53b=1,\ a=\frac53⁠; or b=−23, a=0b=-\frac23,\ a=0⁠. Each pair gives a different function, and each is continuous at 33⁠.

    "Find the relationship" means a condition that works in both directions: every pair satisfying it must give continuity, and every pair giving continuity must satisfy it. One equation in two unknowns cannot fix both, which is why the answer is a relation and not a pair of numbers.
    With the relation in force, ff is in fact continuous at every real number: at any c<3c\lt3 it equals the polynomial ax+1ax+1 on the open interval x<3x\lt3 around cc⁠, and at any c>3c\gt3 it equals bx+3bx+3 on x>3x\gt3 (polynomials are continuous, Example 14). Lesson: algebra of continuous functions
a = 5/3, b = 1, so a − b = 2/3: the pieces join −1 1 2 3 4 5 6 2 4 6 8 x y (3, 6) a = 1, b = 1, so a − b = 0: a jump at x = 3 −1 1 2 3 4 5 6 2 4 6 8 x y (3, 4) (3, 6) ax + 1, used for x ≤ 3 (filled dot: f(3) = 3a + 1) bx + 3, used for x > 3 (open dot: not attained)
Top: with a=53a=\frac53⁠, b=1b=1 (so a−b=23a-b=\frac23⁠) both lines reach height 66 at x=3x=3 and the graph is unbroken. Bottom: with a=b=1a=b=1 the left line stops at (3,4)(3,4) while the right line starts just above (3,6)(3,6)⁠; the gap 6−4=26-4=2 is a jump, so ff is not continuous at 33⁠.
Result

ff is continuous at x=3x=3 exactly when 3a+1=3b+33a+1=3b+3⁠, that is,

a=b+23.a=b+\frac{2}{3}.

Equivalently, a−b=23a-b=\frac23⁠.

(Textbook answer: a=b+23a=b+\frac{2}{3}⁠.)

Check it with numbers

Take b=1b=1⁠, a=53a=\frac53⁠. Then f(3)=53⋅3+1=6f(3)=\frac53\cdot3+1=6⁠. Just left of 33⁠: f(2.999)=53(2.999)+1f(2.999)=\frac53(2.999)+1⁠, which is 5.998333…5.998333\ldots Just right: f(3.001)=3.001+3=6.001f(3.001)=3.001+3=6.001⁠. Both are within 0.0020.002 of 66⁠. ✓

Take a=b=1a=b=1⁠, which breaks the relation: f(2.999)=3.999f(2.999)=3.999 but f(3.001)=6.001f(3.001)=6.001⁠. However close we go to 33⁠, the two sides stay about 22 apart, which is exactly (3b+3)−(3a+1)=2(3b+3)-(3a+1)=2⁠. ✗ as expected.

Common mistakes
  1. Using bx+3bx+3 for f(3)f(3)⁠. The condition "x≤3x\le3" sends 33 to the first rule. Here the slip happens to give the same final relation (the wrong value would simply equal the right-hand limit), but f(3)=3b+3f(3)=3b+3 is a false statement about ff⁠: the value must come from the rule whose condition contains 33⁠.
  2. Sign slips when solving. 3a+1=3b+33a+1=3b+3 gives 3a−3b=23a-3b=2⁠, so a=b+23a=b+\frac23⁠, not a=b−23a=b-\frac23⁠. Check with a pair: b=1b=1⁠, a=53a=\frac53 gives 6=66=6⁠.
  3. Looking for unique values of aa and bb⁠. One condition cannot determine two unknowns. The answer is the relation.
  4. Checking only that the two limits agree. They must also equal f(3)f(3)⁠. Here that holds automatically, but say so: it is part of the definition.
What to take away
  1. At a junction, compute f(c)f(c)⁠, the left-hand limit and the right-hand limit separately, then set them equal.
  2. For linear (or any polynomial) pieces, each one-sided limit is just that piece's formula evaluated at the junction.
  3. One continuity condition with two unknown constants gives a relation; you need a second condition (as in Q30) to find both.

Every fact used, and where it comes from

FactUsed inSource
Continuity at cc⁠: one-sided limits and f(c)f(c) equalSteps 2–5Definition 1 and the paragraph after it, Section 5.2 (Lesson: continuity at a point)
Which rule of a piecewise function appliesSteps 1–3The conditions in the definition of ff (compare Example 10)
lim⁡h→0(k+mh)=k\lim_{h\to0}(k+mh)=kSteps 2, 3Algebra of limits, Class XI, Chapter 12 (Limits and Derivatives)
Polynomials are continuousStep 5Example 14, Section 5.2
Solving a linear equationStep 4Algebra
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →