IB Maths Help logoIB Maths Help

Numerical derivative at a point

Get the gradient of a function at a value of x straight from the home screen, to check your differentiation or when a function is awkward, 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.

Used inAA SLAA HLAI SLAI HL

To find the derivative at a point, use your calculator's numerical derivative on the home screen: enter the function and the x-value in the d/dx template, or in the command nDeriv( on the TI-84 and nDerivative( on the TI-Nspire. The result is the gradient of the curve at that x-value, f′(a)f'(a). It is a numerical estimate, not a formula.

Example

Find the gradient of the curve y=x2ln⁡xy = x^2 \ln x at the point where x=2x = 2. Give your answer to 3 significant figures.

xy1232468

Differentiating gives f′(x)=2xln⁡x+xf'(x) = 2x\ln x + x, so the gradient at x=2x = 2 is 4ln⁡2+2=4.774\ln 2 + 2 = 4.77 to 3 significant figures. The numerical derivative gives the same value without the algebra, which makes it a quick check on your own working.

Choose your calculator

How to find a numerical derivative at a point on a TI-84 Plus CE

The nDeriv( template on the home screen

Press 2nd mode (QUIT) to reach the home screen. Press math and choose 8:nDeriv(. In MathPrint mode this pastes a template with a box for the expression and a box for the x-value.

In the first box type the function: X,T,θ,n x² ln X,T,θ,n ). Press ▶ to move to the x-value box and type 2.

d/dx(X²ln(X))|x=2

Press enter. The screen shows the value of the derivative at x=2x = 2.

f′(2)=4.77259f'(2) = 4.77259 to 6 significant figures, which is 4.774.77 to 3 significant figures.

The answer is a numerical estimate, so the last digits can differ slightly from the exact value.

d/dx(X²ln(X))|x=2
4.77259

Another way: type the command

If your calculator shows the command form (Classic mode, or you prefer typing), enter nDeriv(X²ln(X),X,2): the expression, then the variable, then the x-value, separated by ,. To differentiate a function stored in Y1, paste Y1 from the Y-VARS menu (see evaluating a function at a point) in place of the expression.

Another way: from the graph

With the function graphed, 2nd trace (CALC) and 6:dy/dx read the gradient at a typed x-value, and the DRAW menu can draw the tangent. The steps are in draw a tangent and read its gradient.

The variable in the command must match the letter in the expression: use X in both. If the template does not appear, check the calculator is in MathPrint mode, or type the command form.

How to find a numerical derivative at a point on a Casio fx-CG50

The d/dx template in Run-Matrix

Press MENU and choose Run-Matrix. Press OPTN, then F4 (CALC), then F2 (d/dx). In Math input/output mode this pastes a template with a box for the function and a box for the point.

Type the function in the first box: X,θ,T x² ln X,θ,T ). Press ▶ to move to the box for the point a and type 2.

d/dx(X²ln(X))|x=2

Press EXE. The screen shows the derivative at x=2x = 2.

f′(2)=4.77259f'(2) = 4.77259 to 6 significant figures, which is 4.774.77 to 3 significant figures.

d/dx(X²ln(X))|x=2
4.77259

Linear input/output mode

In Linear mode there is no template: after OPTN F4 (CALC) F2 (d/dx) type the function, a comma, the point and a closing bracket, so that it reads d/dx(X²ln(X),2), then press EXE.

Another way: from the graph

With the function graphed, Trace shows the gradient once Derivative is turned on in Set Up, and SKETCH can draw the tangent. The steps are in draw a tangent and read its gradient.

Use the Run-Matrix route when the question gives an exact x-value: you type the point, so there is no cursor position to get wrong.

How to find a numerical derivative at a point on a Casio fx-CG100

1st Derivative (d/dx) in the Calculate app

Press HOME and choose Calculate. Press CATALOG, choose Function Analysis and then 1st Derivative (d/dx). This enters d/dx( for you.

Type the function, a comma and the point, so that the line reads d/dx(X²ln(X),2): X,θ,T,Y x² ln X,θ,T,Y ) , 2 ).

d/dx(X²ln(X),2)

Press EXE. The result is the derivative at x=2x = 2.

f′(2)=4.77259f'(2) = 4.77259 to 6 significant figures, which is 4.774.77 to 3 significant figures.

d/dx(X²ln(X),2)
4.77259

Another way: from the graph

In Graph&Table, Trace with Settings → Derivative turned on shows the gradient, and Sketch → Tangent Line draws the tangent. The steps are in draw a tangent and read its gradient.

Type the point after the comma, not in a separate step: d/dx(f(x),a) takes the function first and the point second.

How to find a numerical derivative at a point on a TI-Nspire CX

Numerical Derivative at a Point

On a Calculator page press menu → Calculus → Numerical Derivative at a Point. This pastes a template with a box for the expression and a box for the x-value.

