Ran Wei/ Calculus/Common mistakes
中文
Calculus · Reference

Common mistakes

Find the slip, see a counterexample, and follow the rule back to the module that explains it.

The entries follow the order of the series. Each one gives an example and the rule to use. For a definition, see the glossary. For a formula and its conditions, see the formula sheet.

Functions, limits and continuity · Derivatives and their applications · Integration and differential equations · Sequences and series · Curves, vectors and functions of several variables · Multiple integrals and vector calculus

1

Functions, limits and continuity

Cancelling away a domain restriction

The formula (x2−1)/(x−1)(x^2-1)/(x-1) simplifies to x+1x+1 for x≠1.x\ne1\mathclose{\text{.}} At x=1x=1 the original expression has denominator 0,0\mathclose{\text{,}} even though the simplified expression gives 2.2\mathclose{\text{.}}

Find the domain before cancelling and carry its restrictions into the simplified formula. Section 1.3

Taking a square root of a negative number

The formula x−2\sqrt{x-2} gives no real value at x=1x=1 because 1−2=−1.1-2=-1\mathclose{\text{.}} It does give a real value at x=2,x=2\mathclose{\text{,}} namely 0.0\mathclose{\text{.}}

For a real square root, require the expression under the root to be non-negative. Section 1.3

Feeding degrees into a radian formula

A right angle is 90∘,90^\circ\mathclose{\text{,}} or π/2\pi/2 radians. The sine at a right angle is 1,1\mathclose{\text{,}} but a radian-mode calculator given 9090 returns about 0.894.0.894\mathclose{\text{.}}

Convert degrees to radians before using a calculus formula or a Python trigonometric function. Section 1.4

Composing functions in the wrong order

For f(x)=x+1f(x)=x+1 and g(x)=2x,g(x)=2x\mathclose{\text{,}} applying gg and then ff at 33 gives 7.7\mathclose{\text{.}} Applying ff and then gg gives 8.8\mathclose{\text{.}}

In (f∘g)(x),(f\circ g)(x)\mathclose{\text{,}} apply gg first. Its output must lie in the domain of f.f\mathclose{\text{.}} Section 1.5

Taking the value at the point as the limit

Let f(x)=x+1f(x)=x+1 except that f(2)=9.f(2)=9\mathclose{\text{.}} As xx approaches 22 through nearby inputs, the outputs approach 3.3\mathclose{\text{.}} The single value 99 has no effect.

A limit concerns nearby inputs with x≠a.x\ne a\mathclose{\text{.}} Check the value at aa separately when testing continuity. Section 2.1

Using only one side of a limit

The quotient ∣x∣/x\abs{x}/x is 11 for positive xx and −1-1 for negative x.x\mathclose{\text{.}} Those two values disagree at the approach to 0.0\mathclose{\text{.}}

At an interior point the two-sided limit exists only when both one-sided limits exist and agree. Section 2.2

Treating zero over zero as a limit value

At x=0,x=0\mathclose{\text{,}} both x2/xx^2/x and x/xx/x have the form 0/0.0/0\mathclose{\text{.}} For x≠0x\ne0 the first equals xx and the second equals 1,1\mathclose{\text{,}} so their limits differ.

The form 0/00/0 calls for more work. Simplify on a punctured interval before using substitution. Section 2.5

Subtracting nearly equal floating-point numbers

The expression 1+x−1\sqrt{1+x}-1 is positive at x=10−18,x=10^{-18}\mathclose{\text{,}} yet ordinary Python floats give 0.00.0 for it. Computing x/(1+x+1)x/(\sqrt{1+x}+1) gives about 5×10−19.5\times10^{-19}\mathclose{\text{.}}

Rationalise to avoid the subtraction, then check the rewritten expression at the scale you need. Section 2.8

Checking the limit but forgetting the value

If f(x)=xf(x)=x for x≠0x\ne0 and f(0)=1,f(0)=1\mathclose{\text{,}} the limit at 00 is 00 but the value there is 1.1\mathclose{\text{.}}

At an interior point, continuity requires a defined value, an existing limit and equality of the two. Section 3.1

Using a sign change without continuity

Let f(x)=−1f(x)=-1 for x<0x<0 and f(x)=1f(x)=1 for x≥0.x\ge0\mathclose{\text{.}} The signs at −1-1 and 11 differ, but there is no zero.

Use the Intermediate Value Theorem only on an interval where the function is continuous. Section 3.3

Assuming an open interval has a maximum

The function f(x)=xf(x)=x on (0,1)(0,1) has values below 1.1\mathclose{\text{.}} Given any xx there, (x+1)/2(x+1)/2 lies in the interval and gives a larger value.

The Extreme Value Theorem guarantees a maximum and minimum for a continuous function on a closed bounded interval. Section 3.5

Confusing the two signs of infinity

