Tag Archives: syntax

Pattern recognition in understanding math

Abstract patterns

This post is a revision of the article on pattern recognition in abstractmath.org.

When you do math, you must recognize abstract patterns that occur in

  • Symbolic expressions
  • Geometric figures
  • Relations between different kinds of math structures.
  • Your own mental representations of mathematical objects

This happens in high school algebra and in calculus, not just in the higher levels of abstract math.

Examples

Most of these examples are revisited in the section called Laws and Constraints.

At most

For real numbers $x$ and $y$, the phrase “$x$ is at most $y$” means by definition $x\le y$. To understand this definition requires recognizing the pattern “$x$ is at most $y$” no matter what expressions occur in place of $x$ and $y$, as long as they evaluate to real numbers.

Examples

  • “$\sin x$ is at most $1$” means that $\sin x\le 1$. This happens to be true for all real $x$.
  • “$3$ is at most $7$” means that $3\leq7$. You may think that “$3$ is at most $7$” is a silly thing to say, but it nevertheless means that $3\leq7$ and so is a correct statement.
  • “$x^2+(y-1)^2$ is at most $5$” means that
    $x^2+(y-1)^2\leq5$. This is true for some pairs $(x,y)$ and false for others, so it is a constraint. It defines the disk below:

The product rule for derivatives

The product rule for differentiable functions $f$ and $g$ tells you that the derivative of $f(x)g(x)$ is \[f'(x)\,g(x)+f(x)\,g'(x)\]

Example

You recognize that the expression ${{x}^{2}}\sin x$ fits the pattern $f(x)g(x)$ with $f(x)={{x}^{2}}$ and $g(x)=\sin x$. Therefore you know that the derivative of ${{x}^{2}}\,\sin x$ is \[2x\sin x+{{x}^{2}}\cos x\]

The quadratic formula

The quadratic formula for the solutions of an equation of the form $a{{x}^{2}}+bx+c=0$ is usually given as\[r=\frac{-b\pm
\sqrt{{{b}^{2}}-4ac}}{2a}\]

Example

If you are asked for the roots of $3{{x}^{2}}-2x-1=0$, you recognize that the polynomial on the left fits the pattern $a{{x}^{2}}+bx+c$ with

  • $a\leftarrow3$ (“$a$ replaced by $3$”)
  • $b\leftarrow-2$
  • and $c\leftarrow-1$.

Then
substituting those values in the quadratic formula gives you the roots $-1/3$ and $1$.

Difficulties with the quadratic formula

A little problem

