IB Maths Help logoIB Maths Help

Definite integral (area under a curve)

Find ∫abf(x)dx\int_a^b f(x)\,dx on your calculator, with the exact key presses for the TI-84 Plus CE, Casio fx-CG50, Casio fx-CG100 and TI-Nspire CX, plus what to write in the exam and what to do when the curve dips below the axis.

Used inAA SLAA HLAI SLAI HL

A definite integral gives the signed area between a curve and the x-axis from x = a to x = b, counting regions below the axis as negative. Enter the function and the two limits using your calculator's integral command, or graph the function and use its integral tool. For a true area where the curve crosses the axis, integrate the absolute value of the function.

Example

Find ∫03(x2−4)dx\int_0^3 (x^2-4)\,dx, and the area between the curve and the x-axis from x = 0 to x = 3.

xy−11234−4−2246y = x² − 4

The curve is below the axis for 0 < x < 2, so the integral gives −3-3 but the area is 7.677.67. Each calculator below finds both numbers.

Choose your calculator

How to find a definite integral on a TI-84 Plus CE

Route A: type the integral (quickest)

On the home screen press math, then 9 to choose 9:fnInt. In MathPrint mode (the default) an integral template appears, with boxes for the limits and the function.

The cursor starts in the lower limit box: type 0. Press ▶ to move to the next box and type 3 for the upper limit, then press ▶ again and type X,T,θ,n x² − 4 for the function. Use the X,T,θ,n key for x, not ALPHA. If the template has a box for the variable after the function, type X,T,θ,n there too.

∫03(X2−4)dX\int_0^3 (X^2-4)\,dX

Press enter.

The signed value is −3-3.

∫03(X2−4)dX\int_0^3 (X^2-4)\,dX
-3