In 1/x,1/x\mathclose{\text{,}} the denominator tends to 00 from both sides, but the values tend to −∞-\infty on the left and +∞+\infty on the right.

When a quotient has nonzero numerator limit and vanishing denominator, track the signs on each side. Section 3.6

2

Derivatives and their applications

Setting the step to zero before simplifying

For f(x)=x2f(x)=x^2 at a=2,a=2\mathclose{\text{,}} the quotient has the form 0/00/0 at h=0.h=0\mathclose{\text{.}} For h≠0h\ne0 it equals 4+h4+h and tends to 4.4\mathclose{\text{.}}

Compute the limit of the difference quotient through nonzero steps. Section 4.2

Assuming a continuous graph has a tangent slope

The function ∣x∣\abs{x} is continuous at 0.0\mathclose{\text{.}} Its right and left difference quotients at 00 are 11 and −1.-1\mathclose{\text{.}}

Differentiability implies continuity. To decide differentiability at a corner, compare the two one-sided slopes. Section 4.4

Giving a constant a nonzero derivative

The graph of y=7y=7 is horizontal. Differentiating 3x+73x+7 therefore gives 3.3\mathclose{\text{.}}

A constant contributes zero to the derivative. A constant factor multiplying a function stays as a factor. Section 4.5

Choosing the smallest possible finite difference

With a=1a=1 and h=10−18,h=10^{-18}\mathclose{\text{,}} ordinary Python floats satisfy 1+h=1.1+h=1\mathclose{\text{.}} The forward difference for x2x^2 then gives 00 even though the derivative is 2.2\mathclose{\text{.}}

Choose a step that balances truncation and rounding error, and compare estimates at several step sizes. Section 4.7

Multiplying derivatives in the product rule

For f(x)=g(x)=x,f(x)=g(x)=x\mathclose{\text{,}} the product of the derivatives is 1.1\mathclose{\text{.}} The derivative of the product at x=2x=2 is 4.4\mathclose{\text{.}}

Differentiate each factor in turn, leaving the other factor alone, and add the two terms. Section 5.2

Reversing the numerator of the quotient rule

For 1/x,1/x\mathclose{\text{,}} the derivative at x=2x=2 is −1/4.-1/4\mathclose{\text{.}} Reversing the subtraction gives +1/4.+1/4\mathclose{\text{.}}

For differentiable ff and gg with g(x)≠0,g(x)\ne0\mathclose{\text{,}} use (f′g−fg′)/g2.(f'g-fg')/g^2\mathclose{\text{.}} Section 5.3

Omitting the inner derivative

For sin⁡(3x),\sin(3x)\mathclose{\text{,}} the derivative at 00 is 3.3\mathclose{\text{.}} Differentiating only the outside gives cos⁡0=1.\cos0=1\mathclose{\text{.}}

Keep the inner expression inside the outer derivative, then multiply by the derivative of the inner expression. Section 5.5

Following only one use of an input

Take u=x2u=x^2 and y=u+x.y=u+x\mathclose{\text{.}} At x=2x=2 the path through uu contributes 44 and the direct path contributes 1,1\mathclose{\text{,}} giving a derivative of 5.5\mathclose{\text{.}}

When a computation depends on the same input along several paths, add all the path contributions. Section 5.8

Differentiating every exponential as itself

The derivative of 2x2^x at 00 is ln⁡2,\ln2\mathclose{\text{,}} about 0.693.0.693\mathclose{\text{.}} The function value there is 1.1\mathclose{\text{.}}

For a>0,a>0\mathclose{\text{,}} ddxax=(ln⁡a)ax.\dfrac{d}{dx}a^x=(\ln a)a^x\mathclose{\text{.}} The factor is 11 when a=e.a=e\mathclose{\text{.}} Section 6.1

Distributing the logarithm over a sum

At x=y=1,x=y=1\mathclose{\text{,}} ln⁡(x+y)=ln⁡2,\ln(x+y)=\ln2\mathclose{\text{,}} while ln⁡x+ln⁡y=0.\ln x+\ln y=0\mathclose{\text{.}}

The addition law is ln⁡(xy)=ln⁡x+ln⁡y\ln(xy)=\ln x+\ln y for positive xx and y.y\mathclose{\text{.}} It applies to a product. Section 6.3

Forgetting the derivative of y

On x2+y2=25,x^2+y^2=25\mathclose{\text{,}} the slope at (3,4)(3,4) is −3/4.-3/4\mathclose{\text{.}} Differentiating y2y^2 as 2y2y treats yy as the independent variable.

When yy depends on x,x\mathclose{\text{,}} differentiate y2y^2 as 2y dy/dx,2y\,dy/dx\mathclose{\text{,}} then solve for the slope where the coefficient permits division. Section 6.4

Reading inverse sine as a reciprocal

The value arcsin⁡(1/2)\arcsin(1/2) is π/6.\pi/6\mathclose{\text{.}} The reciprocal of sin⁡(1/2)\sin(1/2) is about 2.086.2.086\mathclose{\text{.}}

