Maths CAA Series: Aug 2001
Page Guide: Home > Articles > maths-caa-series >| Introduction | |
| Input and Display | |
| Is the answer right? | |
| Discussion Over to you! |
TREEFROG: A Natural Algebraic Interface?...With the TREEFROG project we have long been seeking to provide a mathematical assessment tool which allows students to type in mathematics in a way which is a similar as possible to pencil and paper, but with a certain intelligence built in. I am sure we have not succeeded fully, as I shall explain below; but I would like to initiate (or, more correctly, continue) debate in this area with a view to agreeing as a community what is desirable in such an environment. Please feel free to give your responses to the questions raised here, as described at the end of the article.
As I see it there are two main areas of concern; the input and display of mathematical expressions, and the faithfulness of systems in recognising a correct response in the same way that a lecturer or teacher would.
With the growing use of IT throughout the curriculum, almost all students of mathematics in Higher Education will have used a spreadsheet at some point. Almost invariably these require the linear input of expressions, as in
(-b1 + sqrt (b1^2 + 4*a1*c1))/(2*a1)
With practice one can become adept at entering such expressions, but even experts may have to think twice if they mistakenly enter
.../2*a1 instead of .../(2*a1).
My own feeling is that students who are less than secure in the manipulation of fractions must have access to a system that displays them in the conventional two dimensional format, as the extra mental effort of translating to linear form must distract them from the mathematics involved. To date, TREEFROG still does not have this capability.
Having said that, a lot can be done with linear input if fractions are not required. The normal text font in DOS and Windows has always had a few mathematical symbols such as powers up to 3, and ±. With recent versions of Windows, this font also includes an integral sign, Greek letters, and several more besides; try inserting a symbol from this font in Word if you would like to see more. Software such as DERIVE and AUTOGRAPH define their own character set, which is probably the best option for mathematical applications as students do not have to wade through all the characters for different languages before they reach the symbol they need.
If a two dimensional display is used, then there are different methods that can be used to input an expression. A simple but effective method is used in Heriot-Watts Past Papers (and CALM before that), whereby the student enters a linear expression which is simultaneously displayed in two-dimensional format. In using this tool a student can learn to use the ubiquitous linear input form, while avoiding some of its pitfalls.
Another common approach is used by DIAGNOSYS and the Equation Editor within WORD, whereby clicking a button opens up a template for a mathematical object such as a fraction. TREEFROG also uses templates, but slates these directly into linear form as seen in Fig 1
Using a button to enter a common symbol, such as x, seems to me to slow the user down and take up valuable screen space, thus detracting from the learning experience. Those who are inexperienced in typing might find such an approach more helpful.
Given that we can expect our students to be more and more familiar with keyboard entry, the ability of a package to input a complex expression without using the mouse is important for speed and concentration on the problem in hand. But what should happen when the student enters a character such as /? If the intention of the software is to display mathematics exactly as prescribed by the user, as in TeX or Microsoft Equation Editor, then no special action need occur. If we are aiming to support a novice student of mathematics, then it seems reasonable to expect that a two-dimensional display will appear automatically. So if the student types 1+2/, we may expect this sort of display (as seen in DIAGNOSYS, for example)
![]()
with some form of cursor appearing under the 2 to invite input of the denominator. Normally any expression typed now will form part of the denominator, until a special key (cursor, for example) is pressed. So entering the sequence of characters 1+2/3+4 using such an input tool will result in the display
rather than ![]()
which might confuse students who also used linear forms of expressions. A similar example I have come across is where the keyboard input 3x2 is translated to 3x²; again, one could ask whether this conversion is desirable for novice mathematicians.
It has long been recognised that it is a complicated business
recognising the correct answer to an algebraic question. String comparison ignores
the commutativity of operators, and redundancies such as extra parentheses.
Evaluating expressions at various values of the unknowns is much more successful,
but ignores the structure of an expression almost entirely. It is entirely possible, for
example, that if a student is asked to divide x² -3x + 2 by x-2, the answer
![]()
will be accepted as correct. Only if the value x = 2 is included in the evaluation routine will this result be rejected. Even it is not accepted, something is lost, as the students correct understanding of what the question was asking her to do has seemingly been contradicted by the computer.
TREEFROG attempts to distinguish between acceptable interim steps in a question and allowable final answers. Interim steps are checked, by applying mathematical rules to a known correct expression and the students input. If a common normal form is reached (such as expanded polynomials with like terms gathered), then the step has been proved correct. This should ensure that any correctly applied mathematical knowledge is not contradicted. The final step is recognised using matching, which takes account of associative and commutative operators and ignores redundant syntax, ensuring that the student has completed the required task. Thus, if the question is to solve the linear equation 2x + 5 = 8, the steps
2x = 8 5, 2x = 3, 12x + 32 = 50, x = 1.5, x = 3/2
will all be accepted as mathematically correct; but only the last two will be recognised as a final answer to the question. When the equation to be solved is quadratic, there may be even finer distinctions to be made. For example, (x-1)² = 0 has only one solution, so can be seen as equivalent to the equation x = 1. As an auxiliary equation for a second-order linear differential equation, however, we need to keep hold of the fact that there is a repeated root. Rational functions also present complications, as we may or may not wish to exclude the possibility where the denominator is zero; when re-writing as partial fractions we would not worry about this, for example.
We will use the discussion list maths-caa@jiscmail.ac.uk to enable discussion on the points raised here. You can join the list by following the third link on the page www.jiscmail.ac.uk/lists/MATHS-CAA.shtmll. Here are some suggested starting points.
1. A user interface should be
Natural, allowing you to work in a similar way to your normal
paper-and-pencil approach.
Flexible, so that it caters for different levels of mathematical and computing
experience.
Supportive, providing help when required.
Consistent, so that the same task is executed in the same way in all contexts
For the purpose of helping students to learn mathematics, which interfaces have supported them best? Which interface issues have caused most difficulty in your classes? Would it be possible as a community to describe how an ideal mathematical input tool should behave, especially with regard to keyboard and mouse input?
2. In deciding whether a mathematical expression entered into an assessment package is a correct answer, how much control do we need as lecturers? Is multiple choice enough? Or do we want software to be able to exercise discretion in the same way we would in marking work by hand? If so, how would you envisage that such discretion might be controlled?
If you are interested in following up on any software mentioned in