IB Maths Help logoIB Maths Help

Evaluate a logarithm to any base

Work out a logarithm to any base, not just base 10 or base e, 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 evaluate logb⁡x\log_b x, use the logarithm template or command for your calculator: logBASE(x, b) on the TI-84 Plus CE, the logab template on the Casio fx-CG50, the log with base template on the Casio fx-CG100 and log(x, b) on the TI-Nspire. Check the order, because the TI-84 Plus CE and TI-Nspire commands take the value first and the Casio templates take the base first. Change of base always works: logb⁡x=log⁡xlog⁡b\log_b x = \dfrac{\log x}{\log b}.

Example

Solve 5x=2005^{x} = 200. Give your answer to 3 significant figures.

Taking logarithms to base 5 gives x=log5⁡200x = \log_{5} 200. Evaluating this on the calculator gives x=3.29x = 3.29 to 3 significant figures. The same value comes from change of base, ln⁡200ln⁡5\dfrac{\ln 200}{\ln 5}, which is the working to show if the question does not give the logarithm to a base you can type.

Choose your calculator

How to evaluate a logarithm to any base on a TI-84 Plus CE

Use logBASE( from the MATH menu

Press math, use ▼ to move down to A:logBASE( and press enter.

In the usual display (MathPrint) a template appears with a small box for the base and a large box for the value. Type the base 5 in the small box, press ▶ to move out of it, and type the value 2 0 0. In Classic display the calculator pastes logBASE( instead, and you type the value, a comma and then the base: 2 0 0 , 5 ).

log5(200)

Press enter.

log5⁡200=3.29\log_{5} 200 = 3.29 to 3 significant figures.

log5(200)
3.292029674

Another way: change of base with the LOG key

Divide the base 10 logarithm of the value by the base 10 logarithm of the base: press log 2 0 0 ) ÷ log 5 ) enter. The result is the same, because log5⁡200=log⁡200log⁡5\log_{5} 200 = \dfrac{\log 200}{\log 5}.

log5⁡200=3.29\log_{5} 200 = 3.29 to 3 significant figures.

log(200)/log(5)
3.292029674

In logBASE( the value comes first and the base second. The base is the small number: log base 5 of 200 is typed 200, 5.

How to evaluate a logarithm to any base on a Casio fx-CG50

Use the logab template

Press MENU and choose Run-Matrix. Press F4 (MATH), then F2 (logab). A logarithm template appears with a small box for the base.

Type the base 5 in the small box, press ▶ to move out of it, and type the value 2 0 0. The base comes first.

log5200

Press EXE.

log5⁡200=3.29\log_{5} 200 = 3.29 to 3 significant figures.

log5200
3.292029674

In Linear input/output mode

Press OPTN, F4 (CALC), F6 (more) and F4 (logab). Type the base, a comma and then the value: 5 , 2 0 0 ), then press EXE. The base is still first.

logab(5,200)
3.292029674

Another way: change of base with the LOG key

Press log 2 0 0 ) ÷ log 5 ) EXE. In Math input/output mode the ÷ key builds a fraction with the last term as the numerator, so type the bottom, then press EXE.

log5⁡200=3.29\log_{5} 200 = 3.29 to 3 significant figures.

log(200)/log(5)
3.292029674

The order is the opposite of the TI-84 Plus CE: on the Casio the base is typed first, then the value.

How to evaluate a logarithm to any base on a Casio fx-CG100

Use the log with base template

Press HOME and choose Calculate. Press SHIFT and then the key with the log template with a small base box above it. A logarithm template appears.

Type the base 5 in the small box, press ▶ to move out of it, and type the value 2 0 0. The base comes first.

log5200

Press EXE.

log5⁡200=3.29\log_{5} 200 = 3.29 to 3 significant figures.

log5200
3.292029674

Another way: change of base with the LOG key

Press SHIFT log 2 0 0 ) ÷ SHIFT log 5 ) EXE.

log5⁡200=3.29\log_{5} 200 = 3.29 to 3 significant figures.

log(200)÷log(5)
3.292029674

On the fx-CG100 the plain log key is a second function: press SHIFT first. The base is typed before the value in the template.

How to evaluate a logarithm to any base on a TI-Nspire CX

Type log(value, base)

On a Calculator page type log(200,5) with the letter keys and the number keys, then press enter. The value comes first and the base second.

