1 Introduction

For many years, the standard answer of many secondary education mathematics teachers in Spain to the question:

Can I bring my calculator to the exam?

regarding the college entrance exams (denoted EvAU [1]) was:

Yes, but it will be useless...

(many times accompanied by a big smile).

But this has completely changed by two facts:

  • the release of symbolic calculators (TI-92Footnote 1 in 1995 [2,3,4], followed by several others),

  • that some computer algebra systems (CAS) [5] have been ported to operating systems for smartphones (Maxima, REDUCE, xCAS, etc.).

Surprisingly, despite the success of DERIVE in the late 90s [6,7,8], the use of CAS in secondary education is still scarce.

This contrasts with the widely spread use of the dynamic geometry system (DGS) GeoGebra [9]. Nevertheless, this DGS (in fact a DGS with CAS capabilities) deserves a separate study, as it has changed many maths teachers’ attitude against using technology (probably because it is easy to use, free and doesn’t even requires of an installation—as it can be run remotely using a web browser). Unfortunately, many times the use of GeoGebra in teaching neither includes a meaningful use of its CAS capabilities nor a fruitful use of its DGS capabilities (for instance a certain Spanish secondary education textbook proposes to use GeoGebra for plotting functions but not for dealing with Thales’s basic proportionality theorem!).

This article is mainly aimed at mathematics teachers who aren’t experts in computer algebra. However, it may also be of interest to CAS experts as it reflects on the abstraction level achieved by CAS and its impact in teaching and assessment.

Sadly, this article could have been written 10 or 20 years ago, as the situation hasn’t changed much. Memorizing and solving long tedious problems cope much of the time of secondary students’ math practice in many countries. This article tries to convince and encourage mathematics teachers to allow the use of CAS by the students and to incorporate CAS into their curricula (adapting their assessments accordingly).

2 A Suggested Classification Scheme for Elementary Mathematics Questions

From the maths teachers’ point of view, we could classify mathematical problems and the questions of maths exams in four classes:

  1. 1.

    Numerical computations and substitutions in known formulae,

  2. 2.

    Symbolic computations (simplifications, expansions, mechanical concatenation of algebraic calculations, etc.),

  3. 3.

    Theoretical questions regarding mathematical formulae,

  4. 4.

    Theorem proving

(let us observe that we are considering here the problem already mathematized, that is, in the language of algebra or calculus). We will discuss them next.

2.1 Numerical Computations and Substitutions in Formulae

They arise in all fields of maths (algebra, geometry, analysis, astronomy, etc.). They were solved in the past with pen and pencil and sometimes using logarithm tables, slide rules, etc. They can nowadays be solved with a (classic) calculator. They are well known.

Example 1

Calculate the final price of a skirt tagged a price of 23.5 Euros (VAT excluded) if the VAT is 21% and it has a 10% discount.

We can easily compute with a calculator: 23.5 * (1+21/100) * (1–10/100) or, if we perform a previous simple mental calculation: 23.5 * 1.21 * 0.9 instead (Fig. 1).

Fig. 1
figure 1

A numerical computation problem

2.2 Symbolic Computations

In the past exercises about simplifications, expansions, concatenation of algebraic calculations, etc. could only be solved by human thought. Now these tasks can be completed by CAS, that are available for computers, tablets and smartphones.

The following examples are illustrated with the inputs corresponding to Maple 2021 [10,11,12,13,14] and the outputs computed by this CAS. Obviously other CAS could be used instead [15,16,17,18].

Example 2

Simplify the algebraic expression: \((x+y)^2-(x-y)^2\). Maple’s simplify command does it:

figure a
$$\begin{aligned} \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad 4 \ x \ y \end{aligned}$$

(inputs are preceded here by a “> ” symbol while outputs are centered).

Remark 1

Regarding these examples, we don’t mean that students should perform all these calculations with the computer. We just want to show some of the possibilities of CAS to those who don’t know them or don’t know some of them.

Let us consider a not so simple example.

Example 3

Analyse when a certain parameter-depending linear system has solutions and find them in such case. Consider, for instance, the system:

