Continuous Function Examples in Math

Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Continuous Function.

This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.

Concept Recap

A function is continuous at a point if the limit equals the function value there, with no jumps, holes, or vertical asymptotes in the interval of interest.

A continuous function can be drawn without lifting the pencil โ€” there are no sudden jumps, gaps, or points that shoot to infinity.

Read the full concept explanation โ†’

How to Use These Examples

  • Read the first worked example with the solution open so the structure is clear.
  • Try the practice problems before revealing each solution.
  • Use the related concepts and background knowledge badges if you feel stuck.

What to Focus On

Core idea: A continuous function has no jumps, holes, or breaks; its limit equals its value at every point.

Common stuck point: The procedure for continuous function is the easy part; the trap is assuming defined-everywhere means continuous. Asking "Can the graph be drawn through this point without lifting the pencil?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

Sense of Study hint: Ask: Can the graph be drawn through this point without lifting the pencil?

Worked Examples

Example 1

easy
Show that f(x)=3x2โˆ’5x+2f(x) = 3x^2 - 5x + 2 is continuous at x=1x = 1 using the three-part definition of continuity.

Answer

ff is continuous at x=1x = 1

First step

1
Part 1 โ€” f(1)f(1) exists: f(1)=3(1)โˆ’5(1)+2=0f(1) = 3(1)-5(1)+2 = 0. โœ“

Full solution

  1. 2
    Part 2 โ€” limโกxโ†’1f(x)\lim_{x\to1} f(x) exists: since ff is a polynomial, the limit equals the function value. limโกxโ†’1(3x2โˆ’5x+2)=3โˆ’5+2=0\lim_{x\to1}(3x^2-5x+2) = 3-5+2 = 0. โœ“
  2. 3
    Part 3 โ€” Limit equals function value: limโกxโ†’1f(x)=0=f(1)\lim_{x\to1}f(x) = 0 = f(1). โœ“ All three conditions hold, so ff is continuous at x=1x=1.
Continuity requires three conditions: the function value exists, the limit exists, and they are equal. Polynomials satisfy all three at every point, making them everywhere continuous.

Example 2

hard
Find where f(x)=x2โˆ’4xโˆ’2f(x) = \dfrac{x^2 - 4}{x - 2} is discontinuous, classify the discontinuity, and determine if it can be removed.

Example 3

medium
Apply the IVT to show f(x)=x3+xโˆ’4f(x)=x^3 + x - 4 has a root in [1,2][1,2].

Example 4

medium
If ff is continuous on [0,1][0,1] with f(0)=2f(0)=2 and f(1)=โˆ’1f(1)=-1, must ff take the value 00 somewhere on [0,1][0,1]?

Example 5

hard
Show that f(x)=cosโกxโˆ’xf(x) = \cos x - x has a root in [0,1][0,1].

Example 6

challenge
Show that any polynomial of odd degree has at least one real root.

Practice Problems

Try these problems on your own first, then open the solution to compare your method.

Example 1

easy
Is g(x)=1xg(x) = \dfrac{1}{x} continuous on (โˆ’โˆž,โˆž)(-\infty, \infty)? If not, identify where and why.

Example 2

medium
Apply the Intermediate Value Theorem to show that h(x)=x3โˆ’xโˆ’1h(x) = x^3 - x - 1 has a root in the interval [1,2][1, 2].

Example 3

easy
Can you draw f(x)=xf(x)=x without lifting your pencil?

Example 4

easy
Is f(x)=1xf(x)=\dfrac{1}{x} continuous at x=0x=0?

Example 5

easy
Is f(x)=โˆฃxโˆฃf(x)=|x| continuous at x=0x=0?

Example 6

easy
Does continuous mean smooth (no corners)?

Example 7

easy
Is the polynomial f(x)=x3โˆ’2x+1f(x)=x^3-2x+1 continuous for all real xx?

Example 8

easy
At a removable discontinuity (hole), is the function continuous there?

Example 9

easy
Is a jump in a graph a sign of discontinuity?

Example 10

easy
Are removable discontinuities always visible at normal zoom?

Example 11

medium
Is f(x)=x2โˆ’4xโˆ’2f(x)=\dfrac{x^2-4}{x-2} continuous at x=2x=2?

Example 12