The quadratic formula is easy to use but it can still cause pattern recognition problems. Suppose you are asked to find the solutions of $3{{x}^{2}}-7=0$. Of course you can do this by simple algebra — but pretend that the first thing you thought of was using the quadratic formula.

  • Then you got upset because you have to apply it to $a{{x}^{2}}+bx+c$
  • and $3{{x}^{2}}-7$ has only two terms
  • but $a{{x}^{2}}+bx+c$ has three terms…
  • (Help!)
  • Do Not Be Anguished:
  • Write
    $3{{x}^{2}}-7$ as $3{{x}^{2}}+0\cdot x-7$, so $a=3$, $b=0$ and $c=-7$.
  • Then put those values into the quadratic formula and you get $x=\pm \sqrt{\frac{7}{3}}$.   
  • This is an example of the following useful principle:


    Write zero cleverly.

    I suspect that most people reading this would not have had the problem with $3{{x}^{2}}-7$ that I have just described. But before you get all insulted, remember:


    The thing about really easy examples is that they give you the point without getting you lost in some complicated stuff you don’t understand very well.

    A fiendisher problem

      Even college students may have trouble with the following problem (I know because I have tried it on them):

    What are the solutions of the equation $a+bx+c{{x}^{2}}=0$?

    The answer

             

    \[r=\frac{-b\pm
    \sqrt{{{b}^{2}}-4ac}}{2a}\]

    is wrong. The correct answer is

                                     \[r=\frac{-b\pm
    \sqrt{{{b}^{2}}-4ac}}{2c}\]


    When you remember a pattern with particular letters in it and an example has some of the same letters in it, make sure they match the pattern!

    The substitution rule for integration

    The chain rule says that the derivative of a function of the form $f(g(x))$ is $f'(g(x))g'(x)$. From this you get the substitution rule for finding indefinite integrals:

                                      \[\int{f'(g(x))g'(x)\,dx}=f(g(x))+C\]

    Example

    To find $\int{2x\,\cos
    ({{x}^{2}})\,dx}$, you recognize that you can take $f(x)=\sin x$and $g(x)={{x}^{2}}$ in the formula, getting \[\int{2x\,\cos ({{x}^{2}})\,dx}=\sin ({{x}^{2}})\]    Note that in the way I wrote the integral, the functions occur in the opposite order from the pattern. That kind of thing happens a lot.

    Laws and constraints

    • The statement “$(x+1)^2=x^2+2x+1$” is a pattern that is true for all numbers $x$. $3^2=2^2+2\times2+1$ and $(-2)^2=(-1)^2+2\times(-1)+1$, and so on. Such a pattern is a universal assertion, so it is a theorem. When the statement is an equation, as in this case, it is also called a law.
    • The statement “$\sin x\leq 1$” is also true for all $x$, and so is a theorem.
    • The statement “$x^2+(y-1)^2$ is at most $5$” is true for some real numbers and not others, so it is not a theorem, although it is a constraint.
    • The quadratic formula says that:
      The solutions of an equation
      of the form $a{{x}^{2}}+bx+c=0$ is
      given by\[r=\frac{-b\pm
      \sqrt{{{b}^{2}}-4ac}}{2a}\]

      This is true for all complex numbers $a$, $b$, $c$.
      The $x$ in the equation is not a free variable, but a “variable to be solved for” and does not appear in the quadratic formula. Theorems like the quadratic formula are usually called “formulas” rather than “laws”.

    • The product rule for derivatives

      The derivative of $f(x)g(x)$ is $f'(x)\,g(x)+f(x)\,g'(x)$

      is true for all differentiable functions $f$ and $g$. That means it is true for both of these choices of $f$ and $g$:

      • $f(x)=x$ and $g(x)=x\sin x$
      • $f(x)=x^2$ and $g(x)=\sin x$

      But both choices of $f$ and $g$ refer to the same function $x^2\sin x$, so if you apply the product rule in either case you should get the same answer. (Try it).

    Some bothersome types of pattern recognition

    Dependence on conventions

    Definition: A quadratic polynomial in $x$is an expression of the form $a{{x}^{2}}+bx+c$.   

    Examples

    • $-5{{x}^{2}}+32x-5$ is a quadratic polynomial: You have to recognize that it fits the pattern in the definition by writing it as $(-5){{x}^{2}}+32x+(-5)$
    • So is ${{x}^{2}}-1$: You have to recognize that it fits the definition by writing it as ${{x}^{2}}+0\cdot x+(-1)$ (I wrote zero cleverly).

    Some authors would just say, “A quadratic polynomial is an expression of the form $a{{x}^{2}}+bx+c$” leaving you to deduce from conventions on variables that it is a polynomial in $x$ instead of in $a$ (for example).

    Note also that I have deliberately not mentioned what sorts of numbers $a$, $b$, $c$ and $x$ are. The authors may assume that you know they are using real numbers.

    An expression as an instance of substitution

    One particular type of pattern recognition that comes up all the time in math is recognizing that a given expression is an instance of a substitution into a known expression.

    Example

    Students are sometimes baffled when a proof uses the fact that ${{2}^{n}}+{{2}^{n}}={{2}^{n+1}}$ for positive integers $n$. This requires the recognition of the patterns $x+x=2x$ and $2\cdot
    \,{{2}^{n}}={{2}^{n+1}}$.

    Similarly ${{3}^{n}}+{{3}^{n}}+{{3}^{n}}={{3}^{n+1}}$.

    Example

    The assertion

    \[{{x}^{2}}+{{y}^{2}}\ge 0\ \ \ \ \ \text{(1)}\]

    has as a special case

    \[(-x^2-y^2)^2+(y^2-x^2)^2\ge
    0\ \ \ \ \ \text{(2)}\]

    which involves the substitutions $x\leftarrow -{{x}^{2}}-{{y}^{2}}$ and $y\leftarrow
    {{y}^{2}}-{{x}^{2}}$.

    Remarks
    • If you see (2) in a text and the author blithely says it is “never negative”, that is because it is of the form \[{{x}^{2}}+{{y}^{2}}\ge 0\] with certain expressions substituted for $x$ and $y$. (See substitution and The only axiom for algebra.)
    • The fact that there are minus signs in (2) and that $x$ and $y$ play different roles in (1) and in (2) are red herrings. See ratchet effect and variable clash.
    • Most people with some experience in algebra would see quickly that (2) is correct by using chunking. They would visualize (2) as

      \[(\text{something})^2+(\text{anothersomething})^2\ge0\]
      This shows that in many cases


      chunking is a psychological inverse to substitution

    • Note that when you make these substitutions you have to insert appropriate parentheses (more here). After you make the substitution, the expression of course can be simplified a whole bunch, to

      \[2({{x}^{4}}+{{y}^{4}})\ge0\]

    • A common cause of error in doing this (a mistake I make sometimes) is to try to substitute and simplify at the same time. If the situation is complicated, it is best to

      substitute as literally as possible and then simplify

    Integration by Parts

    The rule for integration by parts says that

                             \[\int{f(x)\,g'(x)\,dx=f(x)\,g(x)-\int{f'(x)\,g(x)\,dx}}\]

    Suppose you need to find $\int{\log x\,dx}$.(In abstractmath.org, “log” means ${{\log }_{e}}$).  Then we can recognize this integral as having the pattern for the left side of the parts formula with $f(x)=1$ and $g(x)=\log \,x$. Therefore

    \[\int{\log x\,dx=x\log x-\int{\frac{1}{x}dx=x\log \,x-x+c}}\]

    How on earth did I think to recognize $\log x$ as $1\cdot \log x$??  
    Well, to tell the truth because some nerdy guy (perhaps I should say some other nerdy guy) clued me in when I was taking freshman calculus. Since then I have used this device lots of times without someone telling me — but not the first time.

    This is an example of another really useful principle:


    Write $1$ cleverly.

    Two different substitutions give the same expression

    Some proofs involve recognizing that a symbolic expression or figure fits a pattern in two different ways. This is illustrated by the next two examples. (See also the remark about the product rule above.) I have seen students flummoxed by Example ID, and Example ISO is a proof that is supposed to have flummoxed medieval geometry students.

    Example ID

    Definition: In a set with an associative binary operation and an identity element $e$, an element $y$ is the inverse of an element $x$ if

    \[xy=e\ \ \ \ \text{and}\ \ \ \ yx=e \ \ \ \ (1)\]

    In this situation, it is easy to see that $x$ has only one inverse: If $xy=e$ and $xz=e$ and $yx=e$ and $zx=e$, then \[y=ey=(zx)y=z(xy)=ze=z\]

    Theorem: ${{({{x}^{-1}})}^{-1}}=x$.

    Proof: I am given that ${{x}^{-1}}$ is the inverse of $x$, By definition, this means that

    \[x{{x}^{-1}}=e\ \ \ \text{and}\ \ \ {{x}^{-1}}x=e \ \ \ \ (2)\]

    To prove the theorem, I must show that $x$ is the inverse of ${{x}^{-1}}$. Because $x^{-1}$ has only one inverse, all we have to do is prove that

    \[{{x}^{-1}}x=e\ \ \ \text{and}\ \ \ x{{x}^{-1}}=e\ \ \ \ (3)\]  

    But (2) and (3) are equivalent! (“And” is commutative.)

    Example ISO

    This sort of double substitution occurs in geometry, too.

    Theorem: If a triangle has two equal angles, then it has two equal sides.

    Proof: In the figure, assume $\angle ABC=\angle ACB$. Then triangle $ABC$ is congruent to triangle $ACB$ since the sides $BC$ and $CB$ are equal (they are the same line segment!) and the adjoining angles are equal by hypothesis.

    The point is that although triangles $ABC$ and $ACB$ are the same triangle, and sides $BC$ and $CB$ are the same line segment, the proof involves recognizing them as geometric figures in two different ways.

    This proof (not Euclid’s origi­nal proof) is hundreds of years old and is called the pons asinorum (bridge of donkeys). It became famous as the first theorem in Euclid’s books that many medi­eval stu­dents could not under­stand. I con­jecture that the name comes from the fact that the triangle as drawn here resembles an ancient arched bridge. These days, isos­ce­les tri­angles are usually drawn taller than they are wide.

    Technical problems in carrying out pattern matching

    Parentheses

    In matching a pattern you may have to insert parentheses. For example, if you substitute $x+1$ for $a$, $2y$ for
    $b$ and $4$ for $c$ in the expression \[{{a}^{2}}+{{b}^{2}}={{c}^{2}}\] you get \[{{(x+1)}^{2}}+4{{y}^{2}}=16\]
    If you did the substitution literally without editing the expression so that it had the correct meaning, you would get \[x+{{1}^{2}}+2{{y}^{2}}={{4}^{2}}\] which is not the result of performing the substitution in the expression ${{a}^{2}}+{{b}^{2}}={{c}^{2}}$.   

    Order switching

    You can easily get confused if the patterns involve a switch in the order of the variables.

    Notation for integer division

    • For integers $m$ and $n$, the phrase “$m$ divides $n$” means there is an integer $q$ for which $n=qm$.
    • In number theory (which in spite of its name means the theory of positive integers) the vertical bar is used to denote integer division. So $3|6$ because $6=2\times 3$ ($q$ is $2$ in this case). But “$3|7$” is false because there is no integer $q$ for which $7=q\times 3$.
    • An equivalent definition of division says that $m|n$ if and only if $n/m$ is an integer. Note that $6/3=2$, an integer, but $7/3$ is not an integer.
    • Now look at those expressions:
    • “$m|n$” means that there is an integer $q$ for which $n=qm$.In these two expressions, $m$ and $n$ occur in opposite order.
    • “$m|n$” is true only if $n/m$ is an integer. Again, they are in opposite order. Another way of writing $n/m$ is $\frac{n}{m}$. When math people pronounce “$\frac{n}{m}$” they usually say, “$n$ over $m$” using the same order.
  • I taught these notation in courses for computer engineering and math majors for years. Some of the students stayed hopelessly confused through several lectures and lost points repeatedly on homework and exams by getting these symbols wrong.
  • The problem was not helped by the fact that “$|$” and “$/$” are similar but have very different syntax:

    Math notation gives you no clue which symbols are operators (used to form expressions) and which are verbs (used to form assertions).

  • A majority of the students didn’t have so much trouble with this kind of syntax. I have noticed that many people have no sense of syntax and other people have good intuitive understanding of syntax. I suspect the second type of people find learning foreign languages easy.
  • Many of the articles in the references below concern syntax.
  • References

    Creative Commons License

    This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.


    Send to Kindle

    Algebra is a difficult foreign language

    Note: This post uses MathJax.  If you see mathematical formulas with dollar signs around them, or badly formatted formulas, try refreshing the screen. Sometimes you have to do it two or three times.

    Algebra

    In a previous post, I said that the symbolic language of mathematics is difficult to learn and that we don't teach it well. (The symbolic language includes as a subset the notation used in high school algebra, precalculus, and calculus.) I gave some examples in that post but now I want to go into more detail.  This discussion is an incomplete sketch of some aspects of the syntax of the symbolic language.  I will write one or more posts about the semantics later.

    The languages of math

    First, let's distinguish between mathematical English and the symbolic language of math. 

    • Mathematical English is a special register or jargon of English. It has not only its special vocabulary, like any jargon, but also used ordinary English words such as "If…then", "definition" and "let" in special ways. 
    • The symbolic language of math is a distinct, special-purpose written language which is not a dialect of the English language and can in fact be read by mathematicians with little knowledge of English.
      • It has its own symbols and rules that are quite different from spoken languages. 
      • Simple expressions can be pronounced, but complicated expressions may only be pointed to or referred to.
    • A mathematical article or book is typically written using mathematical English interspersed with expressions in the symbolic language of math.

    Symbolic expressions

    A symbolic noun (logicians call it a term) is an expression in the symbolic language that names a number or other mathematical object, and may carry other information as well.

    • "3" is a noun denoting the number 3.
    • "$\text{Sym}_3$" is a noun denoting the symmetric group of order 3.
    • "$2+1$" is a noun denoting the number 3.  But it contains more information than that: it describes a way of calculating 3 as a sum.
    • "$\sin^2\frac{\pi}{4}$" is a noun denoting the number $\frac{1}{2}$, and it also describes a computation that yields the number $\frac{1}{2}$.  If you understand the symbolic language and know that $\sin$ is a numerical function, you can recognize "$\sin^2\frac{\pi}{4}$" as a symbolic noun representing a number even if you don't know how to calculate it.
    • "$2+1$" and "$\sin^2\frac{\pi}{4}$" are said to be encapsulated computations.
      • The word "encapsulated" refers to the fact that to understand what the expressions mean, you must think of the computation not as a process but as an object.
      • Note that a computer program is also an object, not a process.
    • "$a+1$" and "$\sin^2\frac{\pi x}{4}$" are encapsulated computations containing variables that represent numbers. In these cases you can calculate the value of these computations if you give values to the variables.  

    symbolic statement is a symbolic expression that represents a statement that is either true or false or free, meaning that it contains variables and is true or false depending on the values assigned to the variables.

    • $\pi\gt0$ is a symbolic assertion that is true.
    • $\pi\lt0$ is a symbolic assertion that it is false.  The fact that it is false does not stop it from being a symbolic assertion.
    • $x^2-5x+4\gt0$ is an assertion that is true for $x=5$ and false for $x=1$.
    • $x^2-5x+4=0$ is an assertion that is true for $x=1$ and $x=4$ and false for all other numbers $x$.
    • $x^2+2x+1=(x+1)^2$ is an assertion that is true for all numbers $x$. 

    Properties of the symbolic language

    The constituents of a symbolic expression are symbols for numbers, variables and other mathematical objects. In a particular expression, the symbols are arranged according to conventions that must be understood by the reader. These conventions form the syntax or grammar of symbolic expressions. 

    The symbolic language has been invented piecemeal by mathematicians over the past several centuries. It is thus a natural language and like all natural languages it has irregularities and often results in ambiguous expressions. It is therefore difficult to learn and requires much practice to learn to use it well. Students learn the grammar in school and are often expected to understand it by osmosis instead of by being taught specifically.  However, it is not as difficult to learn well as a foreign language is.

    In the basic symbolic language, expressions are written as strings of symbols.

    • The symbolic language gives (sometimes ambiguous) meaning to symbols placed above or below the line of symbols, so the strings are in some sense more than one dimensional but less than two-dimensional.
    • Integral notation, limit notation, and others, are two-dimensional enough to have two or three levels of symbols. 
    • Matrices are fully two-dimensional symbols, and so are commutative diagrams.
    • I will not consider graphs (in both senses) and geometric drawings in this post because I am not sure what I want to write about them.

    Syntax of the language

    One of the basic methods of the symbolic language is the use of constructors.  These can usually be analyzed as functions or operators, but I am thinking of "constructor" as a linguistic device for producing an expression denoting a mathematical object or assertion. Ordinary languages have constructors, too; for example "-ness" makes a noun out of a verb ("good" to "goodness") and "and" forms a grouping ("men and women").

    Special symbols

    The language uses special symbols both as names of specific objects and as constructors.

    • The digits "0", "1", "2" are named by special symbols.  So are some other objects: "$\emptyset$", "$\infty$".
    • Certain verbs are represented by special symbols: "$=$", "$\lt$", "$\in$", "$\subseteq$".
    • Some constructors are infixes: "$2+3$" denotes the sum of 2 and 3 and "$2-3$" denotes the difference between them.
    • Others are placed before, after, above or even below the name of an object.  Examples: $a'$, which can mean the derivative of $a$ or the name of another variable; $n!$ denotes $n$ factorial; $a^\star$ is the dual of $a$ in some contexts; $\vec{v}$ constructs a vector whose name is "$v$".
    • Letters from other alphabets may be used as names of objects, either defined in the context of a particular article, or with more nearly global meaning such as "$\pi$" (but "$\pi$" can denote a projection, too).

    This is a lot of stuff for students to learn. Each symbol has its own rules of use (where you put it, which sort of expression you may it with, etc.)  And the meaning is often determined by context. For example $\pi x$ usually means $\pi$ multiplied by $x$, but in some books it can mean the function $\pi$ evaluated at $x$. (But this is a remark about semantics — more in another post.)

    "Systematic" notation

    • The form "$f(x)$" is systematically used to denote the value of a function $f$ at the input $x$.  But this usage has variations that confuse beginning students:
      • "$\sin\,x$" is more common than "$\sin(x)$".
      • When the function has just been named as a letter, "$f(x)$" is more common that "$fx$" but many authors do use the latter.
    • Raising a symbol after another symbol commonly denotes exponentiation: "$x^2$" denotes $x$ times $x$.  But it is used in a different meaning in the case of tensors (and elsewhere).
    • Lowering a symbol after another symbol, as in "$x_i$"  may denote an item in a sequence.  But "$f_x$" is more likely to denote a partial derivative.
    • The integral notation is quite complicated.  The expression \[\int_a^b f(x)\,dx\] has three parameters, $a$, $b$ and $f$, and a bound variable $x$ that specifies the variable used in the formula for $f$.  Students gradually learn the significance of these facts as they work with integrals. 

    Variables

    Variables have deep problems concerned with their meaning (semantics). But substitution for variables causes syntactic problems that students have difficulty with as well.

    • Substituting $4$ for $x$ in the expression $3+x$ results in $3+4$. 
    • Substituting $4$ for $x$ in the expression $3x$ results in $12$, not $34$. 
    • Substituting "$y+z$" in the expression $3x$ results in $3(y+z)$, not $3y+z$.  Some of my calculus students in preforming this substitution would write $3\,\,y+z$, using a space to separate.  The rules don't allow that, but I think it is a perfectly natural mistake. 

    Using expressions and writing about them

    • If I write "If $x$ is an odd integer, then $3+x$ is odd", then I am using $3+x$ in a sentence. It is a noun denoting an unspecified number which can be constructed in a specified way.
    • When I mention substituting $4$ for $x$ in "$3+x$", I am talking about the expression $3+x$.  I am not writing about a number, I am writing about a string of symbols.  This distinction causes students major difficulties and teacher hardly ever talk about it.
    • In the section on variables, I wrote "the expression $3+x$", which shows more explicitly that I am talking about it as an expression.
      • Note that quotes in novels don't mean you are talking about the expression inside the quotes, it means you are describing the act of a person saying something.
    • It is very common to write something like, "If I substitute $4$ for $x$ in $3x$ I get $3 \times 4=12$".  This is called a parenthetic assertion, and it is literally nonsense (it says I get an equation).
    • If I pronounce the sentence "We know that $x\gt0$" we pronounce "$x\gt0$" as "$x$ is greater than zero",  If I pronounce the sentence "For any $x\gt0$ there is $y\gt0$ for which $x\gt y$", then I pronounce the expression "$x\gt0$" as "$x$ greater than zero$",  This is an example of context-sensitive pronunciation
    • There is a lot more about parenthetic assertions and context-sensitive pronunciation in More about the languages of math.

    Conclusion

    I have described some aspects of the syntax of the symbolic language of math. Learning that syntax is difficult and requires a lot of practice. Students who manage to learn the syntax and semantics can go on to learn further math, but students who don't are forever blocked from many rewarding careers. I heard someone say at the MathFest in Madison that about 25% of all high school students never really understand algebra.  I have only taught college students, but some students (maybe 5%) who get into freshman calculus in college are weak enough in algebra that they cannot continue. 

    I am not proposing that all aspects of the syntax (or semantics) be taught explicitly.  A lot must be learned by doing algebra, where they pick up the syntax subconsciously just as they pick up lots of other behavior-information in and out of school. But teachers should explicitly understand the structure of algebra at least in some basic way so that they can be aware of the source of many of the students' problems. 

    It is likely that the widespread use of computers will allow some parts of the symbolic language of math to be replaced by other methods such as using Excel or some visual manipulation of operations as suggested in my post Mathematical and linguistic ability.  It is also likely that the symbolic language will gradually be improved to get rid of ambiguities and irregularities.  But a deliberate top-down effort to simplify notation will not succeed. Such things rarely succeed.

    References

     

     

    Send to Kindle

    Syntax Trees in Mathematicians’ Brains

    Understanding the quadratic formula

    In my last post I wrote about how a student’s pattern recognition mechanism can go awry in applying the quadratic formula.

    The template for the quadratic formula says that the solution of a quadratic equation of the form ${ax^2+bx+c=0}$ is given by the formula

    $\displaystyle x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$

    When you ask students to solve ${a+bx+cx^2=0}$ some may write

    $\displaystyle x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$

    instead of

    $\displaystyle x=\frac{-b\pm\sqrt{b^2-4ac}}{2c}$

    That’s because they have memorized the template in terms of the letters ${a}$, ${b}$ and ${c}$ instead of in terms of their structural meaning — $ {a}$ is the coefficient of the quadratic term, ${c}$ is the constant term, etc.

    The problem occurs because there is a clash between the occurrences of the letters “a”, “b”, and “c” in the template and in the equation to solve. But maybe the confusion would occur anyway, just because of the ordering of the coefficients. As I asked in the previous post, what happens if students are asked to solve $ {3+5x+2x^2=0}$ after having learned the quadratic formula in terms of ${ax^2+bx+c=0}$? Some may make the same kind of mistake, getting ${x=-1}$ and ${x=-\frac{2}{3}}$ instead of $ {x=-1}$ and $ {x=-\frac{3}{2}}$. Has anyone ever investigated this sort of thing?

    People do pattern recognition remarkably well, but how they do it is mysterious. Just as mistakes in speech may give the linguist a clue as to how the brain processes language, students’ mistakes may tell us something about how pattern recognition works in parsing symbolic statements as well as perhaps suggesting ways to teach them the correct understanding of the quadratic formula.

    Syntactic Structure

    “Structural meaning” refers to the syntactic structure of a mathematical expression such as ${3+5x+2x^2}$. It can be represented as a tree:

    (1)

    This is more or less the way a program compiler or interpreter for some language would represent the polynomial. I believe it corresponds pretty well to the organization of the quadratic-polynomial parser in a mathematician’s brain. This is not surprising: The compiler writer would have to have in mind the correct understanding of how polynomials are evaluated in order to write a correct compiler.

    Linguists represent English sentences with syntax trees, too. This is a deep and complicated subject, but the kind of tree they would use to represent a sentence such as “My cousin saw a large ship” would look like this:

    Parsing by mathematicians

    Presumably a mathematician has constructed a parser that builds a structure in their brain corresponding to a quadratic polynomial using the same mechanisms that as a child they learned to parse sentences in their native language. The mathematician learned this mostly unconsciously, just as a child learns a language. In any case it shouldn’t be surprising that the mathematicians’s syntax tree for the polynomial is similar to the compiler’s.

    Students who are not yet skilled in algebra have presumably constructed incorrect syntax trees, just as young children do for their native language.

    Lots of theoretical work has been done on human parsing of natural language. Parsing mathematical symbolism to be compiled into a computer program is well understood. You can get a start on both of these by reading the Wikipedia articles on parsing and on syntax trees.

    There are papers on students’ misunderstandings of mathematical notation. Two articles I recently turned up in a Google search are:

    Both of these papers talk specifically about the syntax of mathematical expressions. I know I have read other such papers in the past, as well.

    What I have not found is any study of how the trained mathematician parses mathematical expression.

    For one thing, for my parsing of the expression $ {3+5x+2x^2}$, the branching is wrong in (1). I think of ${3+5x+2x^2}$ as “Take 3 and add $ {5x}$ to it and then add ${2x^2}$ to that”, which would require the shape of the tree to be like this:

    I am saying this from introspection, which is dangerous!

    Of course, a compiler may group it that way, too, although my dim recollection of the little bit I understand about compilers is that they tend to group it as in (1) because they read the expression from left to right.

    This difference in compiling is well-understood.  Another difference is that the expression could be compiled using addition as an operator on a list, in this case a list of length 3.  I don’t visualize quadratics that way but I certainly understand that it is equivalent to the tree in Diagram (1).  Maybe some mathematicians do think that way.

    But these observations indicate what might be learned about mathematicians’ understanding of mathematical expressions if linguists and mathematicians got together to study human parsing of expressions by trained mathematicians.

    Some educational constructivists argue against the idea that there is only one correct way to understand a mathematical expression.  To have many metaphors for thinking about math is great, but I believe we want uniformity of understanding of the symbolism, at least in the narrow sense of parsing, so that we can communicate dependably.  It would be really neat if we discovered deep differences in parsing among mathematicians.  It would also be neat if we discovered that mathematicians parsed in generally the same way!


    Send to Kindle