Tutorials › Calculus I › Numerical Intersections for Area Setups

Area Between Curves · Tutorial 1226 of 1495

Numerical Intersections for Area Setups

Use bisection or Newton’s method to approximate an intersection, then carry that approximation carefully into an area calculation.

Intermediate 11 min read

What You'll Learn

  • Define an intersection equation whose roots are the curves’ crossing points.
  • Use sign changes to bracket a root and bisection to narrow the bracket.
  • Apply Newton’s method and understand the conditions and limitations of its use.
  • Check an approximate intersection by evaluating the equation’s residual.
  • Set up and estimate an enclosed area using a numerical endpoint.

Why Approximate Intersections Matter

To find the area enclosed by two curves, we first need to know where their boundaries meet. If the intersection equation has no convenient exact solution, an exact endpoint may be unavailable even though the region is easy to describe and its area is well-defined.

In that situation, numerical root-finding gives a usable approximation to the intersection. That approximation can then serve as an integration bound. The procedure requires care: a numerical root should be supported by evidence such as a sign-changing interval or a small residual, and the resulting area should be reported as an estimate.

Key idea: To locate intersections of \(y=f(x)\) and \(y=g(x)\), solve \(h(x)=0\), where \(h(x)=f(x)-g(x)\). A root \(r\) of \(h\) is an \(x\)-coordinate where the curves meet.

Bracketing an Intersection

A useful first step is to find an interval \([a,b]\) where the continuous function \(h\) changes sign: \(h(a)\) and \(h(b)\) have opposite signs. The Intermediate Value Theorem then guarantees at least one root between \(a\) and \(b\). This does not guarantee that the root is unique; uniqueness requires additional information, such as \(h\) being strictly increasing or strictly decreasing on the interval.

Bisection repeatedly halves a sign-changing interval. If \(h(a)<0<h(b)\), evaluate \(h\) at the midpoint \(m=(a+b)/2\). If \(h(m)>0\), retain \([a,m]\); if \(h(m)<0\), retain \([m,b]\). If \(h(m)=0\), the root has been found exactly. When the signs are reversed, the same rule applies: retain the half whose endpoint values have opposite signs.

Theorem: If \(h\) is continuous on \([a,b]\) and \(h(a)\) and \(h(b)\) have opposite signs, bisection produces nested intervals containing a root. After \(n\) halvings their width is \((b-a)/2^n\), so the midpoint of the final interval is within \((b-a)/2^{n+1}\) of that root.

For the error bound, observe that each step retains an interval containing a root and halves its width. After \(n\) steps, the interval width is therefore \((b-a)/2^n\). Any root in that interval is at most half its width from the midpoint, giving the stated bound. If the sign change might enclose more than one root, bisection still retains at least one, but the particular root is not identified without further analysis.

Worked Example: Bisection for an Exponential Intersection

Worked Example: Bisection for an Exponential Intersection

Find an approximate intersection of \(y=e^x\) and \(y=x+2\), and use it to estimate the area between the curves and the vertical line \(x=0\).

Set \(h(x)=e^x-(x+2)\). At the endpoints \(x=1\) and \(x=1.5\),

$$ h(1)=e-3\approx 2.718282-3=-0.281718, \qquad h(1.5)=e^{1.5}-3.5\approx4.481689-3.5=0.981689. $$

The values have opposite signs, so continuity guarantees a root in \([1,1.5]\). The following bisection steps show the midpoint and its approximate function value. Each row retains the half-interval containing the sign change.

Midpoint testedApproximate \(h\) valueRetained interval
1.25\(e^{1.25}-3.25\approx 3.490343-3.25=0.240343\)\([1,1.25]\)
1.125\(e^{1.125}-3.125\approx 3.080217-3.125=-0.044783\)\([1.125,1.25]\)
1.1875\(e^{1.1875}-3.1875\approx 3.279-3.1875\approx0.0915\)\([1.125,1.1875]\)
1.15625\(e^{1.15625}-3.15625\approx3.177-3.15625\approx0.0208\)\([1.125,1.15625]\)
1.140625\(e^{1.140625}-3.140625\approx3.129-3.140625\approx-0.0116\)\([1.140625,1.15625]\)

