datarekha

Continuity

A function is continuous at a point when its limit there exists and equals the function value — no jump, no hole, no asymptote. A recurring GATE DA piecewise question.

6 min read Intermediate GATE DA Lesson 38 of 122

What you'll learn

  • Continuity at a: lim_{x→a} f(x) must exist AND equal f(a)
  • Continuity on an interval, and matching the pieces of a piecewise function at a seam
  • Classifying discontinuities: removable hole, jump, and infinite
  • Solving for a parameter that makes a piecewise function continuous (a real 2024 question)

Before you start

Draw a graph without lifting your pen. That’s continuity, in plain English. No jumps, no holes, no shooting off to infinity — the curve just keeps going. It is the property a loss function needs before gradient descent can trust it: a jump or a hole is exactly where an optimiser stumbles, which is why continuity quietly underpins most of ML.

To say it precisely, we use limits: at a point a, the curve has to arrive exactly at the value the function takes there. One equation hides three demands: f(a) must exist, the limit as x → a must exist, and the two numbers must agree. Miss any one and you have a discontinuity — and GATE’s favourite flavour of this question hands you a piecewise function and asks you to solve for the constant that makes the pieces meet.

Continuity at a point

f is continuous at a when:

lim  f(x)  =  f(a)
x→a

This single line silently demands all three conditions: f(a) exists, the two-sided limit exists, and they are equal. f is continuous on an interval if it is continuous at every point of that interval.

continuous: limit = f(a)jump: left value ≠ right value
Left: the curve reaches its filled value. Right: the two sides land at different heights — the limit fails to exist, so it is discontinuous.

Kinds of discontinuity

  • Removable (a hole) — the two-sided limit exists, but f(a) is missing or set to a different value. You could “fill the hole” and fix it.
  • Jump — the left-hand and right-hand limits both exist but disagree, so the two-sided limit does not exist (the right-hand picture above).
  • Infinite — the function blows up near a (a vertical asymptote), e.g. 1/x at x = 0.

Matching a piecewise function

When f is defined by different formulas on either side of a point a, continuity at that seam forces the pieces to meet: the left formula and the right formula must give the same value at a. That equality is usually the whole question — set the two expressions equal at the seam and solve for the unknown constant.

How GATE asks this

The classic format is MCQ or NAT: a piecewise function with an unknown constant k (or a), with the demand “find k so that f is continuous.” You write the seam-matching equation — left piece at a equals right piece at a — and solve. GATE DA 2024 posed exactly this: a two-piece function joined at a point, solved by equating the pieces there. Other variants ask you to classify a discontinuity or pick which point breaks continuity.

Worked example — solve for the constant (GATE DA 2024 style)

Find the constant k that makes the following continuous at x = 2:

f(x) = x + 1 for x ≤ 2, and f(x) = k·x for x > 2.

Continuity at the seam x = 2 needs the limit from the right to match the value from the left — i.e. the two pieces must agree at x = 2:

left piece at 2 :  f(2) = 2 + 1 = 3
right limit at 2:  lim_{x→2⁺} k·x = k·2 = 2k

match:   2 + 1 = k · 2     →     3 = 2k     →     k = 3/2 = 1.5

So k = 1.5. With that value both pieces hit 3 at x = 2, the graph connects, and f is continuous there. Any other k leaves a jump.

Quick check

Quick check

0/6
Q1Find k so that f(x) = 3x − 1 for x ≤ 1 and f(x) = kx + 1 for x > 1 is continuous at x = 1. (integer)numerical answer — type a number
Q2Find the value of a making f(x) = (x² − 4)/(x − 2) for x ≠ 2 and f(2) = a continuous at x = 2. (integer)numerical answer — type a number
Q3A function has lim_{x→1⁻} f(x) = 2 and lim_{x→1⁺} f(x) = 5. What kind of discontinuity is at x = 1?
Q4Which conditions are ALL required for f to be continuous at x = a? (select all that apply)select all that apply
Q5For which of these is the function discontinuous at x = 0? (select all that apply)select all that apply
Q6Find k so that f(x) = sin(x)/x for x ≠ 0 and f(0) = k is continuous at x = 0. (integer)numerical answer — type a number

Practice this in an interview

All questions

Sign in to track your progress

Completed lessons, your XP, level, and streak save to your account — it's free and takes a few seconds.

Explore further

Related lessons

Skip to content