Quadratic Approximation Calculator

Type a function and a point near your value, and optionally the value to estimate.

Use x. Type powers with ^, and functions with brackets: sin(x), e^(2x), ln(x), sqrt(x).

Near x =aa

A point where f is easy to work out, such as 4 for sqrt(x).

Estimate at x = (optional)xx

Optional: a value of x to estimate f at, close to the point above.

Try

Result

You enteredf(x)=x,a=4f(x) = \sqrt{x},\quad a = 4

Q(4.1)=2.02484375\displaystyle Q(4.1) = 2.02484375

Q(x)

Q(x)=2+14(x−4)−164(x−4)2\displaystyle Q(x) = 2 + \frac{1}{4}\left(x - 4\right) - \frac{1}{64}\left(x - 4\right)^{2}

Exact value

f(4.1)≈2.024846\displaystyle f(4.1) \approx 2.024846

Error of Q

∣f−Q∣≈0.000002\displaystyle \left|f - Q\right| \approx 0.000002

Error of the linear approximation

∣f−L∣≈0.000154\displaystyle \left|f - L\right| \approx 0.000154
Show the work
  1. Power rule

    xx is raised to the constant power n=12n = \frac{1}{2}, so the exponent comes down in front and drops by one.

    Using ddxxn=nxn−1\frac{d}{dx}x^n = nx^{n-1}

    ddx[x]=12x\frac{d}{dx}\left[\sqrt{x}\right] = \frac{1}{2\sqrt{x}}
  2. First and second derivatives

    The approximation needs the first two derivatives.

    f′(x)=12xf′′(x)=−14x32\begin{gathered} f'(x) = \frac{1}{2\sqrt{x}} \\ f''(x) = -\frac{1}{4x^{\frac{3}{2}}} \end{gathered}
  3. Values at the point

    Put x=4x = 4 into ff, f′f' and f′′f''.

    f(4)=2f′(4)=14f′′(4)=−132\begin{gathered} f(4) = 2 \\ f'(4) = \frac{1}{4} \\ f''(4) = -\frac{1}{32} \end{gathered}
  4. Quadratic approximation

    The tangent line matches the value and the slope; adding the square term also matches the bending (the second derivative), so it stays close for longer.

    Q(x)=f(a)+f′(a)(x−a)+f′′(a)2(x−a)2=2+14(x−4)−164(x−4)2\begin{aligned} Q(x) &= f(a) + f'(a)(x - a) + \frac{f''(a)}{2}(x - a)^2 \\ &= 2 + \frac{1}{4}\left(x - 4\right) - \frac{1}{64}\left(x - 4\right)^{2} \end{aligned}
  5. Estimate at the chosen point

    Put x=4.1x = 4.1 into QQ.

    Q(4.1)=2.02484375Q(4.1) = 2.02484375
  6. Result

    The quadratic approximation.

Drag to pan. Scroll or pinch to zoom. Arrow keys pan and + / − zoom when the graph has focus.
  • y = √x

Worked examples