Continuing to halve the bracket gives \([1.14618,1.14620]\): the function is negative at the left endpoint and positive at the right. Use the midpoint \(r\approx1.14619\) as the intersection estimate. Substitution gives \(h(1.14619)\approx-0.000007\), a small residual consistent with the bracket.

On \(0\le x\le r\), the line is above the exponential: at \(x=0\), \(2>1\), and there is no intervening intersection. The area is therefore estimated using line minus exponential:

$$ A\approx\int_0^{1.14619}(x+2-e^x)\,dx =\left[\frac{x^2}{2}+2x-e^x\right]_0^{1.14619} \approx0.80307. $$

To check the numerical simplification, at the estimated root \(e^r\approx r+2\), so the area expression reduces to \(r^2/2+r-1\). With \(r=1.14619\), \(r^2\approx1.31375\), giving \(1.31375/2+1.14619-1\approx0.80307\). This is an estimated area, not an exact value.

Newton’s Method

Bisection is dependable when a sign-changing bracket is known, but it can require many steps to obtain several accurate digits. Newton’s method can converge faster when a suitable starting value is available. For an equation \(h(x)=0\), its update is

$$ x_{n+1}=x_n-\frac{h(x_n)}{h'(x_n)}. $$

The method uses the tangent line to approximate the curve near the current estimate. The tangent line at \(x_n\) has equation \(y=h(x_n)+h'(x_n)(x-x_n)\). Its \(x\)-intercept solves \(0=h(x_n)+h'(x_n)(x-x_n)\). If \(h'(x_n)\ne0\), solving for \(x\) gives the Newton update above.

This derivation explains the method but does not guarantee convergence. The function must be differentiable near the root, the derivative used in the update must be nonzero, and a suitable starting value is needed. Some starting values produce steps that move away from the root or fail because the derivative is zero. A small residual \(\lvert h(x_n)\rvert\) is useful evidence, but does not alone prove that the estimate is close to a root if the function changes very slowly nearby.

Worked Example: Newton’s Method for a Logarithmic Intersection

Worked Example: Newton’s Method for a Logarithmic Intersection

Find the intersection of \(y=\ln x\) and \(y=2-x\) for \(x\ge1\), then estimate the area between the curves and the line \(x=1\). Define \(h(x)=\ln x+x-2\). Its derivative is \(h'(x)=1/x+1\), which is positive for \(x\ge1\); thus \(h\) is strictly increasing there and can have at most one root. Also, \(h(1)=-1\) and \(h(2)=\ln2>0\), so a root lies between 1 and 2.

Start Newton’s method at \(x_0=1.5\). The function and derivative values are

$$ h(1.5)=\ln(1.5)+1.5-2\approx0.405465-0.5=-0.094535, \qquad h'(1.5)=\frac{1}{1.5}+1\approx1.666667. $$

The first update is \(x_1=1.5-(-0.094535)/1.666667\approx1.556721\). At this estimate, \(h(1.556721)\approx-0.000698\) and \(h'(1.556721)\approx1.642382\), so

$$ x_2=1.556721-\frac{-0.000698}{1.642382}\approx1.557146. $$

Substitution gives \(h(1.557146)\) approximately \(0.000001\), so we use \(r\approx1.557146\). At \(x=1\), the line is above the logarithm, and the curves meet at \(r\). The area is

$$ A\approx\int_1^{1.557146}(2-x-\ln x)\,dx =\left[3x-\frac{x^2}{2}-x\ln x\right]_1^{1.557146} \approx0.26950. $$

At the intersection, \(\ln r=2-r\). Substituting this relation into the antiderivative at \(r\) gives \(3r-r^2/2-r(2-r)=r+r^2/2\). The antiderivative at 1 is \(3-1/2-0=2.5\). Since \(r^2\approx2.42470\), the area check is \(1.557146+2.42470/2-2.5\approx0.26950\).

Worked Example: A Trigonometric Intersection

Worked Example: A Trigonometric Intersection

Find the positive intersection of \(y=\sin x\) and \(y=x/2\), and estimate the area between the curves from \(x=0\) to that intersection. Set \(h(x)=\sin x-x/2\). The endpoint \(x=0\) is an exact intersection. For the positive one, Newton’s method gives \(h'(x)=\cos x-1/2\).

Starting from \(x_0=2\), use \(\sin2\approx0.909297\) and \(\cos2\approx-0.416147\):

$$ h(2)\approx0.909297-1=-0.090703, \qquad h'(2)\approx-0.416147-0.5=-0.916147, $$ $$ x_1=2-\frac{-0.090703}{-0.916147}\approx1.900995. $$

At \(x_1\approx1.900995\), \(h(x_1)\approx-0.00454\) and \(h'(x_1)\approx-0.824\). Thus the next update is approximately \(x_2=1.900995-(-0.00454)/(-0.824)\approx1.89549\). Substitution in the original equation gives \(\sin(1.89549)\approx0.94775\) and \(1.89549/2\approx0.94775\), agreeing to the shown precision.

On the interval between the two intersections, \(\sin x\) is above \(x/2\). Therefore, with \(r\approx1.89549\),

$$ A\approx\int_0^r\left(\sin x-\frac{x}{2}\right)\,dx =\left[-\cos x-\frac{x^2}{4}\right]_0^r =1-\cos r-\frac{r^2}{4} \approx0.4208. $$

For a numerical check, \(r^2\approx3.5929\), so \(r^2/4\approx0.8982\), and \(\cos r\approx-0.3190\). Hence \(1-(-0.3190)-0.8982\approx0.4208\). Because the endpoint is approximate, the reported area is approximate as well.

Choosing and Checking a Numerical Method

The methods complement one another. Bisection is appropriate when continuity and a sign-changing interval are established; its error bound follows directly from the interval width. Newton’s method is useful when a good starting value is available and evaluating the derivative is practical, but its steps should be checked rather than assumed to converge. A common strategy is to bracket the root first, then use Newton’s method while monitoring whether the estimates remain sensible.

1
Form the root equation.
For curves \(y=f(x)\) and \(y=g(x)\), define \(h(x)=f(x)-g(x)\).
2
Locate a candidate crossing.
Use function values, a graph, or a table to identify a plausible interval and check for a sign change.
3
Refine and verify.
Apply bisection or Newton’s method, then substitute the estimate into \(h\) and report the residual or bracket.
4
Set up the area with the correct order.
On the interval, determine which curve is above the other and integrate upper minus lower using the approximate bounds.

A Common Pitfall: Treating an Estimate as Exact

Suppose a calculation gives a root estimate \(r\approx1.14619\). Writing an area integral with upper bound \(1.14619\) does not make that bound exact. The integral and its evaluated value inherit the root approximation. Report the result with an approximation sign, and avoid claiming more precision than the root-finding supports.

Another error is to solve \(f(x)=g(x)\) numerically but then use \(f-g\) without checking its sign across the interval. The area is the integral of the upper curve minus the lower curve. Test an interior point, or otherwise establish the curves’ order, before choosing the integrand. If the order changes inside the region, the interval must be split at the crossing points.

Takeaway: A reliable numerical area setup identifies the intersection equation, supports the approximate root with a bracket or residual, checks the curves’ order, and labels the final area as an estimate.

Check Your Understanding

Answer each question using the definitions and methods in this tutorial.

  1. What equation should be solved to find intersections of \(y=f(x)\) and \(y=g(x)\)?
  2. Why does a sign change across an interval guarantee a root when the function is continuous?
  3. After four bisection steps, what is the interval width in terms of the original width \(b-a\)?
  4. What tangent-line idea produces the Newton update, and why does that derivation not guarantee convergence?
  5. Why should an area calculated using a numerical intersection be reported as an estimate?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon