QuadraticCalc

Quadratic Approximation Calculator

Approximate a function near x = a with its second-order Taylor polynomial, and see how the error grows away from a.

Your Values

Try an example

Visualization

Results

Step-by-Step Solution

    How Quadratic Approximation Calculator Works?

    The quadratic approximation calculator evaluates f(a), f′(a) and f″(a), builds the second-order Taylor polynomial Q(x), and compares Q(x) with f(x) at the chosen point.

    1. Choose f(x), the centre a and a point x
    2. Evaluate f(a)
    3. Evaluate f′(a)
    4. Evaluate f″(a)
    5. Build Q(x)
    6. Compare f(x) and Q(x)

    The calculator supports 8 functions: eˣ, sin x, cos x, ln x, √x, 1/x, arctan x and x³. The red band on the chart is the error f(x) − Q(x) between the centre and the chosen point.

    Quadratic Approximation Formula

    The quadratic approximation formula is Q(x) = f(a) + f′(a)(x − a) + ½f″(a)(x − a)².

    Q(x) = f(a) + f′(a)(x − a) + ½f″(a)(x − a)²
    f(a)
    value at the centre
    f′(a)
    slope at the centre
    f″(a)
    curvature at the centre
    a
    centre of the approximation
    R₂(x)
    f‴(ξ)/6 · (x − a)³
    Maclaurin quadratic approximations
    f(x)Q(x) near a = 0
    eˣ1 + x + x²/2
    cos x1 − x²/2
    sin xx
    arctan xx

    For eˣ at a = 0 and x = 1, Q(1) = 2.5 and e ≈ 2.71828, an error of 0.218 (8.0%).

    Quadratic Approximation Calculator FAQ

    What Is the Difference Between a Linear and a Quadratic Approximation?

    A linear approximation matches the value and slope at a, and a quadratic approximation matches the value, the slope and the curvature, which makes it more accurate near a.

    What Is a Maclaurin Approximation?

    A Maclaurin approximation is a Taylor approximation centred at a = 0. eˣ ≈ 1 + x + x²/2 is the quadratic Maclaurin approximation.

    Why Does the Error Grow Away From the Centre?

    The error is proportional to (x − a)³, so doubling the distance from a multiplies the error by about 8.

    Is the Quadratic Approximation the Same as the Second-Order Taylor Polynomial?

    Yes, the quadratic approximation is the second-order Taylor polynomial of f at a.

    Can I Approximate ln x at a = 0?

    No, ln x is undefined at 0, so choose a positive centre such as a = 1.