Error Function Explained with Worked Examples

The error function is . It rises from 0 to 1 as goes from 0 to , and .

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Error function means

The integrand has no elementary antiderivative, so erf is defined as the integral itself and tabulated. Its limit is , which is the Gaussian integral . It has a Taylor series , obtained from the series for e to the power x by integrating term by term.

Values: , . The link with the normal distribution: , so , the familiar 68%; see the normal density and standardising.

It appears in heat conduction (the temperature profile of a diffusing step) and in probability and statistics, for example in confidence intervals and combining normal variables. The derivative is , which follows from the fundamental theorem of calculus, see the fundamental theorem of calculus.

What is it used for?

The error function is the area under a bell curve, and it measures how much of a normal distribution lies within a given distance of the centre.

How to use error function

  1. Identify and use a table or the series for .
  2. For a normal probability, use .
  3. Use for negative arguments.
  4. Use for limits.

Graph

erf(x) from its series, rising from −1 to 1erf(1) = 0.8427-1.5-1-0.500.511.5-1-0.500.51erf(x) from its series, rising from −1 to 1xyerf(x)limit 1Graph with x from -1.5 to 1.5 and y from -1.2 to 1.2. Shows the curve erf(x); the curve limit 1; point erf(1) = 0.8427 at (1, 0.8427).

The curve is odd and levels off at 1; at x = 1 it is already 0.8427.

Worked examples

These examples are worked by hand, step by step, so you can compare your own working.

Example 1: erf(1)

Estimate using the first eight terms of its series.

Worked example
Answer
0.84270.8427
  1. Series
  2. Sum

Example 2: erf(0.5)

Estimate using the first five terms.

Worked example
Answer
0.52050.5205
  1. Series
  2. Evaluate

Example 3: 68% rule

Find for a standard normal variable using erf.

Worked example
Answer
0.68270.6827
  1. Formula
  2. Value

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

erf(1)

series 8 terms

0.8427.

erf(0.5)

series

0.5205.

erf(2)

series

0.9953.

P(|Z| < 1)

erf(1/√2)

0.6827.

Word problems

erf(x) = (2/√π)∫₀ˣ e^(−t²)dt = (2/√π)Σ(−1)^k x^(2k+1)/(k!(2k+1)). It rises from 0 to 1, is odd, and P(|Z| < z) = erf(z/√2) for a standard normal Z.

erf(1)

Sum the series to eight terms at x = 1.

  1. 1.1284 × 0.7468
  2. Check: ✓0.8427

erf(0.5)

Same at x = 0.5.

  1. 1.1284 × 0.4613
  2. Check: ✓0.5205

Normal probability Higher

P(|Z| < 1) = erf(1/√2).

  1. series
  2. Check: ✓0.6827

Odd function Higher

Find erf(−1) = −erf(1).

  1. −0.8427
  2. Check: ✓-0.8427

Common mistakes

erf(∞) = ∞

diverges ✗

tends to 1 ✓

Bounded.

Forgetting 2/√π

omitted ✗

include 2/√π ✓

Normalisation.

P(Z < z) = erf(z)

wrong ✗

P(|Z| < z) = erf(z/√2) ✓

Scaling.

erf even

wrong ✗

odd ✓

erf(−x) = −erf(x).

Exam tips

  1. erf(∞) = 1.
  2. Odd function.
  3. 2/√π factor.
  4. P(|Z|<z) = erf(z/√2).
  5. Series for small x.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. erf(1) to 4 d.p. Foundation

0.8427

2. erf(0.5) to 4 d.p. Foundation

0.5205

3. erf(0.25) to 4 d.p. Foundation

0.2763

4. erf(−0.5) to 4 d.p. Higher

-0.5205

5. 2/√π to 4 d.p. Higher

1.1284

6. 1 − erf(1) to 4 d.p. Higher

0.1573

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Error function
erf(x).
Gaussian integral
∫e^(−t²).
Odd function
erf(−x) = −erf(x).
Complementary erfc
1 − erf.
Standard normal
N(0, 1).
Maclaurin series
Power series.

Frequently asked questions

What is erf(x)?

(2/√π)∫₀ˣ e^(−t²)dt.

What is erf(∞)?

1.

How is it linked to the normal distribution?

P(|Z| < z) = erf(z/√2).

Is it odd?

Yes.

Which page covers the Gaussian integral?

Gaussian integral.

Which page covers the Banach fixed-point theorem?

Banach fixed-point theorem.

More in Analysis, algebra and topology and the formula sheets.