Applications of Derivatives/Newton's Method and Antiderivatives

Lesson 3.4984 words

Newton's Method and Antiderivatives

Newton's method solves f(x)=0f(x) = 0 by repeatedly replacing the curve with its tangent line and jumping to the tangent's root, converging fast when it works and diverging when the derivative is small. Antiderivatives reverse differentiation: every antiderivative of a function differs from another by a constant, so the general antiderivative is a family of parallel curves, pinned to one by an initial condition.

╌╌╌╌

Most equations that arise in practice have no solution formula. A polynomial of degree five or higher has no root formula at all, and a transcendental equation like has none either. Newton's method solves such an equation numerically by repeatedly replacing the curve with its tangent line and jumping to the tangent's root. Antidifferentiation runs the derivative backward, recovering a function from its rate of change.

Newton's method

To solve is to locate an -intercept of the graph of . Newton's method starts from a guess and improves it by following the tangent. Near the tangent line hugs the curve, so the tangent's -intercept is close to the curve's. The tangent is a line, so its intercept is easy to compute.

The tangent at has slope , so its equation is . Setting and solving for the intercept , provided ,

Repeating from , then , and so on produces a sequence defined by the same rule at every step.

Each step drops from the guess to the curve, rides the tangent down to the axis, and lands closer to the root .

Newton used to demonstrate the method, starting from . With ,

The correct root to four decimals is , reached in two steps. When it converges, Newton's method roughly doubles the number of correct digits per iteration.

The doubling of correct digits per step is visible when the iterates are laid out.

Algorithm:Newton(f,f,x1,ε)\textsc{Newton}(f, f', x_1, \varepsilon) — approximate a root of f(x)=0f(x)=0
  1. 1
    xx1x \gets x_1
  2. 2
    repeat
  3. 3
    xnewxf(x)/f(x)x_{\text{new}} \gets x - f(x)/f'(x)
  4. 4
    if xnewx<ε|x_{\text{new}} - x| < \varepsilon then return xnewx_{\text{new}}
  5. 5
    xxnewx \gets x_{\text{new}}
  6. 6
    until a step limit is reached

When Newton's method fails

The tangent shortcut assumes the tangent points back toward the root. A small derivative tilts the tangent nearly flat, throwing its intercept far away, and a badly placed guess can send the iterates outside the domain or into an endless oscillation.

A near-horizontal tangent at (small ) sends farther from the root than was.

A poorly placed start can also trap the iteration in a loop. For starting at , the tangent lands at , and the tangent at lands back at ; the iterates cycle between and and never approach the real root near .

Newton's method can cycle: from the tangent lands at , and the tangent there returns to , so the iterates loop.

Newton's method is a local method: it converges quickly from a good starting point and unreliably from a poor one. A rough sketch or a bracketing of the root supplies the good start.

Antiderivatives

Differentiation sends a function to its rate of change. Recovering the function from the rate reverses that operation. A physicist with a velocity wants position; an engineer with a leak rate wants total volume lost. Each asks for a function whose derivative is known.

Antiderivatives are never unique. If then , but so does , and so does any . The corollary to the Mean Value Theorem shows there are no others: two functions with the same derivative on an interval differ by a constant.

The constant is a vertical shift, so the antiderivatives of a function form a family of curves stacked one above another, all with identical slope at each . Fixing one member requires one extra fact.

The antiderivatives of a function are vertical translates of one curve; every member has the same slope at each , and selects the height.

Reading antiderivatives off differentiation rules

Every differentiation formula, read from right to left, is an antidifferentiation formula. Two structural rules and the reversed power rule cover most cases.

Function Particular antiderivative

The power rule reversed, , fails at because the exponent would be zero; the antiderivative of is deferred to the natural logarithm. For example, to antidifferentiate , apply the table term by term:

Initial conditions

An equation involving the derivatives of an unknown function is a differential equation, and its general solution carries the arbitrary constant. An extra condition on the function selects one solution from the family.

For with , the general antiderivative is . Imposing gives , so and . A second-order equation needs two conditions, one for each integration.

Recovering motion from acceleration

Antidifferentiation reads position from velocity and velocity from acceleration. Given , one antiderivative recovers up to a constant fixed by the initial velocity, and a second recovers up to a constant fixed by the initial position. The geometry is the reverse of the sign chart: the slope of is known at every point, and the curve is the one threaded through those slopes from the starting height.

Near the surface of the earth, gravity supplies a constant downward acceleration of about ft/s, so a projectile's motion follows from antidifferentiating that constant twice.

Height of the thrown ball, : it rises to a peak at s, then falls, reaching the ground near s.
Reconstructing from its slope: the known prescribes a tangent direction at each , and one initial point selects the curve through them.

Footnotes

  1. Stewart, §3.8 — Newton's Method: the tangent-line derivation of the iteration , the cubic example, and the small-derivative failure case; §3.9 — Antiderivatives: the definition, the general antiderivative from the Mean Value Theorem corollary, the antidifferentiation table, and initial-value problems.

╌╌ END ╌╌