$$\begin{aligned} \left\{ \begin{array}{ccccc} ax &{} + &{} y &{} = &{} 0 \\ x &{} - &{} y &{} = &{} 2 \end{array} \right. \end{aligned}$$

where x and y are the variables and a is a parameter. We can compute it with Maple:

figure b
$$\begin{aligned} \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \left\{ x = \frac{2}{a + 1}, y = - \frac{2a}{a + 1}\right\} \end{aligned}$$

Now the different possibilities are clear:

  • the denominators vanish when \(a=-1\), so there is no solution in this case

  • if \(a \ne -1\) the system has a unique solution (the explicit solution is returned by Maple).

Moreover, the process isn’t different if the linear equation system involves more equations and variables.

Remark 2

Keep in mind that in many CAS (such as Maple) the domain by default is \({\mathbb {C}}\). For example, the Maple input and output for \((ln(-1))^2\) are:

figure c

                                                \(-\pi ^2\)

because:

figure d

                                                \(I\pi \)

Of course, we can ask Maple to do the calculations in \({\mathbb {R}}\), for example using the package Real Domain (preceding the input with: RealDomain:-), obtaining this way the expected output:

figure e

undefined

Example 4

Compute \(\int x \cdot ln(x) \ dx\) (calculating this indefinite integral is straightforward using the integration by parts method; however CAS can compute much more complex ones [19], as well as differential equations, even explaining them step by step [20]).

In this case Maple’s int command directly returns a primitive (if the CAS can’t compute a primitive it either returns the input expression or an empty line):

figure f
$$\begin{aligned} \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \frac{x^{2}ln(x)}{2}-\frac{x^2}{4} \end{aligned}$$

Example 5

Draw a function by computing its zeroes, maxima and minima, asymptotes, inflection points, etc. In the EvAU these functions are normally trickily chosen so that they have, for instance, two very close zeroes (in order a graphic calculator to be useless), like happens with:

$$\begin{aligned} \frac{9999}{100}\cdot x^2-200\cdot x+100 \end{aligned}$$

(this example is inspired by an example in [21]). If we plot this function between \(-1\) and 2 we obtain the plot of Fig. 2, that looks like a second degree polynomial function with a single root. Meanwhile, a closer plot reveals two different roots (the plot between 0.98 and 1.02 is shown in Fig. 3).

Fig. 2
figure 2

A plot of a second degree function with (apparently) a single root

Fig. 3
figure 3

A closer look to the plot of Fig. 2 revealing the existence of two different roots

Of course there are different algebraic ways to check this example. In this particular case the equation is a second degree one, so any student should know its solution. The discriminant isn’t zero:

$$\begin{aligned} (-200)^2-4\cdot \frac{9999}{100}\cdot 100=4 \end{aligned}$$

so the equation has two different roots.

Nevertheless the CAS can perform the whole process:

figure g
$$\begin{aligned} \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \frac{100}{99}, \frac{100}{101} \end{aligned}$$
figure h
$$\begin{aligned} \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad 1.010101010, 0.9900990099 \end{aligned}$$
figure i
$$\begin{aligned} \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad 1.000100010 \end{aligned}$$
figure j
$$\begin{aligned} \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad 199.9800000 \end{aligned}$$
figure k
$$\begin{aligned} \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \frac{9999 x}{50} - 200 \end{aligned}$$
figure l
$$\begin{aligned} \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad +\infty \end{aligned}$$
figure m
$$\begin{aligned} \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad -\infty \end{aligned}$$

So the student can realize, just looking at the output of the CAS, that:

  • the equation has two different roots,

  • there is only a local extrema,

  • it is a minimum, as the second derivative is positive,

  • there is only one sign change in the slope of the curve (as the derivative is a first degree polynomial),

  • there are no asymptotes at infinity.

These lines of code can be stored in a file, so that only the input function has to be introduced by the student. Moreover, a simple procedure that returns the answers with no external help or knowledge can be prepared in advance.

2.3 Theoretical Questions Regarding Mathematical Formulae

CAS have made possible to avoid using paper-based cheat sheets (and even to prepare them), as they can produce many general theoretical results on the fly.

Example 6

What is the cube of a binomial?

figure n
$$\begin{aligned} \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad x^3 + 3 x^2 y + 3 x y^2 + y \end{aligned}$$

Example 7

What is sin(2x) equal to?

figure o
$$\begin{aligned} \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad 2 sin(x) cos(x) \end{aligned}$$

But there are far more interesting examples, like:

Example 8

What is the determinant of a \(3 \times 3\) matrix (Rule of Sarrus)?

figure p
$$\begin{aligned} A:= \left[ \begin{array}{ccccc} a11 &{} a12 &{} a13 \\ a21 &{} a22 &{} a23 \\ a31 &{} a32 &{} a33 \end{array} \right] \end{aligned}$$
figure q
$$\begin{aligned} a11 \ a22 \ a33 - a11 \ a23 \ a32 - a12 \ a21 \ a33 + a12 \ a23 \ a31 + a13 \ a21 \ a32 - a13 \ a22 \ a31 \end{aligned}$$

Example 9

Can you simplify the expression \((g \circ f)(x)+g(f(x))\)?

figure r
$$\begin{aligned} \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad 2 \ g(f(x)) \end{aligned}$$

Example 10

What is the derivative of the product of two general functions?

figure s
$$\begin{aligned} \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \left( \frac{d}{dx}f(x)\right) g(x) + f(x) \left( \frac{d}{dx}g(x)\right) \end{aligned}$$

And what is the derivative of the quotient of two general functions?

figure t
$$\begin{aligned} \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \frac{\left( \frac{d}{dx}f(x)\right) g(x) - f(x) \left( \frac{d}{dx}g(x)\right) }{g(x)^2} \end{aligned}$$

Example 11

What is the indefinite integral of the derivative of a general function?

figure u
$$\begin{aligned} \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad f(x) \end{aligned}$$

And, a bit more difficult (although immediate) calculation: \(\int (f^2(x))' \cdot f(x) \ dx\)

figure v
$$\begin{aligned} \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \frac{2 f(x)^3}{3} \end{aligned}$$

Example 12

What is the Jacobian matrix of three general functions in two variables?

figure w
$$\begin{aligned} A:= \left( \begin{array}{ccc} \frac{\partial }{\partial x} f(x,y) &{} \frac{\partial }{\partial y} f(x,y) \\ \frac{\partial }{\partial x} g(x,y) &{} \frac{\partial }{\partial y} g(x,y) \\ \frac{\partial }{\partial x} h(x,y) &{} \frac{\partial }{\partial y} h(x,y) \end{array} \right) . \end{aligned}$$

2.4 Theorem Proving

There are two main lines regarding research in automated theorem proving:

  • logical deduction from the axioms (using deduction rules), applicable to all fields of mathematics [22], and

  • automated theorem proving in geometry (using algebraic methods, like Gröbner bases or Wu’s method [23,24,25,26,27,28,29]), also denoted mechanical theorem proving. CAS are the key tool for this line of research.

The main problem is the readability of the proofs produced by the two lines of research aforementioned and their lack of elegance (synthetic proofs and proofs based on brilliant ideas can’t be developed these ways).

Let us compare two well-known proofs (classic and mechanical) of the concurrency the three segment bisectors of triangle.

Example 13

The classic proof of the concurrency of the three segment bisectors of triangle ABC is brief and elegant: the points of the segment bisector of \({\overline{AB}}\) are at the same distance from A and from B, the points of the segment bisector of \({\overline{BC}}\) and at the same distance from B and from C, and therefore their intersection point is at the same distance from A and from C, so it lies on the segment bisector of \({\overline{AC}}\).

Example 14

Meanwhile, the (short) mechanical proof checks that the linear system corresponding to the equations of the three segment bisectors obtained allocating a general triangle conveniently is compatible. For instance, we can do it the following way in Maple: we can start defining a function that returns the equation of the perpendicular bisector to a segment (given its endpoints):

figure x

and without loss of generality we can assume that the vertices of the triangle are \(A=(0,0)\), \(B=(b1,0)\) and \(C=(c1,c2)\) (Fig. 4):

figure y
$$\begin{aligned} -b1 \left( x-\frac{b1}{2}\right) =0, \ (b1-c1)\left( x-\frac{b1}{2}-\frac{c1}{2}\right) =c2\left( y-\frac{c2}{2}\right) , \ c1\left( x-\frac{c1}{2}\right) =-c2\left( y-\frac{c2}{2}\right) \end{aligned}$$
figure z
$$\begin{aligned} \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \left\{ x=\frac{b1}{2}, y=-\frac{b1 c1 -c1^2-c2^2}{2 c2}\right\} \end{aligned}$$

(in Maple % represents the last output). That is, the three perpendicular bisectors of the triangle are concurrent and we have obtained the coordinates of the intersection point (the only degenerate case is \(c2=0\), that corresponds to the degeneracy of the triangle into a segment—the three vertices are aligned in such case).

Fig. 4
figure 4

Concurrency of the three segment bisectors of a general triangle

There are very interesting steps in this line of research that start from a dynamic geometry system, like in the earlier [30], even automatizing the whole process [31]. But automated theorem proving is not the key topic of this talk.

3 Revisiting the Second and Third Classes

From the CAS point of view (unlike what happens from the teacher’s point of view) there is no difference between the questions in the second and third classes considered in Sect. 2:

  1. 1.

    symbolic computations (simplifications, expansions, concatenation of algebraic calculations, etc.),

  2. 2.

    theoretical questions regarding mathematical formulae,

as they can be completed by the CAS just performing symbolic computations. But they are of an abstraction levelFootnote 2 higher than those of the first class (as they deal with non-assigned variables—variables in the mathematical sense, not in the computational sense).

But the CAS goes really further. Let us focus on the examples in Sect. 5:

  • Example 8 (determinant of a \(3 \times 3\) matrix) is interesting, as the possibility to handle matrices which elements are algebraic expressions allow to generate a well known formula.

  • The case of Example 9 (function composition) is specially interesting, as it shows that the CAS reaches an even higher abstraction level: it deals not only with with unassigned variables but with general functions (functions not declared), themselves depending on non-assigned variables.

  • Examples 10 and 11 are similar to Example 9, but incorporating differentiation and integration.

  • Finally, Example 12 (Jacobian matrix) applies all the possibilities just mentioned in order to obtain the Jacobian matrix of three functions in two variables.

Possibly many mathematics teachers and many CAS users are unaware of some of these possibilities of (some) CAS and their potential impact on teaching and assessment.

4 Conclusions

Summarising, CAS have reached an unprecedented abstraction level with many possibilities in different fields.

As a consequence, assessment in maths education must clarify the technological tools that can be used at classes and exams (see for example the detailed [34]), because a device running a CAS (computer, smartphone, calculator) can be used to solve symbolic problems and also as a technological live cheat sheet (in what a classic maths teacher would consider “theoretical questions”, where a classic calculator is useless).

In our opinion CAS should be used the same way as classic calculators: they don’t substitute, but complement mental as well as pen and pencil calculations when the calculations are long or tedious.

Figure 5 summarizes the steps of the problem solving process. Moving from the first step to the second requires human thought (at least until AI develops much more). Meanwhile, passing from the second to the third one can be carried out by the technological tool. Consider, for instance understanding a high school problem stated in natural language about two trains moving in opposite directions on a double track line at constant speed or a similar problem about two taps filling a swimming pool at constant flow. Once mathematized, they can be easily solved by a CAS.

Fig. 5
figure 5

Problem solving process

From our point of view the solution is not to deny the existence of tools with CAS capabilities (a kind of “ostrich like attitude”). What has to be transmitted to the students are the underlying ideas (and also subsequent algorithms and procedures), but not algorithms or procedures isolated from their origin. And students should be trained in using the technological tools for appropriate uses (CAS in this case). If you think it twice it is the same attitude usually accepted nowadays regarding arithmetic and classic calculators.