log5⁡200=3.29\log_{5} 200 = 3.29 to 3 significant figures.

log(200,5)
3.29203

Another way: the log template

Press ctrl 10^x to paste the log template. Type the base 5 in the small box, move out of it with ▶, type the value 2 0 0, and press enter. In the template the base is typed first.

log5(200)
3.29203

Another way: change of base

Type ln(200)/ln(5) and press enter. This gives the same value, because log5⁡200=ln⁡200ln⁡5\log_{5} 200 = \dfrac{\ln 200}{\ln 5}.

ln(200)/ln(5)
3.29203

Leave out the second number and log( uses base 10: log(200) is base 10, log(200,5) is base 5.

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 logarithm you evaluated, for example x=log5⁡200x = \log_{5} 200, then the value. Say you used your calculator. Do not write the key presses.
  • Show a change of base if the question asks for it: log5⁡200=ln⁡200ln⁡5\log_{5} 200 = \dfrac{\ln 200}{\ln 5}.
  • Round only at the end. Keep the full calculator value for later parts and give the final answer to 3 significant figures unless the question says otherwise.
  • Sense check. 53=1255^3 = 125 and 54=6255^4 = 625, so log5⁡200\log_{5} 200 must lie between 3 and 4.
  • Check which papers allow a calculator. In AA SL and AA HL, Paper 1 is calculator-free, so use the laws of logarithms there. In AI SL and AI HL a calculator is allowed on every paper (check your syllabus).

Error messages and what to do

CalculatorMessageUsual causeWhat to try
TI-84 Plus CEERR:DOMAINThe value or the base is zero or negative, so the logarithm is not defined.Check the numbers. A logarithm needs a positive value and a positive base that is not 1.
TI-84 Plus CEERR:SYNTAXlogBASE( has the wrong number of arguments, for example one number and no base.Choose Goto and type both the value and the base, separated by a comma.
Casio fx-CG50Ma ERRORThe value or the base is zero or negative, or the base is 1, so the calculation has no result.Press EXIT and check the numbers.
Casio fx-CG50Syntax ERRORThe logab template or its brackets are incomplete.Press EXIT to see where the error is, then type both the base and the value.
Casio fx-CG100Math ERRORThe value or the base is zero or negative, or the base is 1, so the calculation has no result.Check the numbers.
Casio fx-CG100Syntax ERRORThe log template or its brackets are incomplete.Type both the base and the value.
TI-Nspire CXDomain errorThe value or the base is outside the range where the logarithm is defined.Check the numbers. A logarithm needs a positive value and a positive base that is not 1.
TI-Nspire CXSyntax errorThe command is incomplete, for example a missing bracket or comma.Retype it as log(value,base).

Common mistakes

  • Swapping the value and the base. logBASE( and log( take the value first and the base second, but the Casio templates take the base first. Check with a simple case such as log2⁡8=3\log_2 8 = 3.
  • Typing log(200) and expecting base 5. The plain LOG key is base 10. Use the base template, or divide two logarithms.
  • Leaving out the brackets in a change of base. Write log⁡200÷log⁡5\log 200 \div \log 5 with both logarithms closed in brackets, not log⁡200÷log\log 200 \div \log followed by 5 loose.
  • Using a base that is not allowed. The base must be positive and not 1, and the value must be positive.
  • Rounding before the end. Keep the calculator's full value for the next part and round only the final answer.

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 evaluate the logarithm.

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 a logarithm to base 5, or any base, on my calculator?

Use the logarithm template or command: logBASE( from the MATH menu on the TI-84 Plus CE, the logab template on the Casio fx-CG50, the log with base template on the Casio fx-CG100, or log(value, base) on the TI-Nspire. If you prefer, divide two logarithms: log(value) divided by log(base).

Which number do I type first, the base or the value?

It depends on the calculator. The TI-84 Plus CE logBASE( command and the TI-Nspire log( command take the value first and the base second. The Casio templates take the base first. In a template, the base always goes in the small box.

What does the LOG key do?

The LOG key is base 10, and LN is base e. For any other base use the base template or change of base.

How do I solve 5^x = 200 on a calculator?

Rewrite it as x = log base 5 of 200 and evaluate that, which gives 3.29 to 3 significant figures. You can also use the numeric solver.

Do I write the key presses in my exam answer?

No. Write the logarithm you evaluated and the value, and say you used your calculator. Show the change of base if you used it.