Skip to content

Dealing with Points of Discontinuity and Non-Differentiability

In the previous section, we proved the First Fundamental Theorem of Calculus under a clean, friendly condition: the function \(f(x)\) is continuous on \([a, b]\), and its antiderivative \(F(x)\) satisfies \(F'(x) = f(x)\) at every point of \([a, b]\).

In practice, however, many important functions in mathematics have sharp corners (points of non-differentiability, like \(|x - 1|\)) or finite jumps (points of discontinuity, like the greatest integer function \(\lfloor x \rfloor\) or piecewise-defined functions). Even more surprisingly, sometimes \(f(x)\) itself is completely smooth, yet the antiderivative formula \(F(x)\) we find has a hidden jump inside \([a, b]\).

How do we evaluate definite integrals safely when a "trouble spot" \(x = c\) lies inside our interval \([a, b]\)?


1. Stepping Around a Trouble Spot: Leaving a Small Gap Around the Point

Suppose a bounded function \(f(x)\) is continuous everywhere on \([a, b]\) except at an interior point \(x = c\) (where \(a < c < b\)). Because \(f(x)\) is not continuous at \(x = c\), we cannot directly apply the Fundamental Theorem across the whole interval \([a, b]\) in one step.

Instead, we step around the point \(x = c\) by leaving a tiny gap of width \(2h\) around it, from \(c - h\) to \(c + h\) (where \(h > 0\) is a small positive number):

  1. Left Piece \([a, c - h]\): On this closed interval, we stop just before \(x = c\). Here, \(f(x)\) has no breaks at all—it is completely continuous!
  2. Right Piece \([c + h, b]\): On this closed interval, we start just after \(x = c\). Again, \(f(x)\) is completely continuous here!
  3. Middle Strip \([c - h, c + h]\): What happens to the tiny vertical strip between \(c - h\) and \(c + h\)? Because \(f(x)\) is bounded (say \(|f(x)| \le M\)), the area of this thin strip is at most \(\text{width} \times \text{height} = 2h \cdot M\). As we shrink \(h \to 0^+\), the width \(2h\) shrinks to \(0\), so the area of this middle strip vanishes completely:
\[\lim_{h \to 0^+} (2h \cdot M) = 0\]

Stepping around a point of discontinuity c using intervals a to c-h and c+h to b

[!TIP] Why a Single Point Has Zero Area: A single point \(x = c\) on the \(x\)-axis has a width of \(0\). Changing the value of \(f(c)\) at a single point—or even having a finite jump there—only changes a single vertical line segment of width \(0\), which adds zero area to the integral.

Therefore, the total definite integral from \(a\) to \(b\) is simply the limit of the sum of the two safe pieces as \(h \to 0^+\):

\[\int_a^b f(x) \, dx = \lim_{h \to 0^+} \int_a^{c-h} f(x) \, dx + \lim_{h \to 0^+} \int_{c+h}^b f(x) \, dx\]

Now, because \(f(x)\) is continuous on \([a, c - h]\) and on \([c + h, b]\), we can apply the First Fundamental Theorem of Calculus separately on each piece! If \(F(x)\) is an antiderivative on each piece, then:

\[\int_a^{c-h} f(x) \, dx = F(c - h) - F(a) \quad \text{and} \quad \int_{c+h}^b f(x) \, dx = F(b) - F(c + h)\]

Taking the limit as \(h \to 0^+\), recall from our chapter on Limits and Continuity that \(\lim_{h \to 0^+} F(c - h)\) is the left-hand limit \(F(c^-)\), and \(\lim_{h \to 0^+} F(c + h)\) is the right-hand limit \(F(c^+)\). This gives our master formula:

[!IMPORTANT] Fundamental Theorem Across a Trouble Spot \(x = c\): If \(x = c \in (a, b)\) is a point where \(f(x)\) or its antiderivative \(F(x)\) is discontinuous or changes its formula, then:

\[\int_a^b f(x) \, dx = \lim_{h \to 0^+} \Big[ F(c - h) - F(a) \Big] + \lim_{h \to 0^+} \Big[ F(b) - F(c + h) \Big]\]

In one-sided limit notation:

\[\int_a^b f(x) \, dx = \Big[ F(c^-) - F(a) \Big] + \Big[ F(b) - F(c^+) \Big]\]

If there are several trouble spots \(c_1 < c_2 < \dots < c_k\) inside \((a, b)\), we simply split the interval at every one of them: \([a, c_1]\), \([c_1, c_2]\), \(\dots\), \([c_k, b]\), and evaluate each sub-interval using the formula valid on its interior.


2. Three Situations Where We Must Split the Interval

Let us see what our master formula \(\big[F(c^-) - F(a)\big] + \big[F(b) - F(c^+)\big]\) tells us in the three main situations we encounter when evaluating definite integrals.


Situation 1: Functions with Sharp Corners or Piecewise Formulas (Modulus Functions)

What if our antiderivative \(F(x)\) is continuous at \(x = c\), so that \(F(c^-) = F(c^+) = F(c)\), even though \(F'(c)\) does not exist (a sharp corner)?

Look at what happens in our master formula when \(F(c^-) = F(c^+) = F(c)\):

\[\int_a^b f(x) \, dx = \Big[ F(c) - F(a) \Big] + \Big[ F(b) - F(c) \Big] = F(b) - F(a)\]

The intermediate values \(F(c)\) and \(-F(c)\) cancel out!

When F'(x) = f(x) fails at an isolated point, a continuous antiderivative F(x) still satisfies FTC

In practice, when the integrand \(f(x)\) itself has a sharp corner (like \(|x - c|\)) or is defined by different formulas on the left and right of \(x = c\):

\[f(x) = \begin{cases} f_1(x), & a \le x < c \\ f_2(x), & c \le x \le b \end{cases}\]

we have two different antiderivative formulas: \(F_1(x)\) on \([a, c)\) and \(F_2(x)\) on \((c, b]\). Splitting at \(x = c\) gives:

\[\int_a^b f(x) \, dx = \int_a^c f_1(x) \, dx + \int_c^b f_2(x) \, dx = \Big[ F_1(c) - F_1(a) \Big] + \Big[ F_2(b) - F_2(c) \Big]\]

Example 1

Evaluate:

\[\int_0^3 |x - 1| \, dx\]

Solution:

The modulus function \(|x - 1|\) is continuous everywhere on \([0, 3]\), but it has a sharp corner (point of non-differentiability) at \(x = 1\), where \(x - 1\) changes sign:

\[|x - 1| = \begin{cases} -(x - 1) = 1 - x, & \text{if } 0 \le x < 1 \\ x - 1, & \text{if } 1 \le x \le 3 \end{cases}\]

We split the interval \([0, 3]\) at the corner point \(x = 1\):

\[\int_0^3 |x - 1| \, dx = \int_0^1 (1 - x) \, dx + \int_1^3 (x - 1) \, dx\]

Now each piece is a simple polynomial that is smooth on its sub-interval:

\[\int_0^1 (1 - x) \, dx = \left[ x - \frac{x^2}{2} \right]_0^1 = \left(1 - \frac{1}{2}\right) - 0 = \frac{1}{2}\]
\[\int_1^3 (x - 1) \, dx = \left[ \frac{x^2}{2} - x \right]_1^3 = \left(\frac{9}{2} - 3\right) - \left(\frac{1}{2} - 1\right) = \frac{3}{2} - \left(-\frac{1}{2}\right) = 2\]

Adding the two areas gives:

\[\int_0^3 |x - 1| \, dx = \frac{1}{2} + 2 = \frac{5}{2}\]

Example 2

Evaluate:

\[\int_0^2 f(x) \, dx \quad \text{where} \quad f(x) = \begin{cases} 1, & 0 \le x < 1 \\ 2x, & 1 \le x \le 2 \end{cases}\]

Solution:

Here \(f(x)\) has a jump discontinuity at \(x = 1\), jumping from \(f(1^-) = 1\) to \(f(1^+) = 2\). Using the \([0, 1-h]\) and \([1+h, 2]\) splitting at \(c = 1\):

\[\int_0^2 f(x) \, dx = \lim_{h \to 0^+} \int_0^{1-h} 1 \, dx + \lim_{h \to 0^+} \int_{1+h}^2 2x \, dx\]

Evaluating each piece using its own antiderivative (\(F_1(x) = x\) on the left, and \(F_2(x) = x^2\) on the right):

\[\int_0^2 f(x) \, dx = \lim_{h \to 0^+} \Big[ x \Big]_0^{1-h} + \lim_{h \to 0^+} \Big[ x^2 \Big]_{1+h}^2 = (1 - 0) + (2^2 - 1^2) = 1 + 3 = 4\]

Notice that because \(F_1(x) = x\) is continuous up to \(x = 1\) and \(F_2(x) = x^2\) is continuous down to \(x = 1\), we can simply write:

\[\int_0^2 f(x) \, dx = \int_0^1 1 \, dx + \int_1^2 2x \, dx = \Big[ x \Big]_0^1 + \Big[ x^2 \Big]_1^2 = 1 + 3 = 4\]

Situation 2: Step Functions — Greatest Integer, Fractional Part, and Signum Functions

Step functions such as the Greatest Integer Function \(\lfloor x \rfloor\) (often written \([x]\)) jump at every integer point.

The Graphical Rectangle Method for Greatest Integer Integrals

Whenever the entire integrand is a greatest integer function \(\lfloor g(x) \rfloor\), the graph of \(y = \lfloor g(x) \rfloor\) is simply a collection of horizontal steps! You do not even need to find antiderivatives—you can write down the value of the definite integral immediately by drawing the graph and summing the areas of the rectangles:

  1. Sketch the inner curve \(y = g(x)\) over the interval \([a, b]\) to see its range (its minimum and maximum values) and where it increases or decreases.
  2. Draw horizontal lines at every integer height \(y = k\) that lies within the range of \(g(x)\).
  3. Project the intersection points down to the \(x\)-axis. If \(g(x)\) hits an integer \(k\) at \(x = c_r\), that point is a jump point of \(\lfloor g(x) \rfloor\). (If \(g(x)\) merely touches an integer \(k\) at a peak and turns back down without crossing below \(k\), that single point has width \(0\) and adds zero area!)
  4. Sum the rectangles: On each sub-interval \([x_{r-1}, x_r]\) where \(k \le g(x) < k + 1\), the graph of \(y = \lfloor g(x) \rfloor\) is a flat horizontal line at height \(k\). It forms a rectangle of base \((x_r - x_{r-1})\) and signed height \(k\):
\[\int_a^b \lfloor g(x) \rfloor \, dx = \sum \big( \text{height } k \big) \times \big( \text{width of sub-interval} \big)\]

What if \(\lfloor g(x) \rfloor\) is only a part of the integrand—for example, \(\int_a^b x \lfloor x^2 \rfloor \, dx\) or \(\int_a^b e^{\lfloor x \rfloor} \, dx\)? We still find the exact same jump points where \(g(x)\) reaches an integer, split the integral at those points, replace \(\lfloor g(x) \rfloor\) by its constant integer value \(k\) on each sub-interval, and integrate the remaining smooth function of \(x\)!

Staircase area under the greatest integer function floor(x) from 0 to 3


Example 3

Evaluate:

\[\int_0^3 \lfloor x \rfloor \, dx\]

Solution:

Look at the staircase graph of \(y = \lfloor x \rfloor\) on \([0, 3]\) above. Instead of computing antiderivatives, we simply read off the areas of the three rectangles on \([0, 1]\), \([1, 2]\), and \([2, 3]\):

  • On \([0, 1)\), height \(= 0\) and width \(= 1 - 0 = 1 \implies \text{Area}_1 = 0 \times 1 = 0\).
  • On \([1, 2)\), height \(= 1\) and width \(= 2 - 1 = 1 \implies \text{Area}_2 = 1 \times 1 = 1\).
  • On \([2, 3)\), height \(= 2\) and width \(= 3 - 2 = 1 \implies \text{Area}_3 = 2 \times 1 = 2\).
  • At \(x = 3\), the isolated point \((3, 3)\) has width \(0 \implies \text{Area} = 0\).

Adding the rectangle areas directly gives:

\[\int_0^3 \lfloor x \rfloor \, dx = 0 + 1 + 2 = 3\]

Example 4

Evaluate:

\[\int_0^1 \lfloor x^2 + x + 1 \rfloor \, dx\]

Solution:

Let us sketch the inner function \(g(x) = x^2 + x + 1\) on \([0, 1]\) to see how it behaves:

  • At \(x = 0\), \(g(0) = 0^2 + 0 + 1 = 1\).
  • For \(x \in [0, 1]\), \(g'(x) = 2x + 1 > 0\), so \(g(x)\) is strictly increasing.
  • At \(x = 1\), \(g(1) = 1^2 + 1 + 1 = 3\).

As \(x\) moves from \(0\) to \(1\), \(g(x)\) rises continuously from \(y = 1\) to \(y = 3\). Drawing horizontal lines at the integer levels \(y = 1, 2, 3\), we see that the curve crosses the horizontal line \(y = 2\) at a single interior point:

\[x^2 + x + 1 = 2 \implies x^2 + x - 1 = 0\]

Using the quadratic formula (and keeping the positive root inside \([0, 1]\)):

\[x = \frac{-1 + \sqrt{1 - 4(1)(-1)}}{2} = \frac{\sqrt{5} - 1}{2}\]

Sketching y = x^2 + x + 1 and reading off the two rectangles for floor(x^2 + x + 1)

Looking at the right panel of the figure above, the region under \(y = \lfloor x^2 + x + 1 \rfloor\) consists of just two rectangles:

  1. Rectangle \(R_1\) on \(\left[0, \frac{\sqrt{5}-1}{2}\right)\): Here \(1 \le x^2 + x + 1 < 2\), so the height is \(1\) and the base is \(\frac{\sqrt{5}-1}{2} - 0 = \frac{\sqrt{5}-1}{2}\).
  2. Rectangle \(R_2\) on \(\left[\frac{\sqrt{5}-1}{2}, 1\right)\): Here \(2 \le x^2 + x + 1 < 3\), so the height is \(2\) and the base is \(1 - \frac{\sqrt{5}-1}{2}\).
  3. At the single point \(x = 1\), the height jumps to \(3\), which has width \(0\) and area \(0\).

Writing the integral directly as the sum of the two rectangle areas:

\[\int_0^1 \lfloor x^2 + x + 1 \rfloor \, dx = 1 \cdot \left( \frac{\sqrt{5} - 1}{2} - 0 \right) + 2 \cdot \left( 1 - \frac{\sqrt{5} - 1}{2} \right)\]

Simplifying the expression:

\[\int_0^1 \lfloor x^2 + x + 1 \rfloor \, dx = 2 - \frac{\sqrt{5} - 1}{2} = \frac{5 - \sqrt{5}}{2}\]

Example 5

Evaluate:

\[\int_0^\pi \lfloor 2\sin x \rfloor \, dx\]

Solution:

Here the inner function \(g(x) = 2\sin x\) is not monotonic on \([0, \pi]\)—it rises from \(0\) to a peak and then falls back to \(0\). Sketching \(y = 2\sin x\) on \([0, \pi]\) makes the behavior crystal clear:

  • As \(x\) goes from \(0\) to \(\frac{\pi}{2}\), \(2\sin x\) rises from \(0\) to \(2\), crossing the line \(y = 1\) at \(\sin x = \frac{1}{2} \implies x = \frac{\pi}{6}\).
  • At the peak \(x = \frac{\pi}{2}\), \(2\sin\left(\frac{\pi}{2}\right) = 2\) at a single isolated point!
  • As \(x\) goes from \(\frac{\pi}{2}\) to \(\pi\), \(2\sin x\) falls from \(2\) back to \(0\), crossing the line \(y = 1\) again at \(x = \frac{5\pi}{6}\).

Graph of y = 2 sin x and the single rectangle formed by y = floor(2 sin x) on 0 to pi

Look at the graph of \(y = \lfloor 2\sin x \rfloor\) in the figure above:

  • On \(\left[0, \frac{\pi}{6}\right)\) and \(\left(\frac{5\pi}{6}, \pi\right]\), \(0 \le 2\sin x < 1\), so the step height is \(0\) (zero area).
  • At \(x = \frac{\pi}{2}\), \(\lfloor 2\sin x \rfloor = 2\), which is a single point of width \(0\) (zero area).
  • Everywhere else between \(x = \frac{\pi}{6}\) and \(x = \frac{5\pi}{6}\), the step height is \(1\)!

Thus, the entire area under \(y = \lfloor 2\sin x \rfloor\) is a single rectangle of height \(1\) extending from \(x = \frac{\pi}{6}\) to \(x = \frac{5\pi}{6}\):

\[\int_0^\pi \lfloor 2\sin x \rfloor \, dx = 1 \times \left( \frac{5\pi}{6} - \frac{\pi}{6} \right) = \frac{4\pi}{6} = \frac{2\pi}{3}\]

Situation 3: Hidden Jumps in the Antiderivative Formula (The Classic Trap!)

This is one of the most important—and most frequently misunderstood—situations in definite integration.

Sometimes, the integrand \(f(x)\) you are asked to integrate is completely continuous and smooth across the entire interval \([a, b]\). Yet when you use standard integration tricks—such as dividing numerator and denominator by \(\cos^2 x\) (to write the integral in terms of \(\tan x\)) or dividing by \(x^2\) (to write it in terms of \(x - \frac{1}{x}\))—the antiderivative formula \(F(x)\) you obtain has a jump discontinuity at some interior point \(x = c\)!

If \(F(x)\) jumps at \(x = c\) so that \(F(c^-) \neq F(c^+)\), then plugging in only the outer endpoints \(F(b) - F(a)\) misses the jump \(F(c^-) - F(c^+)\) and gives a completely wrong answer!

Let us see how our \([a, c-h]\) and \([c+h, b]\) method exposes and fixes this trap immediately.

Smooth integrand f(x) = 1/(1 + sin^2 x) versus its discontinuous antiderivative formula F(x) jumping at x = pi/2


Example 6

Evaluate:

\[\int_0^\pi \frac{1}{1 + \sin^2 x} \, dx\]

Solution:

First, look at the integrand \(f(x) = \frac{1}{1 + \sin^2 x}\). Since \(1 \le 1 + \sin^2 x \le 2\), the function \(f(x)\) is smooth and strictly positive everywhere on \([0, \pi]\). Therefore, the area under the curve must be a strictly positive number!

Now let us find the indefinite integral using the standard method: divide both the numerator and the denominator by \(\cos^2 x\):

\[\int \frac{1}{1 + \sin^2 x} \, dx = \int \frac{\sec^2 x}{\sec^2 x + \tan^2 x} \, dx = \int \frac{\sec^2 x}{1 + 2\tan^2 x} \, dx\]

Using \(\int \frac{du}{1 + u^2} = \tan^{-1} u\) with \(u = \sqrt{2}\tan x\) and \(du = \sqrt{2}\sec^2 x \, dx\), we obtain the antiderivative formula:

\[F(x) = \frac{1}{\sqrt{2}} \tan^{-1}\big(\sqrt{2}\tan x\big)\]

[!CAUTION] The Trap of Blind Endpoint Substitution: Suppose we blindly write \(F(\pi) - F(0)\) without checking whether \(F(x)\) is continuous on \([0, \pi]\):

\[F(\pi) - F(0) = \frac{1}{\sqrt{2}}\tan^{-1}\big(\sqrt{2}\tan \pi\big) - \frac{1}{\sqrt{2}}\tan^{-1}\big(\sqrt{2}\tan 0\big) = 0 - 0 = 0 \quad \text{(WRONG!)}\]

Why did \(F(\pi) - F(0)\) fail? Because when we divided by \(\cos^2 x\), we divided by \(0\) at \(x = \frac{\pi}{2}\)! At \(x = \frac{\pi}{2}\), \(\tan x\) is undefined and jumps from \(+\infty\) (on the left of \(\frac{\pi}{2}\)) to \(-\infty\) (on the right of \(\frac{\pi}{2}\)). Consequently, \(F(x)\) has a jump discontinuity at \(c = \frac{\pi}{2}\)!

The Correct Evaluation Using \([0, \frac{\pi}{2}-h]\) and \([\frac{\pi}{2}+h, \pi]\):

Because \(c = \frac{\pi}{2}\) is a point of discontinuity of \(F(x)\), we split \([0, \pi]\) around \(c = \frac{\pi}{2}\):

\[\int_0^\pi \frac{1}{1 + \sin^2 x} \, dx = \lim_{h \to 0^+} \int_0^{\frac{\pi}{2}-h} \frac{1}{1 + \sin^2 x} \, dx + \lim_{h \to 0^+} \int_{\frac{\pi}{2}+h}^\pi \frac{1}{1 + \sin^2 x} \, dx\]

On \(\left[0, \frac{\pi}{2}-h\right]\) and on \(\left[\frac{\pi}{2}+h, \pi\right]\), our antiderivative \(F(x) = \frac{1}{\sqrt{2}} \tan^{-1}\big(\sqrt{2}\tan x\big)\) is completely continuous:

\[\int_0^\pi \frac{1}{1 + \sin^2 x} \, dx = \Big[ F\left(\tfrac{\pi}{2}^-\right) - F(0) \Big] + \Big[ F(\pi) - F\left(\tfrac{\pi}{2}^+\right) \Big]\]

Let us compute the two one-sided limits at \(x = \frac{\pi}{2}\):

Left-Hand Limit at \(\frac{\pi}{2}\): As \(x \to \frac{\pi}{2}^-\) (approaching \(\frac{\pi}{2}\) from the first quadrant), \(\tan x \to +\infty\), so \(\tan^{-1}(\sqrt{2}\tan x) \to +\frac{\pi}{2}\):

\[F\left(\frac{\pi}{2}^-\right) = \lim_{h \to 0^+} \frac{1}{\sqrt{2}} \tan^{-1}\left(\sqrt{2}\tan\left(\frac{\pi}{2} - h\right)\right) = \frac{1}{\sqrt{2}} \left( +\frac{\pi}{2} \right) = \frac{\pi}{2\sqrt{2}}\]

Right-Hand Limit at \(\frac{\pi}{2}\): As \(x \to \frac{\pi}{2}^+\) (approaching \(\frac{\pi}{2}\) from the second quadrant), \(\tan x \to -\infty\), so \(\tan^{-1}(\sqrt{2}\tan x) \to -\frac{\pi}{2}\):

\[F\left(\frac{\pi}{2}^+\right) = \lim_{h \to 0^+} \frac{1}{\sqrt{2}} \tan^{-1}\left(\sqrt{2}\tan\left(\frac{\pi}{2} + h\right)\right) = \frac{1}{\sqrt{2}} \left( -\frac{\pi}{2} \right) = -\frac{\pi}{2\sqrt{2}}\]

Substituting \(F(0) = 0\), \(F(\pi) = 0\), \(F\left(\frac{\pi}{2}^-\right) = \frac{\pi}{2\sqrt{2}}\), and \(F\left(\frac{\pi}{2}^+\right) = -\frac{\pi}{2\sqrt{2}}\) into our formula gives:

\[\int_0^\pi \frac{1}{1 + \sin^2 x} \, dx = \left( \frac{\pi}{2\sqrt{2}} - 0 \right) + \left( 0 - \left(-\frac{\pi}{2\sqrt{2}}\right) \right) = \frac{\pi}{2\sqrt{2}} + \frac{\pi}{2\sqrt{2}} = \frac{\pi}{\sqrt{2}}\]

Miscellaneous Examples


Example 1

Evaluate:

\[\int_{-1}^2 \big( |x| + |x - 1| \big) \, dx\]

Solution:

The integrand has two modulus terms: \(|x|\) (which has a sharp corner at \(x = 0\)) and \(|x - 1|\) (which has a sharp corner at \(x = 1\)). Both \(x = 0\) and \(x = 1\) lie inside the interval \([-1, 2]\).

We therefore split \([-1, 2]\) at \(x = 0\) and \(x = 1\) into three sub-intervals: \([-1, 0]\), \([0, 1]\), and \([1, 2]\). Let us write the simplified formula for \(f(x) = |x| + |x - 1|\) on each sub-interval:

  • On \([-1, 0]\): Both \(x \le 0\) and \(x - 1 < 0\), so \(|x| = -x\) and \(|x - 1| = -(x - 1) = 1 - x\). Thus:
\[f(x) = -x + (1 - x) = 1 - 2x\]
  • On \([0, 1]\): Here \(x \ge 0\) while \(x - 1 \le 0\), so \(|x| = x\) and \(|x - 1| = 1 - x\). Thus:
\[f(x) = x + (1 - x) = 1\]
  • On \([1, 2]\): Both \(x > 0\) and \(x - 1 \ge 0\), so \(|x| = x\) and \(|x - 1| = x - 1\). Thus:
\[f(x) = x + (x - 1) = 2x - 1\]

Summing the definite integrals over the three pieces:

\[\int_{-1}^2 \big( |x| + |x - 1| \big) \, dx = \int_{-1}^0 (1 - 2x) \, dx + \int_0^1 1 \, dx + \int_1^2 (2x - 1) \, dx\]

Evaluating each piece by the First Fundamental Theorem of Calculus:

\[\int_{-1}^0 (1 - 2x) \, dx = \Big[ x - x^2 \Big]_{-1}^0 = 0 - \big( -1 - (-1)^2 \big) = 0 - (-2) = 2\]
\[\int_0^1 1 \, dx = \Big[ x \Big]_0^1 = 1 - 0 = 1\]
\[\int_1^2 (2x - 1) \, dx = \Big[ x^2 - x \Big]_1^2 = (4 - 2) - (1 - 1) = 2 - 0 = 2\]

Adding the three pieces together:

\[\int_{-1}^2 \big( |x| + |x - 1| \big) \, dx = 2 + 1 + 2 = 5\]

Example 2

Evaluate:

\[\int_0^\pi |\cos x| \, dx\]

Solution:

On the interval \([0, \pi]\), \(\cos x\) changes sign at \(x = \frac{\pi}{2}\):

  • For \(0 \le x \le \frac{\pi}{2}\) (First Quadrant), \(\cos x \ge 0\), so \(|\cos x| = \cos x\).
  • For \(\frac{\pi}{2} \le x \le \pi\) (Second Quadrant), \(\cos x \le 0\), so \(|\cos x| = -\cos x\).

Splitting the integral at the corner point \(x = \frac{\pi}{2}\):

\[\int_0^\pi |\cos x| \, dx = \int_0^{\pi/2} \cos x \, dx + \int_{\pi/2}^\pi (-\cos x) \, dx\]

Applying the First Fundamental Theorem of Calculus on each piece:

\[\int_0^\pi |\cos x| \, dx = \Big[ \sin x \Big]_0^{\pi/2} + \Big[ -\sin x \Big]_{\pi/2}^\pi\]
\[= \left( \sin \frac{\pi}{2} - \sin 0 \right) + \left( -\sin \pi - \left( -\sin \frac{\pi}{2} \right) \right) = (1 - 0) + (0 + 1) = 2\]

Example 3

Evaluate:

\[\int_0^{3/2} \lfloor 2x \rfloor \, dx\]

Solution:

As \(x\) varies from \(0\) to \(\frac{3}{2}\), the inner expression \(2x\) varies from \(0\) to \(3\). Therefore, \(\lfloor 2x \rfloor\) jumps whenever \(2x\) reaches an integer (\(2x = 1, 2, 3\)):

  • \(2x = 1 \implies x = \frac{1}{2}\)
  • \(2x = 2 \implies x = 1\)
  • \(2x = 3 \implies x = \frac{3}{2}\)

This partitions \(\left[0, \frac{3}{2}\right]\) into three sub-intervals of length \(\frac{1}{2}\) each:

  • On \(\left[0, \frac{1}{2}\right)\), \(0 \le 2x < 1 \implies \lfloor 2x \rfloor = 0\).
  • On \(\left[\frac{1}{2}, 1\right)\), \(1 \le 2x < 2 \implies \lfloor 2x \rfloor = 1\).
  • On \(\left[1, \frac{3}{2}\right)\), \(2 \le 2x < 3 \implies \lfloor 2x \rfloor = 2\).

Splitting the integral at \(x = \frac{1}{2}\) and \(x = 1\):

\[\int_0^{3/2} \lfloor 2x \rfloor \, dx = \int_0^{1/2} 0 \, dx + \int_{1/2}^1 1 \, dx + \int_1^{3/2} 2 \, dx\]
\[= 0 + 1\left(1 - \frac{1}{2}\right) + 2\left(\frac{3}{2} - 1\right) = 0 + \frac{1}{2} + 1 = \frac{3}{2}\]

Example 4

Evaluate:

\[\int_0^3 \{x\} \, dx\]

where \(\{x\} = x - \lfloor x \rfloor\) denotes the fractional part of \(x\).

Solution:

The fractional part function \(\{x\} = x - \lfloor x \rfloor\) is continuous on every open unit interval \((n, n+1)\) and has a jump discontinuity at each integer \(x = 1, 2, 3\):

  • On \([0, 1)\), \(\lfloor x \rfloor = 0 \implies \{x\} = x\).
  • On \([1, 2)\), \(\lfloor x \rfloor = 1 \implies \{x\} = x - 1\).
  • On \([2, 3)\), \(\lfloor x \rfloor = 2 \implies \{x\} = x - 2\).

Splitting the interval \([0, 3]\) at the points of discontinuity \(x = 1\) and \(x = 2\):

\[\int_0^3 \{x\} \, dx = \int_0^1 x \, dx + \int_1^2 (x - 1) \, dx + \int_2^3 (x - 2) \, dx\]

Evaluating each piece using its antiderivative:

\[\int_0^1 x \, dx = \left[ \frac{x^2}{2} \right]_0^1 = \frac{1}{2} - 0 = \frac{1}{2}\]
\[\int_1^2 (x - 1) \, dx = \left[ \frac{(x - 1)^2}{2} \right]_1^2 = \frac{1}{2} - 0 = \frac{1}{2}\]
\[\int_2^3 (x - 2) \, dx = \left[ \frac{(x - 2)^2}{2} \right]_2^3 = \frac{1}{2} - 0 = \frac{1}{2}\]

Summing the three pieces gives:

\[\int_0^3 \{x\} \, dx = \frac{1}{2} + \frac{1}{2} + \frac{1}{2} = \frac{3}{2}\]

(Geometrically, the graph of \(y = \{x\}\) on \([0, 3]\) consists of three identical right-angled triangles, each of base \(1\) and height \(1\), so each triangle has area \(\frac{1}{2} \times 1 \times 1 = \frac{1}{2}\), giving a total area of \(3 \times \frac{1}{2} = \frac{3}{2}\).)


Example 5

Evaluate:

\[\int_1^3 x \lfloor x \rfloor \, dx\]

Solution:

Inside the interval \([1, 3]\), the greatest integer function \(\lfloor x \rfloor\) jumps at \(x = 2\) (and at the endpoint \(x = 3\)):

  • On \([1, 2)\), \(\lfloor x \rfloor = 1\), so the integrand is \(x \cdot 1 = x\).
  • On \([2, 3)\), \(\lfloor x \rfloor = 2\), so the integrand is \(x \cdot 2 = 2x\).

Splitting the integral at \(x = 2\):

\[\int_1^3 x \lfloor x \rfloor \, dx = \int_1^2 x \, dx + \int_2^3 2x \, dx\]

Applying the First Fundamental Theorem of Calculus on each piece:

\[\int_1^3 x \lfloor x \rfloor \, dx = \left[ \frac{x^2}{2} \right]_1^2 + \Big[ x^2 \Big]_2^3 = \left( \frac{4}{2} - \frac{1}{2} \right) + (9 - 4) = \frac{3}{2} + 5 = \frac{13}{2}\]

Example 6

Evaluate:

\[\int_{-1}^1 \frac{x^2 + 1}{x^4 + 1} \, dx\]

Solution:

Recall from Section 03 that to integrate \(\frac{x^2 + 1}{x^4 + 1}\), we divide the numerator and denominator by \(x^2\):

\[\int \frac{1 + \frac{1}{x^2}}{\left(x - \frac{1}{x}\right)^2 + (\sqrt{2})^2} \, dx = \frac{1}{\sqrt{2}} \tan^{-1} \left( \frac{x^2 - 1}{x\sqrt{2}} \right) + C\]

Let \(F(x) = \frac{1}{\sqrt{2}} \tan^{-1} \left( \frac{x^2 - 1}{x\sqrt{2}} \right)\).

Look carefully at the denominator inside \(\tan^{-1}\): it contains \(x\sqrt{2}\), which becomes \(0\) at \(x = 0\)! Since \(x = 0\) lies right in the middle of our interval \([-1, 1]\), \(F(x)\) has a jump discontinuity at \(c = 0\).

(Notice that if you blindly plugged in \(x = 1\) and \(x = -1\), you would get \(F(1) - F(-1) = 0 - 0 = 0\), which is impossible since \(\frac{x^2+1}{x^4+1} > 0\) everywhere!)

Using our \([ -1, 0 - h ]\) and \([ 0 + h, 1 ]\) formula around the trouble spot \(c = 0\):

\[\int_{-1}^1 \frac{x^2 + 1}{x^4 + 1} \, dx = \Big[ F(0^-) - F(-1) \Big] + \Big[ F(1) - F(0^+) \Big]\]

Let us evaluate each term:

At the outer endpoints: At \(x = -1\) and \(x = 1\), we have \(x^2 - 1 = 0\), so:

\[F(-1) = \frac{1}{\sqrt{2}} \tan^{-1}(0) = 0 \quad \text{and} \quad F(1) = \frac{1}{\sqrt{2}} \tan^{-1}(0) = 0\]

Left-Hand Limit at \(0\): As \(x \to 0^-\) (approaching \(0\) through negative numbers), the numerator \(x^2 - 1 \to -1\) (negative) and the denominator \(x\sqrt{2} \to 0^-\) (negative). A negative number divided by a tiny negative number goes to \(+\infty\):

\[F(0^-) = \lim_{h \to 0^+} \frac{1}{\sqrt{2}} \tan^{-1} \left( \frac{(-h)^2 - 1}{-h\sqrt{2}} \right) = \frac{1}{\sqrt{2}} \tan^{-1}(+\infty) = \frac{\pi}{2\sqrt{2}}\]

Right-Hand Limit at \(0\): As \(x \to 0^+\) (approaching \(0\) through positive numbers), the numerator \(x^2 - 1 \to -1\) (negative) and the denominator \(x\sqrt{2} \to 0^+\) (positive), so the fraction goes to \(-\infty\):

\[F(0^+) = \lim_{h \to 0^+} \frac{1}{\sqrt{2}} \tan^{-1} \left( \frac{h^2 - 1}{h\sqrt{2}} \right) = \frac{1}{\sqrt{2}} \tan^{-1}(-\infty) = -\frac{\pi}{2\sqrt{2}}\]

Combining the two pieces gives the exact value of the integral:

\[\int_{-1}^1 \frac{x^2 + 1}{x^4 + 1} \, dx = \left( \frac{\pi}{2\sqrt{2}} - 0 \right) + \left( 0 - \left(-\frac{\pi}{2\sqrt{2}}\right) \right) = \frac{\pi}{\sqrt{2}}\]

Example 7

Evaluate:

\[\int_0^\pi \sqrt{1 - \sin 2x} \, dx\]

Solution:

Using the trigonometric identities \(1 = \sin^2 x + \cos^2 x\) and \(\sin 2x = 2\sin x \cos x\), the expression inside the square root is a perfect square:

\[1 - \sin 2x = \sin^2 x + \cos^2 x - 2\sin x \cos x = (\sin x - \cos x)^2\]

Now be very careful when taking the square root! For any real number \(u\), \(\sqrt{u^2} = |u|\) (never simply \(u\)):

\[\sqrt{1 - \sin 2x} = \sqrt{(\sin x - \cos x)^2} = |\sin x - \cos x|\]

Where does \(\sin x - \cos x\) change sign inside \([0, \pi]\)? Setting \(\sin x = \cos x\) gives \(\tan x = 1\), so \(x = \frac{\pi}{4}\) is a corner point (point of non-differentiability):

  • On \(\left[0, \frac{\pi}{4}\right]\): We have \(\cos x \ge \sin x\), so \(\sin x - \cos x \le 0\), which means:
\[|\sin x - \cos x| = \cos x - \sin x\]
  • On \(\left[\frac{\pi}{4}, \pi\right]\): We have \(\sin x \ge \cos x\), so \(\sin x - \cos x \ge 0\), which means:
\[|\sin x - \cos x| = \sin x - \cos x\]

Splitting the integral at \(x = \frac{\pi}{4}\):

\[\int_0^\pi \sqrt{1 - \sin 2x} \, dx = \int_0^{\pi/4} (\cos x - \sin x) \, dx + \int_{\pi/4}^\pi (\sin x - \cos x) \, dx\]

Evaluating each piece using the First Fundamental Theorem of Calculus:

\[\int_0^{\pi/4} (\cos x - \sin x) \, dx = \Big[ \sin x + \cos x \Big]_0^{\pi/4} = \left( \frac{1}{\sqrt{2}} + \frac{1}{\sqrt{2}} \right) - (0 + 1) = \sqrt{2} - 1\]
\[\int_{\pi/4}^\pi (\sin x - \cos x) \, dx = \Big[ -\cos x - \sin x \Big]_{\pi/4}^\pi = \big( -(-1) - 0 \big) - \left( -\frac{1}{\sqrt{2}} - \frac{1}{\sqrt{2}} \right) = 1 + \sqrt{2}\]

Adding both pieces together:

\[\int_0^\pi \sqrt{1 - \sin 2x} \, dx = (\sqrt{2} - 1) + (1 + \sqrt{2}) = 2\sqrt{2}\]

Example 8

Evaluate:

\[\int_0^2 \lfloor x^2 - 2x + 2 \rfloor \, dx\]

Solution:

Here the inner function is \(g(x) = x^2 - 2x + 2\). To see its behavior on \([0, 2]\), we complete the square:

\[g(x) = (x - 1)^2 + 1\]

Let us sketch the parabola \(y = (x - 1)^2 + 1\) over \([0, 2]\):

  • At \(x = 0\), \(g(0) = (-1)^2 + 1 = 2\).
  • As \(x\) goes from \(0\) to \(1\), \(g(x)\) decreases from \(2\) down to its vertex minimum \(g(1) = 1\).
  • As \(x\) goes from \(1\) to \(2\), \(g(x)\) increases from \(1\) back up to \(g(2) = 2\).

Thus, for every interior point \(x \in (0, 2)\), the parabola lies strictly between \(y = 1\) and \(y = 2\):

\[1 \le (x - 1)^2 + 1 < 2 \quad \text{for all } x \in (0, 2)\]

The value \(g(x) = 2\) is reached only at the two single endpoints \(x = 0\) and \(x = 2\), which have width \(0\) and contribute zero area! Everywhere on the open interval \((0, 2)\), the step height is \(\lfloor (x - 1)^2 + 1 \rfloor = 1\).

Drawing the rectangle of height \(1\) and base \(2 - 0 = 2\) immediately gives:

\[\int_0^2 \lfloor x^2 - 2x + 2 \rfloor \, dx = 1 \times (2 - 0) = 2\]

Example 9

Evaluate:

\[\int_0^2 x \lfloor x^2 \rfloor \, dx\]

Solution:

Here the greatest integer function \(\lfloor x^2 \rfloor\) is multiplied by \(x\). As \(x\) increases from \(0\) to \(2\), \(x^2\) increases from \(0\) to \(4\), hitting the integers \(1, 2, 3\) at:

\[x = 1, \quad x = \sqrt{2}, \quad x = \sqrt{3}\]

We split the interval \([0, 2]\) at these three points and replace \(\lfloor x^2 \rfloor\) by its constant integer value on each sub-interval:

  • On \([0, 1)\), \(\lfloor x^2 \rfloor = 0 \implies x \lfloor x^2 \rfloor = 0\).
  • On \([1, \sqrt{2})\), \(\lfloor x^2 \rfloor = 1 \implies x \lfloor x^2 \rfloor = x\).
  • On \([\sqrt{2}, \sqrt{3})\), \(\lfloor x^2 \rfloor = 2 \implies x \lfloor x^2 \rfloor = 2x\).
  • On \([\sqrt{3}, 2)\), \(\lfloor x^2 \rfloor = 3 \implies x \lfloor x^2 \rfloor = 3x\).

Therefore:

\[\int_0^2 x \lfloor x^2 \rfloor \, dx = \int_0^1 0 \, dx + \int_1^{\sqrt{2}} x \, dx + \int_{\sqrt{2}}^{\sqrt{3}} 2x \, dx + \int_{\sqrt{3}}^2 3x \, dx\]

Integrating each piece using \(\int x \, dx = \frac{x^2}{2}\):

\[\int_0^2 x \lfloor x^2 \rfloor \, dx = 0 + \left[ \frac{x^2}{2} \right]_1^{\sqrt{2}} + 2\left[ \frac{x^2}{2} \right]_{\sqrt{2}}^{\sqrt{3}} + 3\left[ \frac{x^2}{2} \right]_{\sqrt{3}}^2\]
\[= \frac{2 - 1}{2} + 2\left( \frac{3 - 2}{2} \right) + 3\left( \frac{4 - 3}{2} \right) = \frac{1}{2} + \frac{2}{2} + \frac{3}{2} = \frac{6}{2} = 3\]

Example 10

Evaluate:

\[\int_0^3 \lfloor x \rfloor \, |x - 2| \, dx\]

Solution:

This integrand combines both the greatest integer function \(\lfloor x \rfloor\) (which jumps at \(x = 1\) and \(x = 2\)) and the modulus function \(|x - 2|\) (which has a sharp corner at \(x = 2\)).

Splitting the interval \([0, 3]\) at \(x = 1\) and \(x = 2\) takes care of both the jumps and the corner point simultaneously:

  • On \([0, 1)\): Here \(\lfloor x \rfloor = 0\), so the entire product is:
\[\lfloor x \rfloor \, |x - 2| = 0 \cdot |x - 2| = 0\]
  • On \([1, 2)\): Here \(\lfloor x \rfloor = 1\), and since \(x < 2\), we have \(|x - 2| = 2 - x\). Thus:
\[\lfloor x \rfloor \, |x - 2| = 1 \cdot (2 - x) = 2 - x\]
  • On \([2, 3)\): Here \(\lfloor x \rfloor = 2\), and since \(x \ge 2\), we have \(|x - 2| = x - 2\). Thus:
\[\lfloor x \rfloor \, |x - 2| = 2(x - 2) = 2x - 4\]

Summing the integrals over the three sub-intervals:

\[\int_0^3 \lfloor x \rfloor \, |x - 2| \, dx = \int_0^1 0 \, dx + \int_1^2 (2 - x) \, dx + \int_2^3 (2x - 4) \, dx\]

Applying the First Fundamental Theorem of Calculus to each piece:

\[\int_1^2 (2 - x) \, dx = \left[ 2x - \frac{x^2}{2} \right]_1^2 = (4 - 2) - \left(2 - \frac{1}{2}\right) = 2 - \frac{3}{2} = \frac{1}{2}\]
\[\int_2^3 (2x - 4) \, dx = \Big[ x^2 - 4x \Big]_2^3 = (9 - 12) - (4 - 8) = -3 - (-4) = 1\]

Adding the pieces together gives:

\[\int_0^3 \lfloor x \rfloor \, |x - 2| \, dx = 0 + \frac{1}{2} + 1 = \frac{3}{2}\]

Example 11

Evaluate:

\[\int_{-1}^2 \Big| \lfloor x \rfloor - x \Big| \, dx\]

Solution:

Recall that by definition of the greatest integer function, \(\lfloor x \rfloor \le x\) for every real number \(x\), and \(x - \lfloor x \rfloor = \{x\} \ge 0\) is the fractional part of \(x\).

Therefore, \(\lfloor x \rfloor - x = -\{x\} \le 0\), so taking its absolute value simply gives:

\[\Big| \lfloor x \rfloor - x \Big| = x - \lfloor x \rfloor = \{x\}\]

The interval \([-1, 2]\) contains three unit sub-intervals separated by the integer jump points \(x = 0\) and \(x = 1\):

  • On \([-1, 0)\): \(\lfloor x \rfloor = -1 \implies x - \lfloor x \rfloor = x - (-1) = x + 1\).
  • On \([0, 1)\): \(\lfloor x \rfloor = 0 \implies x - \lfloor x \rfloor = x\).
  • On \([1, 2)\): \(\lfloor x \rfloor = 1 \implies x - \lfloor x \rfloor = x - 1\).

Splitting the integral at \(x = 0\) and \(x = 1\):

\[\int_{-1}^2 \Big| \lfloor x \rfloor - x \Big| \, dx = \int_{-1}^0 (x + 1) \, dx + \int_0^1 x \, dx + \int_1^2 (x - 1) \, dx\]

Evaluating each piece:

\[\int_{-1}^0 (x + 1) \, dx = \left[ \frac{(x + 1)^2}{2} \right]_{-1}^0 = \frac{1}{2} - 0 = \frac{1}{2}\]
\[\int_0^1 x \, dx = \left[ \frac{x^2}{2} \right]_0^1 = \frac{1}{2} - 0 = \frac{1}{2}\]
\[\int_1^2 (x - 1) \, dx = \left[ \frac{(x - 1)^2}{2} \right]_1^2 = \frac{1}{2} - 0 = \frac{1}{2}\]

Adding the three pieces gives:

\[\int_{-1}^2 \Big| \lfloor x \rfloor - x \Big| \, dx = \frac{1}{2} + \frac{1}{2} + \frac{1}{2} = \frac{3}{2}\]

Example 12

Evaluate:

\[\int_0^2 e^{\lfloor x \rfloor + |x - 1|} \, dx\]

Solution:

The exponent \(\lfloor x \rfloor + |x - 1|\) has a jump discontinuity from \(\lfloor x \rfloor\) at \(x = 1\) (and at the endpoint \(x = 2\)), as well as a corner point from \(|x - 1|\) at \(x = 1\).

Thus, \(x = 1\) is the only interior trouble spot inside \((0, 2)\). Let us simplify the integrand on \([0, 1)\) and on \([1, 2)\):

  • On \([0, 1)\): Here \(\lfloor x \rfloor = 0\) and \(x - 1 < 0 \implies |x - 1| = 1 - x\). Therefore:
\[e^{\lfloor x \rfloor + |x - 1|} = e^{0 + (1 - x)} = e^{1 - x}\]
  • On \([1, 2)\): Here \(\lfloor x \rfloor = 1\) and \(x - 1 \ge 0 \implies |x - 1| = x - 1\). Therefore:
\[e^{\lfloor x \rfloor + |x - 1|} = e^{1 + (x - 1)} = e^x\]

Splitting the integral at \(x = 1\):

\[\int_0^2 e^{\lfloor x \rfloor + |x - 1|} \, dx = \int_0^1 e^{1 - x} \, dx + \int_1^2 e^x \, dx\]

Applying the First Fundamental Theorem of Calculus on each piece:

\[\int_0^1 e^{1 - x} \, dx = \Big[ -e^{1 - x} \Big]_0^1 = (-e^0) - (-e^1) = -1 + e = e - 1\]
\[\int_1^2 e^x \, dx = \Big[ e^x \Big]_1^2 = e^2 - e\]

Adding the two pieces together, \(-e\) and \(+e\) cancel:

\[\int_0^2 e^{\lfloor x \rfloor + |x - 1|} \, dx = (e - 1) + (e^2 - e) = e^2 - 1\]

Example 13

Evaluate:

\[\int_0^\pi \big( \lfloor \sin x \rfloor + \lfloor \cos x \rfloor \big) \, dx\]

Solution:

Using the sum property of definite integrals, we can examine \(\lfloor \sin x \rfloor\) and \(\lfloor \cos x \rfloor\) on \([0, \pi]\) using the graphical rectangle method:

Part 1 (Behavior of \(\lfloor \sin x \rfloor\) on \([0, \pi]\)): For every \(x \in [0, \pi]\) except the single point \(x = \frac{\pi}{2}\), we have \(0 \le \sin x < 1\), so \(\lfloor \sin x \rfloor = 0\). At the single point \(x = \frac{\pi}{2}\), \(\lfloor \sin(\pi/2) \rfloor = 1\), which has width \(0\) and contributes zero area! Thus:

\[\int_0^\pi \lfloor \sin x \rfloor \, dx = 0\]

Part 2 (Behavior of \(\lfloor \cos x \rfloor\) on \([0, \pi]\)): As \(x\) increases from \(0\) to \(\pi\), \(\cos x\) decreases from \(1\) to \(-1\), crossing \(0\) at \(x = \frac{\pi}{2}\):

  • At \(x = 0\), \(\lfloor \cos 0 \rfloor = 1\) (single point, zero area).
  • On \(\left(0, \frac{\pi}{2}\right]\), \(0 \le \cos x < 1 \implies \lfloor \cos x \rfloor = 0\) (height \(0\), area \(0\)).
  • On \(\left(\frac{\pi}{2}, \pi\right]\), \(-1 \le \cos x < 0 \implies \lfloor \cos x \rfloor = -1\).

On \(\left(\frac{\pi}{2}, \pi\right]\), the graph forms a single rectangle below the \(x\)-axis of signed height \(-1\) and width \(\pi - \frac{\pi}{2} = \frac{\pi}{2}\):

\[\int_0^\pi \lfloor \cos x \rfloor \, dx = 0 + (-1) \times \left( \pi - \frac{\pi}{2} \right) = -\frac{\pi}{2}\]

Combining both parts gives:

\[\int_0^\pi \big( \lfloor \sin x \rfloor + \lfloor \cos x \rfloor \big) \, dx = 0 + \left( -\frac{\pi}{2} \right) = -\frac{\pi}{2}\]

Summary

Trouble Spot Inside \([a, b]\) Why It Happens How to Evaluate Safely
General Discontinuity at \(x = c\) \(f(x)\) or \(F(x)\) has a break at \(x = c \in (a, b)\). Split into \([a, c-h]\) and \([c+h, b]\) as \(h \to 0^+\): \(\big[F(c^-) - F(a)\big] + \big[F(b) - F(c^+)\big]\).
Modulus / Corner Points Expressions like $ g(x)
Greatest Integer \(\lfloor g(x) \rfloor\) Jumps whenever the inner function \(g(x)\) reaches an integer. Find all \(x \in (a, b)\) where \(g(x) \in \mathbb{Z}\), split the interval there, and integrate the constant integer value on each piece.
Hidden Jump in Antiderivative \(F(x)\) Dividing by \(\cos^2 x\) (using \(\tan x\)) or by \(x^2\) (using \(x - \frac{1}{x}\)) makes \(F(x)\) jump at \(\cos x = 0\) or \(x = 0\). Split at the point \(c\) where the substitution is undefined and evaluate one-sided limits \(F(c^-)\) and \(F(c^+)\).