medium
For f(x)={x+2x<13xxโ‰ฅ1f(x)=\begin{cases}x+2 & x<1\\ 3x & x\ge 1\end{cases}, is ff continuous at x=1x=1?

Example 13

medium
Where is f(x)=x+1x2โˆ’xโˆ’6f(x)=\dfrac{x+1}{x^2-x-6} discontinuous?

Example 14

medium
Is f(x)=xf(x)=\sqrt{x} continuous at x=0x=0?

Example 15

medium
A function jumps from 22 (left) to 55 (right) at x=3x=3. What is the jump size?

Example 16

medium
Is f(x)=1x2+1f(x)=\dfrac{1}{x^2+1} continuous for all real xx?

Example 17

medium
State the three conditions for ff to be continuous at x=ax=a.

Example 18

medium
Is f(x)=tanโกxf(x)=\tan x continuous on (โˆ’ฯ€2,ฯ€2)(-\tfrac{\pi}{2},\tfrac{\pi}{2})?

Example 19

medium
Is f(x)=xxโˆ’1f(x)=\dfrac{x}{x-1} continuous at x=0x=0?

Example 20

challenge
Find kk so that f(x)={x2โˆ’9xโˆ’3xโ‰ 3kx=3f(x)=\begin{cases}\frac{x^2-9}{x-3} & x\ne 3\\ k & x=3\end{cases} is continuous at x=3x=3.

Example 21

challenge
By the Intermediate Value Theorem, must f(x)=x3+xโˆ’1f(x)=x^3+x-1 have a root in [0,1][0,1]? Justify.

Example 22

challenge
For f(x)={x2xโ‰ค1ax+bx>1f(x)=\begin{cases}x^2 & x\le 1\\ ax+b & x>1\end{cases}, find a relation between aa and bb for continuity at x=1x=1.

Example 23

easy
Is f(x)=5xโˆ’7f(x) = 5x - 7 continuous on R\mathbb{R}?

Example 24

easy
Is f(x)=exf(x) = e^x continuous on R\mathbb{R}?

Example 25

easy
Where is f(x)=1x2โˆ’4f(x) = \dfrac{1}{x^2 - 4} discontinuous?

Example 26

easy
Is f(x)=sinโกxf(x) = \sin x continuous on R\mathbb{R}?

Example 27

easy
Can a continuous function have a vertical asymptote within its domain?

Example 28

medium
Find the value(s) of xx where f(x)=x+3x2+xโˆ’6f(x)=\dfrac{x+3}{x^2+x-6} is discontinuous.

Example 29

medium
Is the product of two continuous functions continuous?

Example 30

medium
For f(x)={x2+1xโ‰ค23xโˆ’1x>2f(x)=\begin{cases} x^2 + 1 & x\le 2\\ 3x - 1 & x > 2 \end{cases}, is ff continuous at x=2x=2?

Example 31

medium
Is f(x)=lnโก(x2+1)f(x) = \ln(x^2 + 1) continuous on R\mathbb{R}?

Example 32

medium
Find kk so that f(x)={x2โˆ’25xโˆ’5xโ‰ 5kx=5f(x)=\begin{cases}\dfrac{x^2-25}{x-5} & x\ne 5\\ k & x=5\end{cases} is continuous at x=5x=5.

Example 33

medium
On what set is f(x)=1sinโกxf(x) = \dfrac{1}{\sin x} continuous?

Example 34

medium
True or false: if ff is continuous at aa, then โˆฃfโˆฃ|f| is continuous at aa.

Example 35

hard
Find a,ba,b so that f(x)={ax+1x<2x2+bxโ‰ฅ2f(x)=\begin{cases} ax+1 & x<2\\ x^2+b & x\ge 2 \end{cases} is continuous at x=2x=2 and f(2)=7f(2)=7.

Example 36

hard
If ff is continuous on [0,1][0,1] and f(x)โˆˆ[0,1]f(x)\in[0,1] for all xโˆˆ[0,1]x\in[0,1], show ff has a fixed point.

Example 37

medium
Is f(x)=x2+1x2+1f(x)=\dfrac{x^2+1}{x^2+1} continuous everywhere?

Example 38

medium
True or false: f(x)=tanโกxf(x) = \tan x is continuous on [0,ฯ€][0, \pi].

Example 39

hard
Let ff be continuous on R\mathbb{R} with f(x+y)=f(x)+f(y)f(x+y)=f(x)+f(y) for all real x,yx,y. Show f(x)=cxf(x)=cx for some constant cc.

Example 40

challenge
True or false: if ff is continuous on [0,2][0,2] with f(0)=1f(0)=1 and f(2)=3f(2)=3, then ff must have a fixed point in [0,2][0,2].

Background Knowledge

These ideas may be useful before you work through the harder examples.

function definition