What are the rules of elementary algebra

Similar documents
24 Nov Boolean Operations. Boolean Algebra. Boolean Functions and Expressions. Boolean Functions and Expressions

CMSC 425: Lecture 10 Basics of Skeletal Animation and Kinematics

Matrix Representations

Intermediate Algebra. Gregg Waterman Oregon Institute of Technology

Laurie s Notes. Overview of Section 6.3

Name Class Date. subtract 3 from each side. w 5z z 5 2 w p - 9 = = 15 + k = 10m. 10. n =

20 Calculus and Structures

Implicit Differentiation - the basics

2.2 Absolute Value Functions

Section 2.2: Absolute Value Functions, from College Algebra: Corrected Edition by Carl Stitz, Ph.D. and Jeff Zeager, Ph.D. is available under a

1. We ll look at: Types of geometrical transformation. Vector and matrix representations

Models of Computation The University of Birmingham. Volker Sorge March 10, Handout 10

2.8 Distance and Midpoint Formulas; Circles

Transformations of Functions. 1. Shifting, reflecting, and stretching graphs Symmetry of functions and equations

y = f(x) x (x, f(x)) f(x) g(x) = f(x) + 2 (x, g(x)) 0 (0, 1) 1 3 (0, 3) 2 (2, 3) 3 5 (2, 5) 4 (4, 3) 3 5 (4, 5) 5 (5, 5) 5 7 (5, 7)

Boolean Functions (10.1) Representing Boolean Functions (10.2) Logic Gates (10.3)

Image Metamorphosis By Affine Transformations

CS 403 Compiler Construction Lecture 8 Syntax Tree and Intermediate Code Generation [Based on Chapter 6 of Aho2] This Lecture

Course I. Lesson 5 Trigonometric Functions (II) 5A Radian Another Unit of Angle Graphs of Trigonometric Functions

LINEAR PROGRAMMING. Straight line graphs LESSON

PROBLEM SOLVING WITH EXPONENTIAL FUNCTIONS

Polynomial and Rational Functions

Vocabulary. Term Page Definition Clarifying Example. dependent variable. domain. function. independent variable. parent function.

0 COORDINATE GEOMETRY

Systems of Linear Equations

Module 2, Section 2 Graphs of Trigonometric Functions

1.3 Introduction to Functions

Algebra 1 Review. Properties of Real Numbers. Algebraic Expressions

Section 4.3 Features of a Line

A Formal Definition of Limit

Section 4.2 Graphing Lines

Grid and Mesh Generation. Introduction to its Concepts and Methods

What and Why Transformations?

Pre-Algebra Notes Unit 8: Graphs and Functions

ENGIN 112. Intro to Electrical and Computer Engineering

Roberto s Notes on Differential Calculus Chapter 8: Graphical analysis Section 5. Graph sketching

Exponential Functions. Christopher Thomas

The Graph of an Equation

Contents. How You May Use This Resource Guide

Building up a language SICP Variations on a Scheme. Meval. The Core Evaluator. Eval. Apply. 2. syntax procedures. 1.

9. f(x) = x f(x) = x g(x) = 2x g(x) = 5 2x. 13. h(x) = 1 3x. 14. h(x) = 2x f(x) = x x. 16.

Topic 2 Transformations of Functions

Abstract. Euler Equations Solutions for Incompressible Fluid Flow. Copyright A. A. Frempong

C URVES AND V ECTORS

Chapter Three Chapter Three

ACTIVITY 9 Continued Lesson 9-2

Four Ways to Represent a Function: We can describe a specific function in the following four ways: * verbally (by a description in words);

1.5 LIMITS. The Limit of a Function

Simple example. Analysis of programs with pointers. Program model. Points-to relation

Algebra I. Linear Equations. Slide 1 / 267 Slide 2 / 267. Slide 3 / 267. Slide 3 (Answer) / 267. Slide 4 / 267. Slide 5 / 267

Determine Whether Two Functions Are Equivalent. Determine whether the functions in each pair are equivalent by. and g (x) 5 x 2

(0, 2) y = x 1 2. y = x (2, 2) y = 2x + 2

Function Notation. Essential Question How can you use function notation to represent a function?

The Graph Scale-Change Theorem

Chapter 3. Interpolation. 3.1 Introduction

Exponential and Logarithmic Functions

Exponential and Logarithmic Functions

Find the Relationship: An Exercise in Graphical Analysis

Optional: Building a processor from scratch

Graphs, Linear Equations, and Functions

DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING, THE UNIVERSITY OF NEW MEXICO ECE-238L: Computer Logic Design Fall 2013.

Lines and Their Slopes

Lecture 12 Date:

2.1 The ReCTAngUlAR COORdInATe SySTemS And graphs

Partial Fraction Decomposition

3.1 Functions. The relation {(2, 7), (3, 8), (3, 9), (4, 10)} is not a function because, when x is 3, y can equal 8 or 9.

Answers. Chapter 4. Cumulative Review Chapters 1 3, pp Chapter Self-Test, p Getting Started, p a) 49 c) e)

A notation for describing computations that focuses. Allows convenient denition and manipulation of

Chapter 2: Introduction to Functions

Determining the 2d transformation that brings one image into alignment (registers it) with another. And

2.3. Horizontal and Vertical Translations of Functions. Investigate

Two Dimensional Viewing

Section 1.6: Graphs of Functions, from College Algebra: Corrected Edition by Carl Stitz, Ph.D. and Jeff Zeager, Ph.D. is available under a Creative

science. In this course we investigate problems both algebraically and graphically.

Transformations using matrices

2.3 Polynomial Functions of Higher Degree with Modeling

Algebra II Notes Radical Functions Unit Applying Radical Functions. Math Background

Developed in Consultation with Tennessee Educators

Statistically Analyzing the Impact of Automated ETL Testing on Data Quality

Introduction to Trigonometric Functions. Peggy Adamson and Jackie Nicholas

Trigonometric Identities

8.6 Three-Dimensional Cartesian Coordinate System

ECE241 - Digital Systems. University of Toronto. Lab #2 - Fall Introduction Computer-Aided Design Software, the DE2 Board and Simple Logic

Chapter 3 Part 1 Combinational Logic Design

1. A(-2, 2), B(4, -2) 3 EXAMPLE. Graph the line y = Move up 3 units. Quick Check See left.

Closure Polynomials for Strips of Tetrahedra

Section 1.4 Limits involving infinity

Chapter 3. Exponential and Logarithmic Functions. Selected Applications

Equations and Inequalities

ECE241 - Digital Systems

Lecture 10: Combinational Circuits

2.3. One-to-One and Inverse Functions. Introduction. Prerequisites. Learning Outcomes

2-1. The Language of Functions. Vocabulary

Domain of Rational Functions

Computer Graphics. Geometric Transformations

Transformations II. Arbitrary 3D Rotation. What is its inverse? What is its transpose? Can we constructively elucidate this relationship?

4.7 INVERSE TRIGONOMETRIC FUNCTIONS

Section 5.7 Negative Exponents and Scientific Notation. What is YOUR Share?

Computer Graphics. P04 Transformations. Aleksandra Pizurica Ghent University

6.2 Adding and Subtracting Rational Expressions

Transcription:

What are the rules of elementar algebra James Davenport & Chris Sangwin Universities of Bath & Birmingham 7 Jul 2010

Setting A relativel traditional mathematics course, at, sa first-ear undergraduate level. But Computer-Aided Assessment is in use. One such eample is WeBWorK, another is MapleTA. Harness the power of technolog to improve teaching and learning [AMS Notices, June 2009].

Web-based Assessment and Testing Sstems Homework software has the potential to handle the grading of homework at a low cost. While this software has the limitation of requiring a concise answer an algebraic epression or a multiple-choice response it also has an important advantage over hand grading. Namel, if a student s answer to a problem is wrong, the student learns of the mistake immediatel and can be allowed to tr the problem or a similar problem repeatedl until the right answer is obtained. [AMS]

Automaticall generated problems Means automaticall generated answers and marking schemes. Parsing the student s answer (non-trivial see net slide) Is the student s answer mathematicall correct? Is the student s answer pedagogicall correct? So what mark does it get (assuming we are doing more than true/false marking)? Marking other than true/false was not discussed b the AMS, but seems important to us.

Tpical computer aided assessment Figure: STACK sstem [?]

Phase 1: Addition and Multiplication onl This is (close to) AC-rewriting. We can distinguish levels: 1. Tetual identit. Here + and + are different (space). Similarl +10 and +010 are different (leading zero). 2. Equalit after leical analsis. Above eamples are the same, but not +*z versus +(*z). 3. Equalit as binar parse trees. This would consider +*z and +(*z) as the same. However, this interpretation would distinguish +(+z) from (+)+z, being respectivel the trees + + + and + z z Being based on binar parse trees, it requires an operator precedence rule (is + left-associative or right-associative) to decide which of these becomes the representation of ++z..

