Taylor and Maclaurin Series, Improper Integrals, Variation of Parameters, and Correlation and Regression

Four named items of the Engineering Mathematics syllabi that the first nine chapters of this course did not teach, though the published lists name them: Taylor series of a real function, evaluation of improper integrals, the method of variation of parameters for differential equations, and correlation and regression analysis. Whether your paper names all four or one is shown on its syllabus page; this chapter is shared, so read only the sections your paper asks. Taylor series write a smooth function as a polynomial in (x − a) whose coefficients are its derivatives at a — the reason limits such as (sin x − x)/x³ can be computed in one line and the reason numerical methods work. Improper integrals extend ∫ to an infinite range or an infinite integrand; the answer is a limit, and the whole question is whether the limit exists, with the powers 1/x^p and the Gamma and Beta functions as the standard yardsticks. Variation of parameters solves y″ + p y′ + q y = r(x) for any r by letting the constants of the homogeneous solution vary, where undetermined coefficients works only for exponential, polynomial and trigonometric r. Correlation and regression fit a straight line to data and measure how well it fits. Every number below was computed or checked by program: a three-term sine series gives sin 0.5 to 0.0000015 and e to six places needs 10 terms; the Gaussian integral is 1.772454 against √π; the particular solution of y″ + y = sec x was verified in the equation to 1.9e-8; and the six-point data set has r = 0.8783.
Overview

Taylor and Maclaurin Series, and Convergence Tests

2 min read · 1 part

If f has derivatives of all orders at a, its Taylor series is f(x) = Σ f⁽ⁿ⁾(a)(x − a)ⁿ/n!, and at a = 0 the Maclaurin series. The ones to know with their ranges of convergence: eˣ = Σxⁿ/n! (all x); sin x = x − x³/3! + x⁵/5! − … (all x); cos x = 1 − x²/2! + x⁴/4! − … (all x); ln(1 + x) = x − x²/2 + x³/3 − … (−1 < x ≤ 1); 1/(1 − x) = Σxⁿ (|x| < 1); (1 + x)^m = 1 + mx + m(m − 1)x²/2! + … (|x| < 1). Truncating after the term of degree n leaves a Lagrange remainder R_n = f⁽ⁿ⁺¹⁾(ξ)(x − a)ⁿ⁺¹/(n + 1)! for some ξ between a and x, which bounds the error. Three terms of the sine series at x = 0.5 give 0.4794271 against sin 0.5 = 0.4794255, an error of 0.0000015, inside the remainder bound 0.5⁷/7! = 0.0000016; four terms of ln(1 + x) at x = 0.1 give 0.0953083 against 0.0953102; and e = Σ 1/n! reaches six decimal places after 10 terms. Two variables: f(a + h, b + k) = f + (h fₓ + k f_y) + ½(h² fₓₓ + 2hk fₓ_y + k² f_yy) + …, the form used to find maxima and minima (second-order terms decide the character of a stationary point).

Limits by series. Replace each function by its series: (sin x − x)/x³ = (−x³/6 + x⁵/120 − …)/x³ → −1/6 (numerically -0.16667 at x = 0.01), and (eˣ − 1 − x)/x² → 1/2 (0.5002 at x = 0.001) — quicker and less error-prone than repeated L'Hôpital. Convergence of a series Σaₙ. The ratio test: with L = lim |aₙ₊₁/aₙ|, converges if L < 1, diverges if L > 1, inconclusive at L = 1. The p-series Σ1/nᵖ converges iff p > 1 (so 1/n diverges, 1/n² converges). Comparison: 0 ≤ aₙ ≤ bₙ with Σbₙ convergent forces Σaₙ convergent. Alternating series (Leibniz): Σ(−1)ⁿ⁺¹aₙ converges if aₙ decreases to 0, even when Σaₙ diverges (the alternating harmonic series, sum ln 2): conditional convergence, against absolute convergence when Σ|aₙ| converges. The radius of convergence of a power series Σcₙxⁿ is R = lim |cₙ/cₙ₊₁|; the series converges inside |x| < R, diverges outside, and the endpoints are tested separately.

If f has derivatives of all orders at a, its Taylor series is f(x) = Σ f⁽ⁿ⁾(a)(x − a)ⁿ/n!, and at a = 0 the Maclaurin series. The ones to know with their ranges of convergence: eˣ = Σxⁿ/n!…

Improper Integrals: Convergence, Gamma and Beta

2 min read · 1 part

