Antiderivatives and Initial-Value Problems
Learning Objectives
- Define an antiderivative on an interval and explain why the general antiderivative is on that interval, and only there.
- Compute antiderivatives of the basic families and check every answer by differentiating it.
- Solve first-order and second-order initial-value problems for , using the conditions to fix the constants.
- Recognize situations where an antiderivative does not exist, is not elementary, or is only valid on part of the domain.
Context & Motivation
Differentiation answers "how fast is it changing?" Antidifferentiation asks the opposite: given the rate, what was the quantity? Given the velocity of a falling object, find its position. Given the rate at which requests arrive at a server, find the number served so far. Given the marginal cost of one more unit, find the total cost. In each case the rate pins down the answer only up to a constant, and a measurement (the starting position, the initial count) selects one function from the family. That pairing of an equation with a starting value is an initial-value problem, and it is the simplest case of the differential equations in differential-equations-and-initial-value-problems.
This lesson is the reverse reading of the rules in differentiation-rules-and-the-chain-rule and derivatives-of-exponentials-logarithms-and-trigonometric-functions, and it needs the monotonicity facts from the-mean-value-theorem-and-monotonicity, which are exactly what justify the "". It prepares the-definite-integral-and-riemann-sums, where area appears, and the-fundamental-theorem-of-calculus, where the two ideas meet.
Core Theory
Definition and the constant of integration
A function is an antiderivative of on an interval if for every . If is one antiderivative, so is for any constant , since the derivative of a constant is .
Conversely, if and are both antiderivatives of on an interval , then on , and the Mean Value Theorem consequence from the-mean-value-theorem-and-monotonicity says is constant on . So on an interval, every antiderivative has the form . The notation
stands for this entire family, called the indefinite integral. The word "interval" is essential. For , whose domain is , the function
is differentiable everywhere on the domain with , yet it does not have the form for a single . On each of the two intervals there is its own constant.
The basic table, read backwards
Each row is a derivative formula run in reverse. Every answer can and should be checked by differentiating it.
- for (on if is not an integer; for a negative integer the formula holds on and on separately, with an independent constant on each).
- on each of and . The absolute value is needed because as well.
- , , , , . The formula for holds on each interval separately, again with an independent constant on each, for the same reason as .
- Linearity: .
- For a linear inside function, for : the factor undoes the factor the chain rule produces.
There is no simple formula for the integral of a product: . Integration by parts is the product rule in reverse, but it is a method with its own bookkeeping, not a formula for . Methods for products and compositions arrive in integration-by-substitution-and-by-parts.
When no antiderivative is available
Not every function has one. A function with a jump cannot be an antiderivative's derivative on an interval containing the jump. Take , which is for and for . If on , then is differentiable and hence continuous, and on each side is plus a constant, so continuity at forces the same constant: . But has a corner at , so does not exist. No antiderivative exists on .
Continuous functions always have antiderivatives (this is guaranteed by the-fundamental-theorem-of-calculus), but the antiderivative may have no formula in elementary functions. The classic case is , whose antiderivatives are , where the error function is defined by an integral rather than a closed form. This is why probabilities for the Normal density are looked up in tables or computed numerically.
Initial-value problems
An initial-value problem pairs with a condition . Integrate to get , then substitute the condition to solve for . The solution is unique on any interval containing on which has an antiderivative, because two solutions differ by a constant that the condition forces to be . For a second-order problem , integrate twice to get two constants, and supply two conditions, such as and .
Worked Examples
Example 1: antiderivatives, checked
Find the general antiderivative of on . Term by term: , , and (the derivative of is ). So
Check: . This is the original, as required.
Example 2: a first-order initial-value problem
Solve with . Integrate: . The condition gives , so and . Check both requirements: and .
Example 3: motion under constant acceleration
A ball is thrown upward from a height of m at m/s. With acceleration m/s$^2$ (ignoring air resistance), find the position. Integrate once: , and gives . Integrate again: , and gives . So
The peak occurs where : s, at height m. The ball lands when . The quadratic has roots and . Only the positive root matters, since the model begins at . Each condition fixes its own constant: fixes after the first integration, and fixes after the second.
Example 4: an initial condition on a split domain
Solve with . The condition lives at a negative , so the interval containing on which is defined is . There , and gives . So on . The problem says nothing about what happens for , and the solution cannot be extended across , where is undefined. Quoting would be wrong twice: is undefined where the condition is given, and the constant on the other side is unconstrained.
Example 5: exact antiderivative versus a step-by-step simulation
A game loop updates the ball from Example 3 in steps of size . Explicit Euler uses the old velocity for the position update, , then . Semi-implicit Euler updates first. At the exact result from the antiderivative is and .
textdt explicit Euler semi-implicit Euler exact 0.1 26.380 24.420 25.400 0.01 25.498 25.302 25.400
Both methods get the velocity exactly (constant acceleration), while the position error at is (plus for explicit, minus for semi-implicit): it shrinks in proportion to . When the antiderivative is available in closed form, it is the reference against which a numerical integrator is judged.
Common Misconceptions & Pitfalls
- Forgetting . Without it you have named one antiderivative, and an initial condition has nothing to adjust.
- "." Valid only for . The general statement is on each interval, with possibly different constants.
- One constant for a disconnected domain. The uniqueness of comes from the Mean Value Theorem and needs an interval.
- Reverse chain rule without the inner derivative. The derivative of is , so is not up to a constant factor. The shortcut works only because has a constant derivative.
- "Every initial-value problem has exactly one solution." For with continuous on an interval, it does: existence from the antiderivative, uniqueness from the constant. Without continuity, existence can fail: with has no solution on . For equations where the right side depends on , uniqueness can fail: (with read as the square of the real cube root) with has both and as solutions. Existence and uniqueness are taken up in
differential-equations-and-initial-value-problems. - Antiderivative versus definite integral. An indefinite integral is a family of functions. A definite integral is a number, introduced in the next lessons.
Summary
An antiderivative of on an interval is a function whose derivative is there. By the Mean Value Theorem, any two antiderivatives on an interval differ by a constant, so the general antiderivative is , and the interval requirement is real: gives independent constants on and . The basic table is the derivative table read backwards, and every answer is verified by differentiating it. Some functions have no antiderivative on an interval (a jump, like ), and some have one that no elementary formula expresses (). An initial-value problem uses conditions to fix the constants, one per integration, and the solution it selects lives on the interval containing the initial point. Antiderivatives of constant acceleration give exact motion and serve as the benchmark for numerical integrators. The next lesson, the-definite-integral-and-riemann-sums, introduces area, and later the-fundamental-theorem-of-calculus explains how it connects to what you did here.