Use inverse sine to find an angle in [−π/2,π/2].[-\pi/2,\pi/2]\mathclose{\text{.}} Use 1/sin⁡x1/\sin x or csc⁡x\csc x for a reciprocal where the sine is nonzero. Section 6.5

Plugging in a changing length before differentiating

For a ladder of length 5,5\mathclose{\text{,}} x2+y2=25.x^2+y^2=25\mathclose{\text{.}} At (3,4)(3,4) with dx/dt=2,dx/dt=2\mathclose{\text{,}} the differentiated equation gives dy/dt=−3/2.dy/dt=-3/2\mathclose{\text{.}} Plugging in both lengths first gives an identity between constants and loses the rates.

Differentiate the relation in time while the changing quantities are still functions. Use the values at the instant afterwards. Section 7.1

Reading a tangent-line estimate as exact

The linearisation of x2x^2 at 22 predicts 88 at x=3.x=3\mathclose{\text{.}} The exact value is 9.9\mathclose{\text{.}}

Use f(a)+f′(a)(x−a)f(a)+f'(a)(x-a) for a differentiable function near a.a\mathclose{\text{.}} Check an error bound when accuracy matters. Section 7.2

Dividing by a zero Newton slope

Starting at x0=0x_0=0 for f(x)=x2−2f(x)=x^2-2 would require dividing −2-2 by f′(0)=0.f'(0)=0\mathclose{\text{.}} That step is undefined.

Check that the slope is nonzero at each iterate. Even with a defined step, convergence needs separate justification. Section 7.4

Applying L’Hôpital’s rule to a determinate quotient

As xx tends to 2,2\mathclose{\text{,}} (x2+1)/x(x^2+1)/x tends to 5/2.5/2\mathclose{\text{.}} The quotient of the derivatives is 2x,2x\mathclose{\text{,}} which tends to 4.4\mathclose{\text{.}}

Use the derivative quotient only for an indeterminate form covered by the rule, with its hypotheses checked. A nonzero finite denominator limit allows direct substitution. Section 7.5

Calling all stationary points extrema

For f(x)=x3,f(x)=x^3\mathclose{\text{,}} f′(0)=0.f'(0)=0\mathclose{\text{.}} The values at −1-1 and 11 are on opposite sides of f(0)=0,f(0)=0\mathclose{\text{,}} and every neighbourhood of 00 has the same pattern.

A stationary point is a candidate. Compare nearby values or test the sign of the derivative on both sides. Section 8.1

Using the Mean Value Theorem across a corner

On [−1,1],[-1,1]\mathclose{\text{,}} ∣x∣\abs{x} has equal endpoint values. Its derivative is −1-1 to the left of 00 and 11 to the right, so there is no interior point with derivative 0.0\mathclose{\text{.}}

The Mean Value Theorem requires continuity on the closed interval and differentiability at every interior point. Section 8.2

Calling every zero of the second derivative an inflection

For f(x)=x4,f(x)=x^4\mathclose{\text{,}} f′′(0)=0.f''(0)=0\mathclose{\text{.}} On both sides of 0,0\mathclose{\text{,}} f′′(x)=12x2f''(x)=12x^2 is positive, so the concavity does not change.

Use zeros of the second derivative as candidates and check for a change of concavity. Section 8.4

On [0,3],[0,3]\mathclose{\text{,}} x2x^2 has values 00 and 99 at the endpoints and no interior stationary points. Both extreme values occur at endpoints.

For a continuous function on a closed interval, compare endpoint values with values at all interior critical points. Section 8.6

3

Integration and differential equations

Leaving out the rectangle width

Two left rectangles for f(x)=xf(x)=x on [0,1][0,1] have heights 00 and 1/2.1/2\mathclose{\text{.}} Their sum of areas is 1/4,1/4\mathclose{\text{,}} because both have width 1/2.1/2\mathclose{\text{.}}

Multiply every sampled height by its subinterval width before adding. Section 9.3

Reversing the sign of an approximation error

For x2x^2 on [0,1][0,1] with one left rectangle, the estimate is 00 and the integral is 1/3.1/3\mathclose{\text{.}} The error is +1/3.+1/3\mathclose{\text{.}}

Use exact value minus approximation. Put absolute value signs around that difference if you want its magnitude. Section 9.3

Reading a signed integral as total area

On [−1,1],[-1,1]\mathclose{\text{,}} the integral of xx is 0.0\mathclose{\text{.}} Each triangle has area 1/2,1/2\mathclose{\text{,}} so the total area is 1.1\mathclose{\text{.}}

Use ∫ab∣f(x)∣ dx\int_a^b\abs{f(x)}\,dx for the total area between the graph and the axis. Section 9.4

Multiplying two integrals to integrate a product