An integral is improper if the range is infinite (Type I, ∫ₐ^∞ f = lim_(b→∞) ∫ₐᵇ f) or the integrand is unbounded at a point of the range (Type II, e.g. ∫₀¹ f with f → ∞ at 0, evaluated as lim_(ε→0⁺) ∫_ε¹ f). It converges if the limit is finite. The yardstick: ∫₁^∞ x⁻ᵖ dx converges iff p > 1 (value 1/(p − 1)), and ∫₀¹ x⁻ᵖ dx converges iff p < 1 (value 1/(1 − p)) — the two conditions point opposite ways, which is the usual trap. With these the comparison test decides most cases: if 0 ≤ f ≤ g and ∫g converges so does ∫f; the limit comparison test compares f/g → a finite non-zero constant. ∫₁^∞ x⁻² dx = 1 (the program's numerical value, truncated at 10⁵, is 0.99999); ∫₁^∞ x⁻¹ dx diverges; ∫₀¹ x^(−1/2) dx = 2 converges. A doubly infinite integral ∫_(−∞)^∞ needs both halves convergent; the Cauchy principal value symmetric limit can exist when the integral does not (∫_(−1)^1 dx/x has PV 0 although each half diverges), and conditionally convergent examples such as ∫₀^∞ (sin x)/x dx = π/2 exist.

Gamma and Beta. Γ(n) = ∫₀^∞ x^(n−1) e^(−x) dx, converging for n > 0, with Γ(n + 1) = nΓ(n), Γ(n) = (n − 1)! for integers and Γ(½) = √π. Check: ∫₀^∞ x² e^(−x) dx = Γ(3) = 2 (the program's quadrature gives 2.000000). The Gaussian integral ∫_(−∞)^∞ e^(−x²) dx = √π (the program: 1.772454 against 1.772454), obtained from Γ(½) by x² = t. Beta: B(m, n) = ∫₀¹ x^(m−1)(1 − x)^(n−1) dx = Γ(m)Γ(n)/Γ(m + n), and the trigonometric form ∫₀^(π/2) sin^p θ cos^q θ dθ = ½ B((p + 1)/2, (q + 1)/2). Example: p = 4, q = 2 gives ½B(5/2, 3/2) = ½ Γ(5/2)Γ(3/2)/Γ(4) = 0.098175 (π/32), and quadrature gives 0.098175. For ∫₀^∞ e^(−ax) dx = 1/a and ∫₀^∞ xⁿ e^(−ax) dx = n!/aⁿ⁺¹ — the Laplace transform of xⁿ — the same Gamma integral is at work.

IntegralConverges whenValue
∫₁^∞ x⁻ᵖ dxp > 11/(p − 1)
∫₀¹ x⁻ᵖ dxp < 11/(1 − p)
∫₀^∞ e^(−ax) dxa > 01/a
∫_(−∞)^∞ e^(−x²) dxalways√π
∫₀^∞ x^(n−1) e^(−x) dx = Γ(n)n > 0(n − 1)!

An integral is improper if the range is infinite (Type I, ∫ₐ^∞ f = lim_(b→∞) ∫ₐᵇ f) or the integrand is unbounded at a point of the range (Type II, e.g. ∫₀¹ f with f → ∞ at 0, evaluated as…

Variation of Parameters

2 min read · 1 part

For y″ + p(x) y′ + q(x) y = r(x), let y₁, y₂ be two independent solutions of the homogeneous equation with Wronskian W = y₁y₂′ − y₁′y₂ ≠ 0. Seek y_p = u₁(x) y₁ + u₂(x) y₂; imposing u₁′y₁ + u₂′y₂ = 0 and substituting gives u₁′ = −y₂ r / W, u₂′ = y₁ r / W, hence y_p = −y₁ ∫ y₂ r/W dx + y₂ ∫ y₁ r/W dx. The full solution is y = c₁y₁ + c₂y₂ + y_p. The method needs only that the homogeneous solutions are known and the integrals can be done — it works for any r(x), whereas undetermined coefficients works only when r is a sum of terms like xᵏeᵃˣ, sin bx, cos bx. Use undetermined coefficients when it applies (shorter), variation of parameters when r is sec x, tan x, 1/x, ln x, eˣ/x and so on. The equation must be in the standard form with coefficient 1 on y″ before r is read off.

Worked example: y″ + y = sec x. Homogeneous solutions y₁ = cos x, y₂ = sin x, so W = cos²x + sin²x = 1. Then ∫ y₂ r/W dx = ∫ sin x sec x dx = ∫ tan x dx = −ln|cos x|, and ∫ y₁ r/W dx = ∫ cos x sec x dx = x. Therefore y_p = −cos x · (−ln|cos x|) + sin x · x = cos x ln|cos x| + x sin x, and the general solution is y = c₁cos x + c₂ sin x + cos x ln|cos x| + x sin x. The program substituted y_p back into y″ + y − sec x at five points by finite differences and found a residual of at most 1.9e-8. (Undetermined coefficients cannot even start here: sec x is not in the allowed family.) Cross-check on a case both methods solve: y″ − 3y′ + 2y = e^(3x): trying y_p = A e^(3x) gives 9A − 9A + 2A = 1, A = ½; the program's residual for y_p = e^(3x)/2 is 7.1e-7. The first-order analogue is the integrating factor: y′ + P y = Q has solution y = e^(−∫P)[∫Q e^(∫P) dx + C].

For y″ + p(x) y′ + q(x) y = r(x), let y₁, y₂ be two independent solutions of the homogeneous equation with Wronskian W = y₁y₂′ − y₁′y₂ ≠ 0. Seek y_p = u₁(x) y₁ + u₂(x) y₂; imposing u₁′y₁ +…

Correlation and Regression

2 min read · 2 parts

Given paired data (xᵢ, yᵢ), let S_xx = Σ(x − x̄)², S_yy = Σ(y − ȳ)², S_xy = Σ(x − x̄)(y − ȳ). The Pearson correlation coefficient is r = S_xy / √(S_xx S_yy) ∈ [−1, 1]; r² is the fraction of the variance of y explained by the line. The least-squares regression line of y on x minimises Σ(y − a − bx)² and has slope b_yx = S_xy/S_xx and intercept a = ȳ − b x̄, so it passes through (x̄, ȳ); the residuals sum to zero. Data: x = 1…6, y = 2, 4, 5, 4, 5, 7. Then x̄ = 3.5, ȳ = 4.5, S_xx = 17.5, S_yy = 13.5, S_xy = 13.5; r = 0.8783, b = 0.7714, a = 1.8000: y = 1.800 + 0.771x, predicting 7.200 at x = 7 (extrapolation beyond the data is risky) and r² = 0.771. The program checked that the residuals sum to 0.0000000000.

Two regression lines. Regressing x on y gives a different line with slope b_xy = S_xy/S_yy, and the two slopes satisfy b_yx · b_xy = r² (here 0.7714 × 1.0000 = 0.7714 = 0.7714); both lines pass through (x̄, ȳ), they coincide only when r = ±1, and they are perpendicular-ish (the angle between them is largest) when r = 0, where they are the horizontal and vertical lines through the means. Correlation is not causation, and r measures linear association only — the pair (x, x²) on a symmetric range has r = 0 and a perfect relation. Spearman's rank correlation ρ = 1 − 6Σd²/(n(n² − 1)) uses the differences d of ranks: ranks 1–5 against 2, 1, 4, 3, 5 have Σd² = 4 and ρ = 0.800. Multiple regression fits y = b₀ + b₁x₁ + b₂x₂ + … by solving the normal equations XᵀXb = Xᵀy, which is the same least-squares idea in matrix form; the iterative solvers (Jacobi, Gauss–Seidel) listed in some syllabi are used when XᵀX is large.

🎯 Gamma, Beta and an improper integral, checked
Γ(n + 1) = n! for a whole number n, and Γ(1/2) = √π. The Beta function B(m, n) = Γ(m)Γ(n)/Γ(m + n), so B(2, 3) = 1!·2!/4! = 1/12. The integral ∫₁^∞ dx/xᵖ converges iff p > 1, and ∫₀¹ dx/xᵖ converges iff p < 1. The Maclaurin series eˣ = 1 + x + x²/2! + …, sin x = x − x³/3! + …, and 1/(1 − x) = 1 + x + x² + … for |x| < 1. For regression the slope of y on x is r·σ_y/σ_x, and the two regression lines coincide only when r = ±1.

Given paired data (xᵢ, yᵢ), let S_xx = Σ(x − x̄)², S_yy = Σ(y − ȳ)², S_xy = Σ(x − x̄)(y − ȳ). The Pearson correlation coefficient is r = S_xy / √(S_xx S_yy) ∈ [−1, 1]; r² is the fraction of…

Key takeaways

  • Taylor: f(x) = Σ f⁽ⁿ⁾(a)(x − a)ⁿ/n!; know eˣ, sin x, cos x (all x), ln(1 + x) and 1/(1 − x) with their ranges; the Lagrange remainder bounds the truncation error; use series to evaluate limits like (sin x − x)/x³ → −1/6.
  • Series tests: ratio test (L < 1 converges), p-series converges iff p > 1, comparison, Leibniz for alternating; conditional versus absolute convergence; radius R = lim |cₙ/cₙ₊₁|.
  • Improper integrals: ∫₁^∞ x⁻ᵖ converges iff p > 1 but ∫₀¹ x⁻ᵖ iff p < 1; Γ(n) = (n − 1)!, Γ(½) = √π, ∫e^(−x²) = √π, B(m, n) = Γ(m)Γ(n)/Γ(m + n).
  • Variation of parameters: y_p = −y₁∫y₂r/W + y₂∫y₁r/W with W the Wronskian and y″ coefficient 1; it works for any r (sec x, tan x, eˣ/x), where undetermined coefficients does not.
  • Regression of y on x: b = S_xy/S_xx, a = ȳ − bx̄, passes through (x̄, ȳ); r = S_xy/√(S_xxS_yy), r² = b_yx·b_xy; r measures linear association only; Spearman ρ = 1 − 6Σd²/(n(n² − 1)).

Practice questions (24)

Attempt each one before opening the answer. Every explanation names the tempting wrong option as well as the right one, because that is where marks are lost.

  1. The Maclaurin series of sin x is:

    1. x − x³/3! + x⁵/5! − …
    2. 1 − x²/2! + x⁴/4! − …
    3. x + x³/3! + x⁵/5! + …
    4. x − x²/2 + x³/3 − …
    Show answer

    Answer: A — x − x³/3! + x⁵/5! − …

    sin x is odd, so only odd powers appear, with alternating signs and factorial denominators. The second option is cos x, the third sinh x and the fourth ln(1 + x).
  2. Find lim (x→0) (sin x − x)/x³.

    Numerical answer — type the value.

    Show answer

    Answer: -0.1667

    sin x − x = −x³/6 + x⁵/120 − …, so dividing by x³ and letting x → 0 leaves −1/6 ≈ −0.1667. L'Hôpital three times gives the same.
  3. The series Σ 1/nᵖ converges if and only if:

    1. p ≥ 1
    2. p > 0
    3. p > 1
    4. p < 1
    Show answer

    Answer: C — p > 1

    The p-series is the integral-test cousin of ∫x⁻ᵖ: at p = 1 it is the harmonic series, which diverges, so convergence needs strictly p > 1.
Show the other 21 questions
  1. Which of the following improper integrals converges?

    1. ∫₁^∞ x^(−1/2) dx
    2. ∫₀¹ x⁻² dx
    3. ∫₁^∞ dx/x
    4. ∫₀¹ x^(−1/2) dx
    Show answer

    Answer: D — ∫₀¹ x^(−1/2) dx

    At the singular end 0 the integral ∫₀¹ x⁻ᵖ needs p < 1, and p = ½ qualifies (value 2). The other three have p ≤ 1 over an infinite range or p ≥ 1 at the singularity, so they diverge.
  2. Evaluate ∫₀^∞ x² e^(−x) dx.

    Numerical answer — type the value.

    Show answer

    Answer: 2

    The integral is Γ(3) = 2! = 2. Equivalently, integrating by parts twice gives 2 ∫₀^∞ e^(−x) dx = 2.
  3. ∫₀^(π/2) sin⁴θ cos²θ dθ equals, using the Beta function:

    1. π/16
    2. π/64
    3. π/8
    4. π/32 ≈ 0.0982
    Show answer

    Answer: D — π/32 ≈ 0.0982

    Using ½B(5/2, 3/2) = ½ Γ(5/2)Γ(3/2)/Γ(4) = ½ × (3√π/4)(√π/2)/6 = π/32 = 0.098175; numerical quadrature gives 0.098175.
  4. A particular solution of y″ + y = sec x, by variation of parameters, is:

    1. cos x · ln|cos x| + x sin x
    2. x cos x
    3. sec x
    4. sin x · ln|cos x| + x cos x
    Show answer

    Answer: A — cos x · ln|cos x| + x sin x

    With y₁ = cos x, y₂ = sin x, W = 1: y_p = −cos x ∫ sin x sec x dx + sin x ∫ cos x sec x dx = cos x ln|cos x| + x sin x. Undetermined coefficients cannot be used since sec x is not of the allowed form.
  5. In the variation-of-parameters formula y_p = −y₁∫(y₂ r/W)dx + y₂∫(y₁ r/W)dx, the quantity W is:

    1. the Wronskian y₁y₂′ − y₁′y₂ of the homogeneous solutions
    2. y₁y₂
    3. the determinant of the coefficient matrix of the right-hand side
    4. the work done by r
    Show answer

    Answer: A — the Wronskian y₁y₂′ − y₁′y₂ of the homogeneous solutions

    W = y₁y₂′ − y₁′y₂ is non-zero exactly when y₁ and y₂ are linearly independent, which is what allows the two integrals to be solved for u₁′ and u₂′.
  6. For the data x = 1, …, 6 and y = 2, 4, 5, 4, 5, 7, the least-squares line of y on x has slope and intercept nearest to:

    1. b = 1.000, a = 1.800
    2. b = 0.700, a = 2.000
    3. b = 0.771, a = 1.800
    4. b = 1.000, a = 1.500
    Show answer

    Answer: C — b = 0.771, a = 1.800

    S_xy = 13.5, S_xx = 17.5, so b = 0.771; a = ȳ − b x̄ = 4.5 − 0.771 × 3.5 = 1.800. The 1.000 option is the slope of the regression of x on y (S_xy/S_yy).
  7. The regression coefficients b_yx and b_xy and the correlation coefficient r are related by:

    1. b_yx + b_xy = r
    2. b_yx · b_xy = r²
    3. b_yx · b_xy = r
    4. b_yx / b_xy = r
    Show answer

    Answer: B — b_yx · b_xy = r²

    b_yx = S_xy/S_xx and b_xy = S_xy/S_yy, so the product is S_xy²/(S_xxS_yy) = r². Both have the sign of r, and r itself is their geometric mean.
  8. In the Maclaurin series of eˣ, the coefficient of x³, correct to three decimal places, is _____.

    Numerical answer — type the value.

    Show answer

    Answer: 0.167

    The Maclaurin coefficient of xⁿ is f⁽ⁿ⁾(0)/n!. Every derivative of eˣ at 0 equals 1, so the coefficient of x³ is 1/3! = 1/6 ≈ 0.167. The value 1 forgets to divide by the factorial.
  9. The series Σ 1/n² (n = 1, 2, 3, …) is:

    1. divergent, because its terms tend to 0 too slowly
    2. conditionally convergent
    3. convergent, by the p-series test with p = 2 > 1
    4. divergent, because it is a harmonic series
    Show answer

    Answer: C — convergent, by the p-series test with p = 2 > 1

    A p-series Σ 1/nᵖ converges exactly when p > 1; here p = 2 (its sum is π²/6). Terms tending to zero is necessary but not sufficient: the harmonic series Σ 1/n has p = 1 and diverges, which is what the tempting options mix up. The series has all positive terms, so it is absolutely convergent, not conditionally.
  10. The value of the improper integral ∫₁^∞ dx/x² is _____.

    Numerical answer — type the value.

    Show answer

    Answer: 1

    ∫₁^∞ x⁻² dx = [−1/x]₁^∞ = 0 − (−1) = 1. The integral converges because the exponent 2 exceeds 1. The value ∞ would belong to ∫₁^∞ dx/x, whose exponent is exactly 1.
  11. The least-squares regression line of y on x for the points (1, 2), (3, 6) and (5, 10) has slope _____.

    Numerical answer — type the value.

    Show answer

    Answer: 2

    The three points lie exactly on the line y = 2x (6 = 2 × 3, 10 = 2 × 5, 2 = 2 × 1), so the least-squares line is that line itself and the slope is 2. By the formula, Sxy/Sxx = 16/8 = 2 with x̄ = 3, ȳ = 6. The value 6/3 = 2 from one pair is correct only because the fit is perfect.
  12. The Wronskian of the functions sin x and cos x is:

    1. −1
    2. sin 2x
    3. 1
    4. 0
    Show answer

    Answer: A — −1

    W = y₁y₂′ − y₁′y₂ = sin x · (−sin x) − cos x · cos x = −(sin²x + cos²x) = −1. Non-zero, so the two solutions of y″ + y = 0 are independent. The value +1 results from the order of the functions reversed (cos x, sin x).
  13. In the Maclaurin series of ln(1 + x), the coefficient of x² is _____.

    Numerical answer — type the value.

    Show answer

    Answer: -0.5

    ln(1 + x) = x − x²/2 + x³/3 − …, so the coefficient of x² is −1/2. Equivalently, f″(0)/2! with f″ = −1/(1 + x)² = −1 at 0. The value +0.5 loses the alternating sign.
  14. The value of limx→0 (eˣ − 1 − x)/x² is _____.

    Numerical answer — type the value.

    Show answer

    Answer: 0.5

    Expand eˣ = 1 + x + x²/2 + x³/6 + …, so eˣ − 1 − x = x²/2 + x³/6 + … and the ratio tends to 1/2. L'Hôpital twice gives the same: (eˣ − 1)/(2x) then eˣ/2 → 1/2. The value 0 would arise from stopping after the first-order terms.
  15. The value of the improper integral ∫₀¹ dx/√x is _____.

    Numerical answer — type the value.

    Show answer

    Answer: 2

    The integrand blows up at 0, but ∫₀¹ x−1/2 dx = [2√x]₀¹ = 2 − 0 = 2 converges, since the exponent −1/2 is greater than −1. The value ∞ wrongly treats every singular integrand as divergent; by contrast ∫₀¹ dx/x diverges.
  16. The Wronskian of the two solutions eˣ and e−x of y″ − y = 0 is:

    1. −2
    2. 2
    3. 0
    4. 1
    Show answer

    Answer: A — −2

    W = y₁y₂′ − y₁′y₂ = eˣ(−e−x) − eˣ(e−x) = −1 − 1 = −2. It is a non-zero constant, as Abel's formula predicts for an equation with no y′ term. The value 0 would mean the solutions are dependent, which they are not.
  17. The least-squares line y = a + bx is fitted to the points (1, 1), (2, 2) and (3, 2). The predicted value at x = 4, correct to three decimal places, is _____.

    Numerical answer — type the value.

    Show answer

    Answer: 2.667

    x̄ = 2 and ȳ = 5/3. Sxy = (−1)(−2/3) + 0 + (1)(1/3) = 1 and Sxx = 1 + 0 + 1 = 2, so b = 1/2 and a = 5/3 − 1 = 2/3. At x = 4: 2/3 + 2 = 8/3 ≈ 2.667. Joining the end points (1, 1) and (3, 2) would give slope 0.5 too but intercept 0.5, and a prediction 2.5, which is not the least-squares line.
  18. Using the Beta function, ∫₀π/2 sin³θ cos⁵θ dθ equals _____ (correct to three decimal places).

    Numerical answer — type the value.

    Show answer

    Answer: 0.042

    ∫₀π/2 sinpθ cosqθ dθ = ½ B((p + 1)/2, (q + 1)/2). With p = 3, q = 5: ½ B(2, 3) = ½ Γ(2)Γ(3)/Γ(5) = ½ × (1 × 2)/24 = 1/24 ≈ 0.042. Check by substitution u = cos θ: ∫₀¹ (1 − u²) u⁵ du = 1/6 − 1/8 = 1/24 ✓. Forgetting the factor ½ gives 1/12.
  19. The value of ∫₀^∞ e−x² dx, correct to three decimal places, is _____.

    Numerical answer — type the value.

    Show answer

    Answer: 0.886

    Substitute t = x²: ∫₀^∞ e−x² dx = ½ ∫₀^∞ t−1/2 e−t dt = ½ Γ(1/2) = ½ √π = 0.886. The full-line integral ∫−∞∞ is √π ≈ 1.772, twice this value, which is the tempting wrong answer since the limits here start at 0.
  20. Using the second-degree Taylor polynomial of f(x) = √x about x = 4, the approximate value of √4.2, correct to four decimal places, is _____.

    Numerical answer — type the value.

    Show answer

    Answer: 2.0494

    f(4) = 2, f′ = 1/(2√x) = 1/4 and f″ = −1/(4x3/2) = −1/32 at x = 4. So f(4.2) ≈ 2 + (1/4)(0.2) + ½(−1/32)(0.2)² = 2 + 0.05 − 0.000625 = 2.049375 ≈ 2.0494. The exact √4.2 = 2.04939. The first-order estimate 2.05 is accurate only to two decimals.
  21. In the Maclaurin series of eˣ sin x, the coefficient of x³, correct to three decimal places, is _____.

    Numerical answer — type the value.

    Show answer

    Answer: 0.333

    Multiply the series: (1 + x + x²/2 + …)(x − x³/6 + …). The x³ terms come from 1 × (−x³/6) and (x²/2) × x, giving −1/6 + 1/2 = 1/3 ≈ 0.333. A candidate who multiplies only the leading terms x · x² obtains 1/2, forgetting the −x³/6 contribution of sin x.