---
title: "The Riemann Integral and When a Function Is Integrable"
description: "Define the integral by upper and lower sums and call a function integrable when the two meet. Continuous functions qualify; a function that is discontinuous everywhere need not."
canonical: https://lightmysky.com/learn/mathematics/the-riemann-integral-and-when-a-function-is-integrable-mt_Ahl2MYIA4N
source: https://lightmysky.com/learn/mathematics/the-riemann-integral-and-when-a-function-is-integrable-mt_Ahl2MYIA4N.md
retrieved: 2026-09-12
---

> **Agent view.** This is the Markdown twin of the page, for tools and assistants.
> When to use this site, and the call that answers each job: https://lightmysky.com/agent-instructions.md
> API description (OpenAPI 3.1): https://lightmysky.com/openapi.json · Authentication: https://lightmysky.com/auth.md
> Pricing: https://lightmysky.com/pricing.md · Catalog: https://lightmysky.com/llms.txt · Full catalog: https://lightmysky.com/llms-full.txt
> Every machine-readable file on this domain: https://lightmysky.com/.well-known/ai-catalog.json
> Ask for Markdown with `Accept: text/markdown`, a `.md` address, or `?mode=agent`.

# The Riemann Integral and When a Function Is Integrable

Define the integral by upper and lower sums and call a function integrable when the two meet. Continuous functions qualify; a function that is discontinuous everywhere need not.

Subject: Mathematics · Area: Calculus & Analysis · Ages 20 to 21
Page: https://lightmysky.com/learn/mathematics/the-riemann-integral-and-when-a-function-is-integrable-mt_Ahl2MYIA4N

## Ready when they can

- Compute upper and lower sums for a partition and compare them
- State the criterion for integrability in terms of refinements
- Give a bounded function that is not Riemann integrable

## Lesson: Trapping area from both sides

Chop [a, b] into pieces and trap the area between under and over estimates. Lower sums use infima per piece and upper sums use suprema. For f(x) equal to x on halves of [0, 1], the lower sum is 0.25 and the upper sum is 0.75, already pinning the true 0.5. For x squared on the same partition, the trap is 0.125 below and 0.625 above.

Refinement can only raise the floor and lower the ceiling: it raises lower sums and lowers upper sums. The integrability criterion says upper and lower sums can be made arbitrarily close by refinement. When the trap closes completely, the common value earns the name integral. Split the piece where the function swings most to narrow the trap fastest.

**Example.** The Dirichlet function equals 1 on rationals and 0 elsewhere, so on [0, 1] every piece has sup 1 and inf 0. Upper sums freeze at 1 and lower sums at 0 whatever the mesh, so it is not Riemann integrable. Continuous functions on [a, b] always qualify: uniform continuity squeezes the gap to nothing.

**Recap.** Lower sums climb, upper sums sink, integrability means they meet, and wild oscillation like Dirichlet keeps them apart.

## Practice

18 questions on this page, each with its working shown.

## Needs first

- [Differentiability and the Theorems Behind the Rules](https://lightmysky.com/learn/mathematics/differentiability-and-the-theorems-behind-the-rules-mt_1xLEeoA69z)
- [Riemann Sums and the Definite Integral as a Limit](https://lightmysky.com/learn/mathematics/riemann-sums-and-the-definite-integral-as-a-limit-mt_pwa2SRU6P9)

## Opens up

- [Sigma-Algebras and Measurable Sets](https://lightmysky.com/learn/mathematics/sigma-algebras-and-measurable-sets-mt_cpvegazufk)
- [Pointwise and Uniform Convergence](https://lightmysky.com/learn/mathematics/pointwise-and-uniform-convergence-mt_iAGk1ML5MA)