The integral ∫01x2 dx\int_0^1 x^2\,dx is 1/3.1/3\mathclose{\text{.}} Multiplying the two integrals of xx gives (1/2)2=1/4.(1/2)^2=1/4\mathclose{\text{.}}

Linearity applies to sums and constant multiples. Integrate the product as one function. Section 9.5

Dropping the constant of integration

Both x2x^2 and x2+3x^2+3 have derivative 2x.2x\mathclose{\text{.}} If the antiderivative must have value 33 at 0,0\mathclose{\text{,}} only the second does.

Write the family of antiderivatives as F+CF+C on an interval. An initial value can determine C.C\mathclose{\text{.}} Section 10.1

Forgetting the chain rule for a variable upper limit

For A(x)=∫0x2t dt,A(x)=\int_0^{x^2}t\,dt\mathclose{\text{,}} the integral is x4/2.x^4/2\mathclose{\text{.}} Its derivative at x=2x=2 is 16,16\mathclose{\text{,}} while substituting the upper limit into the integrand alone gives 4.4\mathclose{\text{.}}

With a fixed lower limit and continuous integrand, evaluate the integrand at the upper limit and multiply by the derivative of that limit. Section 10.4

Forgetting the lower endpoint in the Fundamental Theorem

For ∫122x dx,\int_1^2 2x\,dx\mathclose{\text{,}} the antiderivative x2x^2 gives 44 at the upper end. The integral is 4−1=3.4-1=3\mathclose{\text{.}}

Evaluate the same antiderivative at both endpoints and subtract lower from upper. Section 10.5

Keeping the old bounds after a substitution

In ∫012x(x2+1) dx,\int_0^1 2x(x^2+1)\,dx\mathclose{\text{,}} let u=x2+1.u=x^2+1\mathclose{\text{.}} The new bounds 11 and 22 give 3/2.3/2\mathclose{\text{.}} The old bounds applied to uu give 1/2.1/2\mathclose{\text{.}}

Use bounds expressed in the integration variable. If you keep the original bounds, return to the original variable before evaluating. Section 10.7

Losing the minus sign in integration by parts

For ∫xex dx,\int xe^x\,dx\mathclose{\text{,}} the antiderivative is xex−ex+C.xe^x-e^x+C\mathclose{\text{.}} Using a plus gives derivative (x+2)ex.(x+2)e^x\mathclose{\text{.}}

Use ∫u dv=uv−∫v du,\int u\,dv=uv-\int v\,du\mathclose{\text{,}} and check the resulting antiderivative by differentiating. Section 11.1

Dropping an absolute value in trigonometric substitution

If x=2sec⁡θx=2\sec\theta at θ=3π/4,\theta=3\pi/4\mathclose{\text{,}} the square root x2−4\sqrt{x^2-4} is 2,2\mathclose{\text{,}} while 2tan⁡θ=−2.2\tan\theta=-2\mathclose{\text{.}}

Write 4tan⁡2θ=2∣tan⁡θ∣\sqrt{4\tan^2\theta}=2\abs{\tan\theta} and use the sign on the chosen angle interval. Section 11.3

Skipping division for an improper rational fraction

The quotient (x2+1)/x(x^2+1)/x contains a polynomial part x.x\mathclose{\text{.}} Using 1/x1/x alone gives 1/21/2 at 2,2\mathclose{\text{,}} whereas the full expression gives 5/2.5/2\mathclose{\text{.}}

If the numerator degree is at least the denominator degree, divide first. Decompose the proper remainder. Section 11.4

Using an odd number of Simpson subintervals

With five subintervals there are six sample points, enough for two complete pairs of subintervals with one subinterval left over.

Use an even number of equal-width subintervals for composite Simpson’s rule. Section 11.7

Ignoring a crossing when finding area between curves

On [0,1],[0,1]\mathclose{\text{,}} y=2x−1y=2x-1 crosses y=0y=0 at x=1/2.x=1/2\mathclose{\text{.}} The integral of 2x−12x-1 over the whole interval is 0,0\mathclose{\text{,}} but the triangles together have area 1/2.1/2\mathclose{\text{.}}

For continuous curves, split at the crossings and integrate the upper function minus the lower function on each piece. Section 12.2

Squaring the difference of the washer radii

With outer radius 33 and inner radius 1,1\mathclose{\text{,}} the annulus has area 8π.8\pi\mathclose{\text{.}} Squaring the difference of the radii gives 4π.4\pi\mathclose{\text{.}}

Compute the outer disc area and subtract the inner disc area before integrating the cross-sectional area. Section 12.3

Approximating arc length with staircase steps

A staircase made of horizontal and vertical steps from (0,0)(0,0) to (1,1)(1,1) has length 22 however small its steps are. The straight segment has length 2.\sqrt2\mathclose{\text{.}}