For the area. Open the template again. In the function box press math ▶ (NUM) 1 for abs(, then type X,T,θ,n x² − 4. If abs( shows an open bracket, close it with ); if it shows bars, press ▶ to move out of them. Keep the limits 0 and 3 and press enter.

The area is 7.677.67 to 3 significant figures.

∫03abs(X2−4)dX\int_0^3 \mathrm{abs}(X^2-4)\,dX
7.666666667

If you see fnInt( instead of a template, the calculator is in Classic mode. Type fnInt(X²-4,X,0,3) with commas between the four parts, or press mode and choose MATHPRINT.

Route B: from the graph (shows the region)

Press Y=, clear any old function with clear, then type X,T,θ,n x² − 4 next to Y1=.

Plot1 Plot2 Plot3
\Y1=X²-4
\Y2=
\Y3=

Press window and set Xmin = −1, Xmax = 4, Ymin = −5, Ymax = 6. For a negative number use the (−) key next to the decimal point, not the subtraction key.

WINDOW
Xmin=-1
Xmax=4
Xscl=1
Ymin=-5
Ymax=6
Yscl=1

Press graph, then 2nd trace (CALC) and choose 7:∫f(x)dx\int f(x)\,dx.

If more than one function is drawn, press ▲ or ▼ to choose it. At Lower Limit? type 0 and press enter. At Upper Limit? type 3 and press enter.

Upper Limit?

The region is shaded and the value appears. The part below the axis is counted as negative, which is why the value is −3-3 and not the area. Use Route A with abs( for the area.

∫f(x)dx=-3

Tip: Route B only works if x = 0 and x = 3 are inside the window, so check WINDOW before pressing CALC. In MathPrint mode this route and the template in Route A both use a tolerance of 0.001, which is accurate enough for 3 significant figures. Typing fnInt( in Classic mode uses 0.00001 unless you choose another.

How to find a definite integral on a Casio fx-CG50

Route A: type the integral (quickest)

Press MENU, then 1 to open Run-Matrix.

Press OPTN, then F4 (CALC), then F4 (∫dx\int dx). An integral template appears with boxes for the function and the two limits.

Type the function: X,θ,T x² − 4. Press ▶ to move to the lower limit box and type 0, press ▲ to move to the upper limit box and type 3, then press EXE.

The signed value is −3-3.

∫03(X2−4)dX\int_0^3 (X^2-4)\,dX
-3

For the area. Open the same template. In the function box press F4 (MATH), then F3 (Abs). Type X,θ,T x² − 4, then press ▶ to leave the bars. Press ▶ again to move to the lower limit box and type 0, press ▲ and type 3, then press EXE.

The area is 7.677.67 to 3 significant figures.

∫03Abs(X2−4)dX\int_0^3 \mathrm{Abs}(X^2-4)\,dX
23/3

Route B: from the graph (shows the region)

Press MENU, then 5 to open Graph. If Y1 already holds a function, highlight it and press F2 (DELETE), then F1 (Yes).

Next to Y1 type X,θ,T x² − 4 and press EXE.

Y1=X²-4
Y2:
Y3:

Press SHIFT F3 (V-Window) and set Xmin = −1, Xmax = 4, Ymin = −5, Ymax = 6, pressing EXE after each value. For a negative number use the (−) key. Press EXIT.

Press F6 (DRAW) to plot the curve.

Press SHIFT F5 (G-Solv), then F6 (▷), then F3 (∫dx\int dx), then F1 (∫dx\int dx). If more than one graph is drawn, use ▲ ▼ to choose it and press EXE. Type 0 and press EXE for the lower limit, then type 3 and press EXE for the upper limit.

The region is shaded and the signed value is −3-3. The same menu has a ROOT option that integrates between roots, which is useful when the curve crosses the axis: find the root (x = 2), integrate each section, then add the sizes ignoring any minus sign (5.33+2.33=7.675.33 + 2.33 = 7.67).

∫dx=-3

Tip: If the answer appears as a fraction, press S↔D to switch it to a decimal, then round as the question asks.

How to find a definite integral on a Casio fx-CG100

Route A: type the integral (quickest)

Press HOME and open the Calculate app. Press CATALOG, choose Function Analysis, then Integration. This pastes the integral command, with room for the function, the lower limit and the upper limit separated by commas.

Type X,θ,T,Y x² − 4 , 0 , 3 ), then press EXE.

The signed value is −3-3.

For the area. Select the integral as above. Where the function goes, press CATALOG, then 4 (Numeric Calc), then 3 (Absolute Value). Type X,θ,T,Y x² − 4 and close the bracket with ). Then type , 0 , 3 ) and press EXE.

The area is 7.677.67 to 3 significant figures.

Route B: from the graph (shows the region)

Press HOME and open the Graph&Table app. On the Function tab, type X,θ,T,Y x² − 4 in the y1 line and press EXE. Draw the graph, and adjust the view window so that x = 0 to x = 3 and y = −5 to y = 6 are visible.

Press TOOLS, choose Graph Solve, then ∫dx\int dx, then ∫dx\int dx again. Type the lower limit 0 and press OK, then type the upper limit 3 and press OK.

The region is shaded and the signed value is −3-3.

Tip: The ∫dx\int dx menu also has Root, Intersection and Mixed options. They show both the integral value and the area between roots, between intersections, or between an intersection and a root.

How to find a definite integral on a TI-Nspire CX

Route A: type the integral (quickest)

From the home screen, select A Calculator.

Press menu → Calculus → Numeric Integral. A template appears. Fill in the function, the variable and the two limits, using tab to move between boxes: function x^2-4, variable x, limits 0 and 3, then press enter.

1.1   *Doc     RAD
∫03(x2−4)dx\int_0^3 (x^2-4)\,dx
-3.

For the area. Open the same template. Where the function goes, press template and select the absolute value template, the |x| symbol on the right of the top row. Type x^2-4 between the bars, then fill in the variable and the limits as before and press enter.

The area is 7.677.67 to 3 significant figures.

1.1   *Doc     RAD
∫03|x2−4|dx\int_0^3 \left|x^2-4\right|\,dx
7.66667

Route B: from the graph (shows the region)

Open a new document and choose Graphs from the home screen. In the entry line f1(x)= type x^2-4 and press enter.

Press menu → Window/Zoom → Window Settings and set XMin = −1, XMax = 4, YMin = −5, YMax = 6. For a negative number use the (−) key. Press OK.

f1(x)=x^2-4

Press menu → Analyze Graph → Integral. Click the graph, then click again near x = 0 to mark the lower bound. Press ◀ ▶ to move the dotted line to x = 3 and click to set the upper bound.

The region is shaded and the signed value −3-3 is shown on the graph.

-3

Tip: If the function has trigonometry, check that the page header shows RAD before you start.

Sources. Key presses follow the manufacturers' documentation: the TI-84 Plus CE Getting Started guide, the TI-Nspire CX Reference Guide, the Casio fx-CG50 Software User's Guide (version 3.30) and the Casio fx-CG100 online manual.

What to write in the exam

  • Write the integral with its limits, for example ∫03|x2−4|dx=7.67\int_0^3 \left|x^2-4\right|\,dx = 7.67. Calculator syntax such as fnInt( or nInt( is not standard notation, so on its own it may not earn the method mark.
  • Give an exact value or 3 significant figures unless the question says otherwise, and keep the full calculator value for later parts instead of re-typing a rounded one.
  • Use radians for any integral that contains sin, cos or tan. Check the angle mode before you start, see switching between degrees and radians.
  • "Show that" and "find the exact value" need algebra. The calculator can check your answer but cannot replace the working.
  • Check which papers allow a calculator. In AA SL and AA HL, Paper 1 is calculator-free, so these methods are for the calculator papers. In AI SL and AI HL a calculator is allowed on every paper (check your syllabus).

Area between two curves

When the limits are the x-values where two curves meet, find them with the intersection tool and store them so the limits keep their full accuracy. The area is ∫AB(f(x)−g(x))dx\int_A^B \left(f(x)-g(x)\right)dx, where ff is the upper curve. The key presses for each calculator are in the area between two curves guide.

How to find the upper limit when the integral is given

Some questions give the area and ask for a limit, for example find kk such that ∫0ke−x2dx=0.5\int_0^k e^{-x^2}\,dx = 0.5. Treat the integral as a function of xx and use an intersection:

  1. Enter the integral as a function with the upper limit as x, using a different letter for the variable of integration (on the TI-84, fnInt(e^(-T^2),T,0,X), typing T with the ALPHA key) as the first graph.
  2. Enter 0.5 as the second graph and set a small window, for example Xmin 0, Xmax 2, Ymin 0, Ymax 1.
  3. Use the intersection tool. The x-value is k=0.551k = 0.551 to 3 significant figures. The graph can take a few seconds to draw.

Error messages and what to do

CalculatorMessageUsual causeWhat to try
TI-84 Plus CEERR:DOMAINAn argument is outside the range where the function is defined, for example the square root or logarithm of a negative number.Look at the graph, then split the interval so it avoids the values where the function is not defined.
TI-84 Plus CEERR:DIVIDE BY 0The function divides by zero where the calculator evaluates it, for example at a limit that is an asymptote.Move the limit away from the asymptote, or split the interval.
TI-84 Plus CEERR:TOLERANCE NOT METThe calculator cannot return a result as accurate as the tolerance it uses, for example because the function changes sharply or has an asymptote.Split the interval, narrow the limits, or check whether the integral is meant to be finite.
Casio fx-CG50Time OutNo result that meets the accuracy requirement can be found, for example because the function changes sharply or has an asymptote.Split the interval, narrow the limits, or check whether the integral is meant to be finite.
Casio fx-CG50Ma ERRORThe result or an intermediate value is outside the calculator's range, or the calculation contains a mathematical error such as division by zero.Check the function and the limits for division by zero and very large values.
TI-Nspire CXToo few argumentsA command such as nInt( or nSolve( is missing part of what it needs, for example a limit.Check every part of nInt(function,variable,lower,upper).
TI-Nspire CXDomain errorAn argument is outside the domain where the function is defined.Look at the graph, then split the interval so it avoids the values where the function is not defined.

Common mistakes

  • Quoting a signed value as an area. In the example above the integral is −3-3, but the area is 7.677.67. Parts below the axis cancel against parts above.
  • Rounded limits. Typing 3 significant figure limits from an intersection can change the last digit of the answer.
  • Distance versus displacement. Integrating velocity gives displacement. Total distance needs the absolute value of the velocity.
  • No units. Give a unit when the question has one, such as metres or square centimetres.

Try it yourself

Real questions from the IB Maths Help question bank. Type your answer and press Mark it: the worked solution and mark scheme then appear. Use your calculator for the integrals.

Practise with your calculator

Choose your course to see the practice sets that use this skill. You can also try practice mode or browse every GDC guide.

Quick questions

Is fnInt acceptable as working in the IB exam?

Calculator commands such as fnInt( and nInt( are not standard mathematical notation, so write the integral with its limits as well, for example the integral from 0 to 3 of the absolute value of x² − 4, and then give the value the calculator returns. Method marks are normally linked to the integral and its limits, and may be implied by a correct answer, but an answer with no working risks losing them.

Why does my calculator give a negative answer for an area?

A definite integral counts any part of the curve below the x-axis as negative, so those parts cancel against the parts above. For a true area, integrate the absolute value of the function, or find where the curve crosses the axis and add the sizes of each section.

Do I need to write the calculator keystrokes in the exam?

No. Examiners need the integral, its limits and the value, not the key presses. Write the integral in standard notation, then the answer exactly or to 3 significant figures unless the question says otherwise.

Can I give an exact value from my calculator?

Yes, when it is exact. IB papers accept answers given exactly or correct to three significant figures, so a fraction such as 23/3 is fine if it is the exact value. A calculator integral is a numerical result, though, so when a question says show that or find the exact value, the working must be done by hand and the calculator can only check it.

Which IB papers can I use a calculator for?

In AA SL and AA HL, Paper 1 is calculator-free, and Paper 2 (and Paper 3 at HL) allow a calculator. In AI SL and AI HL a calculator is allowed on every paper. Check your syllabus for the current rules.

How are marks awarded for a calculator integral?

Usually one method mark for the integral with its limits, often shown in brackets because a correct answer implies it, and one answer mark for the value.