Type the function in the first box, x^2*ln(x), using the letter keys for ln. Move to the x-value box with tab and type 2.

d/dx(x^2*ln(x))|x=2

Press enter. The result is the derivative at x=2x = 2.

f′(2)=4.77259f'(2) = 4.77259 to 6 significant figures, which is 4.774.77 to 3 significant figures.

d/dx(x^2*ln(x))|x=2
4.77259

Another way: type the command

Type nDerivative(x^2*ln(x),x=2) and press enter. The point goes in the variable, as x=2, after the comma.

nDerivative(x^2*ln(x),x=2)
4.77259

Another way: from the graph

With the function graphed, menu → Analyze Graph → dy/dx reads the gradient where you click, and Geometry can draw the tangent. The steps are in draw a tangent and read its gradient.

Put the point in the variable (x=2), not as a separate number after it: a bare third number would be read as the order of the derivative.

Sources. Key presses follow the manufacturers' documentation: the TI-84 Plus CE eGuide, the TI-Nspire eGuide, 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 result as a derivative value. For example, say that f′(2)=4.77f'(2) = 4.77, found with your calculator. Do not write the key presses.
  • Show the differentiation when the question asks you to find or show a derivative. A calculator value alone does not earn the method marks for an algebraic derivative; use it to check your work.
  • Give an exact value or 3 significant figures unless the question says otherwise. The calculator value is a numerical estimate, so keep its full display for later parts and round only the final answer.
  • Check the x-value you typed against the question before you copy the result down.
  • Check which papers allow a calculator. In AA SL and AA HL, Paper 1 is calculator-free, so differentiate by hand there. In AI SL and AI HL a calculator is allowed on every paper (check your syllabus).

Checking your own differentiation

Evaluate your derivative at the same x-value and compare it with the calculator's number: if they agree to the places shown, your formula is very likely right. The tangent itself can be drawn from the graph, see draw a tangent and read its gradient. To find where the gradient is zero, see finding a maximum, minimum or zero.

Error messages and what to do

CalculatorMessageUsual causeWhat to try
TI-84 Plus CEERR:DOMAINThe function is not defined at the x-value or just beside it, for example a logarithm at x=0x = 0 or at a negative x.Check the x-value against the domain of the function.
TI-84 Plus CEERR:SYNTAXThe expression, the variable and the x-value are not separated by commas, or a bracket is missing.Retype it as nDeriv(expression,X,value), or use the template.
Casio fx-CG50Ma ERRORThe function has no value at the x-value or just beside it, for example a logarithm of a negative number.Press EXIT and check the x-value against the domain.
Casio fx-CG50Syntax ERRORThe function, the comma or the closing bracket of d/dx( is missing.Press EXIT to see where the error is, then retype it.
Casio fx-CG100Math ERRORThe function has no value at the x-value or just beside it, for example a logarithm of a negative number.Check the x-value against the domain.
Casio fx-CG100Syntax ERRORThe function, the comma or the closing bracket of d/dx( is missing.Retype it as d/dx(function,point).
TI-Nspire CXDomain errorThe x-value is outside what the function allows, for example a logarithm of a negative number.Check the x-value against the domain of the function.
TI-Nspire CXSyntax errorThe brackets or the comma in nDerivative( are not as expected.Retype it as nDerivative(expression,x=value).

Common mistakes

  • Treating the number as a formula. The numerical derivative gives the gradient at one x-value only. For f′(x)f'(x) as an expression, differentiate by hand.
  • Mixing up the order of the inputs. The TI-84 command takes the expression, then the variable, then the x-value. The Casio d/dx takes the function, then the point. On the TI-Nspire the point is written as x=2.
  • Using it where the function has a corner or a gap. At a point where the curve is not smooth, such as a sharp corner, there is no gradient, but the calculator may still show a number. Look at the graph first.
  • Rounding early. Keep the full calculator value for the next part and round only the final answer.
  • Writing key presses as working. Write the derivative value and say you used your calculator. The examiner needs the method, not the keys.

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 to find the derivative at a point.

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

How do I find the derivative at a point on a calculator?

Use the numerical derivative on the home screen: math 8:nDeriv( on the TI-84 Plus CE, OPTN, CALC, d/dx on the fx-CG50, Catalog, Function Analysis, 1st Derivative on the fx-CG100, or menu, Calculus, Numerical Derivative at a Point on the TI-Nspire. Enter the function and the x-value.

Is the calculator's derivative exact?

No. It is a numerical estimate, so the last digits can differ slightly from the exact value. It is accurate enough to give 3 significant figures.

Can I use it to find the derivative function?

No. It gives the gradient at one x-value. To get the derivative as a formula, differentiate by hand.

Do I write the calculator steps in my exam working?

No. State the derivative value, say you found it with your calculator, and write the equation of the tangent if the question asks for it. Examiners look for the method, not the key presses.