Phase 1: Addition and Multiplication (continued) 1. Tetual identit. 2. Equalit after leical analsis. 3. Equalit as binar parse trees. However, this interpretation would distinguish +(+z) from (+)+z. 4. We can avoid this if we allow n-ar trees, parsing ++z as + z, (1) but this is now a third tree, different from the two above. 5. Solved if we flatten the associative operators + and *, which would transform both trees into the tree in (1). 6. But the rules of elementar algebra include the facts that + and are commutative, as well as associative. So compare the children of a + (or *) node as (multi)sets, rather than as lists, so now the tree in (1) has the same children, admittedl in a different order, as the trees for +(z+) etc.

Addition and Multiplication (further) Beond this we are in the realm of computer algebra, rather than sntactic manipulation. 7. We remove identit elements: i.e. we remove 0 from the arguments of + and 1 from the arguments of. Where necessar, we flatten to remove operations which end up with a single argument. For eample + 0 +. 8. We combine all numerical terms in the arguments of + and, and (for the sake of user presentation) order the result so that an number appears first for and last for +. 9. We appl the distributive law (of multiplication over addition).

So far, so good Depending on the precise definition of obviousl equal, somewhere between levels 6 and 9 lies a sstem that gets man eamples right, in the sense that the user is not upset that the sstem refuses to recognise as equal epressions in + and * that are obviousl equal. However, the grammar of even elementar algebra is larger than this, and includes (in both unar and binar forms) and /. Practicall an sstem for processing mathematics has to deal with these, and their impact on the problem of equalit modulo the usual rules of elementar algebra. It might be thought that / and (binar) - posed the same problems, being the inverse operations to * and + respectivel, but in fact the unar operators behave differentl.

Subtraction Here we have both unar and binar -. We seem to make the transformation a-b a+(-b) at a ver earl stage in our mental processing. Hence the epression a-b-c is thought of as a+(-b)+(-c), and, in levels 4 and beond, becomes the tree + a b c. Level 6 would then regard this as equal to the tree from a-c-b. It would, however, also regard this as equal to the epression -b+a-c. Logicall, one cannot object to this, but nonetheless we tend to prefer one of the other forms. Convention urges minimalit here, since the other forms require one less smbol.

Negation in Parse Trees Does -* parse as -(*) or (-)*? These are obviousl equal.

Our solution In STACK we replace unar minus b multiplication b a special token, hereafter U. Hence -(*), (-)* and *(-) become the trees U, U and U respectivel. In the presence of flattening and commutativit of *, these trees are regarded as equal.

What about (-)*(-)? This corresponds to the tree U U, (2) which is equivalent to the tree from -(-(*)) and man other variants with (multi)set of children {U, U,, }, but not equivalent to the tree from * until we get to level 7. Algebraicall U behaves like 1, but is distinguished from it at this level so as not to be confused with an eplicit 1 entered b the user, i.e. -* versus *(-1)*.

Division We use reduction to the unar case, even though the surface representation is different. We consider a unar reciprocal operator R, and regard / as generating the tree R. We need one further rule R distributes over multiplication, i.e. R R R.

Division continued (/)/z, //z and /(*z) all generate /(/z) generates R R z R R Doesn t simplif at level 6, but R(R(z)) z should be readil available in the toolkit of an eercise writer (e.g. at level 7). R z :,

(Integer) Powers The first challenge is that the distributive law for eponentiation over multiplication (ab) c = a c b c seems different from the distributive law for multiplication over addition: we do not regard () 2 as better or worse than 2 2. This is easil implemented as a tree transformation: ^ z ^ ^ z z

(Integer) Powers continued ( ) 2 We do not regard as better or worse than 2. The previous 2 transformation automaticall leads to ^ R z ^ ^ z R z but this is not quite what was desired. It is tempting to tr to fi this b rules taking R() to R( ).

(Integer) Powers continued However, we accept that R is reall raising to the power 1, and introduce the rules R ^ z, R ^ z ^ U z. 1/^(-2) is then represented as UU2. Author choice whether to regards 1/^(-2) as a clums epression which does not deserve to be simplified, or work at level 7, in which case U U z z (or the pair U U 1 and 1 z z) need to be added to the ruleset.

Conclusion Straight AC rewriting of +, * is relativel eas Adding - and / is not eas But the unar operator technique seems promising Integer powers aren t that eas, but doable There are good mathematical reasons wh using non-integer powers is harder!