Approximate the curve by chords, then take the limit. For a continuously differentiable graph use ds=1+(f′(x))2 dxds=\sqrt{1+(f'(x))^2}\,dx with increasing x.x\mathclose{\text{.}} Section 12.5

Dividing by zero area in a centroid formula

If the upper and lower curves are both y=xy=x on [0,1],[0,1]\mathclose{\text{,}} their area difference and both first moments vanish. The centroid quotients have zero denominators.

Use the plate centroid formulas for positive area. For a density-weighted centre of mass, require positive total mass. Section 12.7

Cancelling across an improper singularity

For 1/x1/x on [−1,1],[-1,1]\mathclose{\text{,}} the integrals with equal gaps on either side of 00 cancel. The separate one-sided integrals diverge.

Split at an interior singularity and take the two limits independently. An ordinary improper integral exists only if both are finite. Section 12.8

Reusing the initial slope at every Euler step

For y′=yy'=y with y(0)=1y(0)=1 and step 1/2,1/2\mathclose{\text{,}} the first Euler value is 3/2.3/2\mathclose{\text{.}} The next slope is 3/2,3/2\mathclose{\text{,}} so the next value is 9/4.9/4\mathclose{\text{.}} Reusing slope 11 would give 2.2\mathclose{\text{.}}

Evaluate the direction field at the current point before every Euler update. Section 13.4

Losing an equilibrium by division

Separating y′=y(1−y)y'=y(1-y) by dividing by y(1−y)y(1-y) excludes the constant solutions y=0y=0 and y=1.y=1\mathclose{\text{.}} Both solve the original equation.

Check the zeros of the factor you divide by and include any constant solutions that satisfy the original equation. Section 13.5

Multiplying only one term by the integrating factor

For y′+2y=3,y'+2y=3\mathclose{\text{,}} the factor is e2t.e^{2t}\mathclose{\text{.}} If the right side stays 3,3\mathclose{\text{,}} the transformed equation gives the wrong solutions. For example, the constant solution y=3/2y=3/2 gives transformed derivative 3e2t.3e^{2t}\mathclose{\text{.}}

Multiply the whole equation by the integrating factor and recognise the product derivative on the left. Section 13.7

Using one solution twice at a repeated root

For y′′−2y′+y=0,y''-2y'+y=0\mathclose{\text{,}} the characteristic root 11 is repeated. Two copies of ete^t give only one independent constant. The function tette^t gives a second solution.

For a repeated root rr in a constant-coefficient second-order equation, use erte^{rt} and tert.te^{rt}\mathclose{\text{.}} Section 13.8

4

Sequences and series

Treating a bounded sequence as convergent

The terms of (−1)n(-1)^n stay between −1-1 and 1,1\mathclose{\text{,}} but even and odd indices give different values.

Boundedness gives convergence when the sequence is also monotone. Otherwise, check the behaviour of its terms. Section 14.1

Confusing the term limit with the series sum

For ∑n=1∞2−n,\sum_{n=1}^\infty 2^{-n}\mathclose{\text{,}} the terms tend to 00 but the partial sums tend to 1.1\mathclose{\text{.}}

Take the limit of the partial sums to find a series sum. Section 14.3

Using a zero term limit to prove convergence

The terms 1/n1/n tend to 0,0\mathclose{\text{,}} yet the harmonic series diverges. For example, the four terms with indices 55 through 88 add to at least 4/8=1/2,4/8=1/2\mathclose{\text{,}} and each successive doubled block adds at least another 1/2.1/2\mathclose{\text{.}}

Use the term test to rule out convergence when terms fail to tend to zero. Use another test to establish convergence. Section 14.4

Pointing a comparison the wrong way

The harmonic terms 1/n1/n exceed 1/n21/n^2 for n>1.n>1\mathclose{\text{.}} The smaller series converges, while the larger one diverges.

For non-negative terms, a convergent upper series proves convergence below it. A divergent lower series proves divergence above it. Section 14.6

Using alternating signs alone

The terms (−1)n(-1)^n alternate but their magnitudes stay at 1.1\mathclose{\text{.}} The partial sums through 1,2,3,41,2,3,4 are −1,0,−1,0.-1,0,-1,0\mathclose{\text{.}}

For the alternating series test, check that the term magnitudes eventually decrease to zero. Section 14.7

Deciding from a ratio limit of one

For both 1/n1/n and 1/n2,1/n^2\mathclose{\text{,}} the ratio of consecutive terms tends to 1.1\mathclose{\text{.}} Only the second of the two series converges.

A ratio limit of 11 is inconclusive. Try a test that accounts for the form of the terms. Section 14.8

Including both endpoints from the radius alone

For ∑n=1∞xn/n,\sum_{n=1}^\infty x^n/n\mathclose{\text{,}} the radius is 1.1\mathclose{\text{.}} At x=1x=1 the series is harmonic. At x=−1x=-1 it converges by the alternating series test.

Use the radius for the open interval about the centre. Test each finite endpoint on its own. Section 15.1

Using a geometric expansion outside its interval

The formula 1/(1−x)1/(1-x) gives −1-1 at x=2.x=2\mathclose{\text{.}} The terms 2n2^n grow, so the geometric expansion there does not sum to −1.-1\mathclose{\text{.}}

For the geometric series ∑n=0∞xn,\sum_{n=0}^\infty x^n\mathclose{\text{,}} use the formula 1/(1−x)1/(1-x) only for ∣x∣<1.\abs{x}<1\mathclose{\text{.}} Section 15.2

Carrying endpoint convergence through differentiation

The power series ∑n=1∞xn/n2\sum_{n=1}^\infty x^n/n^2 converges at x=1.x=1\mathclose{\text{.}} After differentiation the endpoint terms become 1/n1/n and their sum diverges.

Differentiate term by term inside the radius of convergence. Recheck endpoints for the new series. Section 15.3

Forgetting the factorial in a Taylor coefficient

The second derivative of exe^x at 00 is 1.1\mathclose{\text{.}} Putting x2x^2 in the Taylor polynomial gives second derivative 22 at 0.0\mathclose{\text{.}} Using x2/2x^2/2 gives 1.1\mathclose{\text{.}}

Use f(n)(a)/n!f^{(n)}(a)/n! as the coefficient of (x−a)n.(x-a)^n\mathclose{\text{.}} Section 15.4

Taking the first omitted term as a universal error bound

For exe^x at x=1,x=1\mathclose{\text{,}} the constant Taylor approximation is 1.1\mathclose{\text{.}} The next term is 1,1\mathclose{\text{,}} but the error e−1e-1 exceeds it.

Bound the needed derivative on the interval and apply Taylor’s inequality. The next-term bound requires a separate result such as the alternating series estimate. Section 15.5

5

Curves, vectors and functions of several variables

Leaving out the parameter interval

For (x,y)=(cos⁡t,sin⁡t),(x,y)=(\cos t,\sin t)\mathclose{\text{,}} the values from t=0t=0 to t=πt=\pi trace the upper semicircle. Extending to 2π2\pi traces the full circle.

Specify the parameter interval and the direction in which it is traversed. Section 16.1

Treating a vertical tangent as a finite slope

For (x,y)=(t2,t)(x,y)=(t^2,t) at t=0,t=0\mathclose{\text{,}} dx/dt=0dx/dt=0 and dy/dt=1.dy/dt=1\mathclose{\text{.}} The tangent vector points vertically.

Use (dy/dt)/(dx/dt)(dy/dt)/(dx/dt) only when dx/dt≠0.dx/dt\ne0\mathclose{\text{.}} A nonzero vertical tangent vector gives a vertical tangent line. Section 16.2

Using arctangent without checking the quadrant

At (−1,1),(-1,1)\mathclose{\text{,}} arctan⁡(y/x)=−π/4.\arctan(y/x)=-\pi/4\mathclose{\text{.}} For radius 2,\sqrt2\mathclose{\text{,}} that angle gives (1,−1).(1,-1)\mathclose{\text{.}} The correct angle is 3π/4.3\pi/4\mathclose{\text{.}}

Choose the angle from both coordinates, for example with a two-argument arctangent, when taking a positive radius. Section 16.3

Dividing a vector projection by length instead of length squared

Projecting ⟨2,3⟩\langle2,3\rangle onto ⟨2,0⟩\langle2,0\rangle gives ⟨2,0⟩.\langle2,0\rangle\mathclose{\text{.}} Dividing the dot product by the length and multiplying by ⟨2,0⟩\langle2,0\rangle gives ⟨4,0⟩.\langle4,0\rangle\mathclose{\text{.}}

For a projection onto a nonzero vector a,\vb a\mathclose{\text{,}} multiply a\vb a by (b⋅a)/(a⋅a).(\vb b\cdot\vb a)/(\vb a\cdot\vb a)\mathclose{\text{.}} Section 16.5

Swapping cross-product factors

The cross product i×j\vb i\times\vb j is k,\vb k\mathclose{\text{,}} while j×i\vb j\times\vb i is −k.-\vb k\mathclose{\text{.}}

Keep the order of the factors and use the right-hand rule for the direction. Section 16.6

Checking only straight paths to a multivariable limit

For f(x,y)=x2y/(x4+y2),f(x,y)=x^2y/(x^4+y^2)\mathclose{\text{,}} the limit along each line through the origin is 0.0\mathclose{\text{.}} Along y=x2,y=x^2\mathclose{\text{,}} the values are 1/21/2 away from the origin.

Two paths with different limits disprove a limit. To prove a limit, find a bound that holds for all points sufficiently close. Section 17.2

Differentiating all inputs at once

If f(x,y)=xy2,f(x,y)=xy^2\mathclose{\text{,}} then fx=y2.f_x=y^2\mathclose{\text{.}} At (2,3)(2,3) it is 9,9\mathclose{\text{,}} whereas fy=2xyf_y=2xy gives 12.12\mathclose{\text{.}}

Hold the other inputs fixed when taking a partial derivative. Section 17.3

Equating the differential with the actual change

At (1,1)(1,1) for z=x2+y2,z=x^2+y^2\mathclose{\text{,}} changing xx by 11 gives dz=2dz=2 and actual change Δz=3.\Delta z=3\mathclose{\text{.}}

For a differentiable function, use the differential as the linear approximation to a small change. Section 17.4

Using a non-unit direction vector

For f(x,y)=xf(x,y)=x in the direction of ⟨3,4⟩,\langle3,4\rangle\mathclose{\text{,}} the rate per unit distance is 3/5.3/5\mathclose{\text{.}} Dotting its gradient with the original vector gives 3.3\mathclose{\text{.}}

Normalise a nonzero direction vector before taking its dot product with the gradient. Section 17.6

Classifying by one second partial alone

At the origin for x2−y2,x^2-y^2\mathclose{\text{,}} fxx=2,f_{xx}=2\mathclose{\text{,}} but the Hessian determinant is −4.-4\mathclose{\text{.}} Along the coordinate axes the function takes opposite signs near the origin.

At a stationary point with continuous second partial derivatives, a negative determinant gives a saddle, regardless of the sign of fxx.f_{xx}\mathclose{\text{.}} Section 18.2

Taking a zero Hessian determinant as a classification

Both x4+y2x^4+y^2 and x4−y2x^4-y^2 have determinant 00 at the origin. The first has a minimum there. The second has signs of both kinds arbitrarily close by.

A zero determinant leaves the test inconclusive. Check the function on nearby points or use another argument. Section 18.2

Missing the corners of a region

On [0,1]×[0,1],[0,1]\times[0,1]\mathclose{\text{,}} f(x,y)=x+yf(x,y)=x+y has no stationary point. Its smallest and largest values are 00 and 2,2\mathclose{\text{,}} at corners.

For a continuous function on a closed bounded region, compare interior candidates with extrema on every boundary piece, including its endpoints. Section 18.3

Dividing by a variable in a multiplier equation

Maximising yy on x2+y2=1x^2+y^2=1 gives a multiplier equation 0=2λx.0=2\lambda x\mathclose{\text{.}} The maximum is at (0,1),(0,1)\mathclose{\text{,}} where cancelling xx would lose it.

Keep both branches when a factor can vanish. Solve with the constraint and check any points where the constraint gradient vanishes separately. Section 18.4

Treating vertical and horizontal residuals alike

For the points (0,0),(1,2),(2,2),(0,0),(1,2),(2,2)\mathclose{\text{,}} fitting yy on xx gives slope 1.1\mathclose{\text{.}} Fitting xx on yy gives slope 3/4,3/4\mathclose{\text{,}} whose reciprocal is 4/3.4/3\mathclose{\text{.}}

Choose which variable you are predicting. Ordinary least squares minimises squared errors in that response variable. Section 18.5

Assuming a bigger gradient step is faster

For f(x)=x2,f(x)=x^2\mathclose{\text{,}} the update is x↦(1−2η)x.x\mapsto(1-2\eta)x\mathclose{\text{.}} Starting at 1,1\mathclose{\text{,}} step size η=1/2\eta=1/2 reaches 00 immediately, but η=3/4\eta=3/4 reaches −1/2.-1/2\mathclose{\text{.}}

Check how the step size and curvature affect each update. A larger step can oscillate and an oversized one can diverge. Section 18.6

6

Multiple integrals and vector calculus

Keeping rectangular bounds with the wrong variables

For f(x,y)=xf(x,y)=x on 0≤x≤2,0\le x\le2\mathclose{\text{,}} 0≤y≤1,0\le y\le1\mathclose{\text{,}} integrating gives 2.2\mathclose{\text{.}} Swapping the differentials while leaving the numeric bounds where they are gives 1.1\mathclose{\text{.}}

Keep the correct interval with each variable when changing the order of integration. Section 19.2

Using the enclosing rectangle for a triangular slice

For 0≤y≤x≤1,0\le y\le x\le1\mathclose{\text{,}} the vertical slice has length x.x\mathclose{\text{.}} Using the upper limit 11 for every slice gives area 1,1\mathclose{\text{,}} while the triangle has area 1/2.1/2\mathclose{\text{.}}

Describe the lower and upper edges of one slice as functions of the outer variable. Section 19.3

Dropping the factor r in polar area

For the unit disc, integrating dr dθdr\,d\theta over 0≤r≤1,0\le r\le1\mathclose{\text{,}} 0≤θ≤2π0\le\theta\le2\pi gives 2π.2\pi\mathclose{\text{.}} Integrating r dr dθr\,dr\,d\theta gives π.\pi\mathclose{\text{.}}

Replace dAdA by r dr dθr\,dr\,d\theta for a once-covered planar region in polar coordinates. Section 19.4

Reading the height of a density as a probability

The constant density 44 on [0,1/2]×[0,1/2][0,1/2]\times[0,1/2] has total integral 1.1\mathclose{\text{.}} A single point in that square has probability 0.0\mathclose{\text{.}}

Integrate the joint density over an area to get a probability. Its pointwise height can exceed 1.1\mathclose{\text{.}} Section 19.5

Using the polar angle as a full turn in spherical coordinates

At spherical radius 11 and polar angle φ=π,\varphi=\pi\mathclose{\text{,}} the height is z=−1.z=-1\mathclose{\text{.}} At 2π2\pi the height is back to 1.1\mathclose{\text{.}}

Measure φ\varphi from the positive vertical axis, with 0≤φ≤π.0\le\varphi\le\pi\mathclose{\text{.}} The azimuth θ\theta makes the full turn. Section 19.7

Keeping the sign of a negative area Jacobian

The map (u,v)↦(v,u)(u,v)\mapsto(v,u) preserves the unit square but has determinant −1.-1\mathclose{\text{.}} Integrating that signed determinant would give area −1.-1\mathclose{\text{.}}

Use the absolute value of the Jacobian determinant in an area or volume calculation. Section 19.8

Omitting speed in a scalar line integral

For the line r(t)=⟨3t,4t⟩\vb r(t)=\langle3t,4t\rangle on 0≤t≤1,0\le t\le1\mathclose{\text{,}} the integral of 11 with respect to arc length is 5.5\mathclose{\text{.}} Integrating 11 with respect to tt gives 1.1\mathclose{\text{.}}

In a scalar line integral, substitute ds=∥r′(t)∥ dt.ds=\norm{\vb r'(t)}\,dt\mathclose{\text{.}} Section 20.2

Ignoring orientation for the work integral

For field F=⟨1,0⟩,\vb F=\langle1,0\rangle\mathclose{\text{,}} moving from (0,0)(0,0) to (2,0)(2,0) gives work 2.2\mathclose{\text{.}} Reversing the path gives −2.-2\mathclose{\text{.}}

Keep the path orientation when integrating F⋅dr.\vb F\cdot d\vb r\mathclose{\text{.}} Scalar arc-length integrals use positive length elements. Section 20.2

Using a derivative test across a hole

The field ⟨−y,x⟩/(x2+y2)\langle-y,x\rangle/(x^2+y^2) satisfies Py=QxP_y=Q_x away from the origin. Its anticlockwise circulation around the unit circle is 2π,2\pi\mathclose{\text{,}} so it has no potential on the punctured plane.

For the planar derivative test check continuous first partial derivatives and simple connectivity. When the domain has a hole, test path independence or construct a potential directly. Section 20.3

Treating a partial integration constant as a number

For fx=2xf_x=2x and fy=2y,f_y=2y\mathclose{\text{,}} integrating in xx gives x2+g(y).x^2+g(y)\mathclose{\text{.}} A numeric constant would give fy=0.f_y=0\mathclose{\text{.}} Choosing g(y)=y2g(y)=y^2 gives the required second partial.

After integrating a partial derivative, allow an arbitrary function of the held-fixed variables. Determine it from the other partial derivatives. Section 20.3

Using the clockwise sign in Green’s circulation formula

For F=⟨−y/2,x/2⟩\vb F=\langle-y/2,x/2\rangle on the unit circle, the anticlockwise circulation is π.\pi\mathclose{\text{.}} Traversing clockwise gives −π.-\pi\mathclose{\text{.}}

For Green’s circulation formula, orient the boundary with the region on your left. Reverse the sign for the opposite traversal. Section 20.4

Using the parameter area as surface area

For r(u,v)=⟨2u,3v,0⟩\vb r(u,v)=\langle2u,3v,0\rangle on the unit parameter square, the actual patch is a rectangle with area 6.6\mathclose{\text{.}} Its parameter square has area 1.1\mathclose{\text{.}}

For a smooth once-covered patch, multiply the parameter area by ∥ru×rv∥\norm{\vb r_u\times\vb r_v} in a scalar surface integral. Section 20.6

Applying the divergence theorem to an open surface alone

For the constant field ⟨0,0,1⟩,\langle0,0,1\rangle\mathclose{\text{,}} the upward flux through the top of a unit cube is 1.1\mathclose{\text{.}} Its divergence is 0.0\mathclose{\text{.}} The bottom contributes −1,-1\mathclose{\text{,}} so the closed-surface flux is 0.0\mathclose{\text{.}}

Apply the divergence theorem to the whole piecewise smooth outward-oriented boundary of a bounded solid, with the field continuously differentiable on a neighbourhood of the solid. Section 20.7