Examples with Mathspeak

Multiline Equations in pure Table Format

Compute Area of House


First find the area of the square in square feet. A = s 2 = ( 2 x ) 2 = 4 x 2 A = s 2 = (2x) 2 = 4 x 2 Then find the area of the triangle in square feet. A = 1 2 b h = 1 2 ( 2 x ) ( 3 2 ) = 3 2 x A = 1 2 bh = 1 2 (2x)( 3 2 ) = 3 2 x Next find the area of the rectangular door in square feet. A = l w = x 1 = x A = lw = x1 = x


Perfect Square Trinomials


  ( x + 5 ) 2 = x 2 + 10 x + 25 ( x 3 ) 2 = x 2 6 x + 9 ( 4 x 1 ) 2 = 16 x 2 8 x + 1   (x+5) 2 = x 2 +10x+25 (x3) 2 =    x 2 6x+9 (4x1) 2 = 16 x 2 8x+1


Difference of Squares


( x + 1 ) ( x 1 ) = x 2 x + x 1 = x 2 1 (x+1)(x1) = x 2 x+x1 = x 2 1 The middle term drops out, resulting in a difference of squares. ( x + 5 ) ( x 5 ) = x 2 25 ( x + 11 ) ( x 11 ) = x 2 121 ( 2 x + 3 ) ( 2 x 3 ) = 4 x 2 9 (x+5)(x5) = x 2 25 (x+11)(x11) = x 2 121 (2x+3)(2x3) = 4 x 2 9



Multiline Equations with Explicit Labels

Simple equation


\begin{eqnarray} 32 - 9 x^3 + 20 &=& 3 - 1 \\ 9 - 27 + 20 &=& 2 \\ 9 - 7 &=& 2 \\ 2 &=& 2 \end{eqnarray}


Inequality simplification


\begin{align*} 2k+1& \geq 2k+2 \tag{Step 1}\\ & \geq 2k+2 \tag{Step 2}\\ & =2(k+1) \tag{Step 3} \end{align*}


Equations with Interspersed Explanations

Note, the first equation is built with a simple MathML table, forcing speech to use the row layout, i.e., speaking the text after the formula in the line. On the other hand, the second equation uses labels for the interspersed text, resulting in it being spoken before the actual line element (also marked as label).

Performing Operations with Polynomials of Several Variables


( a + 2 b ) ( 4 a b c ) a ( 4 a b c ) + 2 b ( 4 a b c ) Use the distributive property . 4 a 2 a b a c + 8 a b 2 b 2 2 b c Multiply . 4 a 2 + ( a b + 8 a b ) a c 2 b 2 2 b c Combine like terms . 4 a 2 + 7 a b a c 2 b c 2 b 2 Simplify . (a+2b)(4abc) a(4abc)+2b(4abc) Use the distributive property. 4 a 2 abac+8ab2 b 2 2bc Multiply. 4 a 2 +(ab+8ab)ac2 b 2 2bc Combine like terms. 4 a 2 +7abac2bc2 b 2 Simplify.


Quadratic simplification


\begin{align*} 0.15x & = 2 + 0.12x - 0.002x^2 \\ \tag*{Bring terms to left} 0.002x^2 + 0.15x - 0.12x - 2 & = 0\\ \tag*{Simplify} 0.002x^2 + 0.03x - 2 &= 0\\ \tag*{Multiply by 500} x^2 + 15x - 1000 & = 0\\ \tag*{Split 15x} x^2 -25x + 40x - 1000 & = 0\\ \tag*{} x(x-25) + 40(x-25) & = 0\\ \tag*{} (x+40)(x-25) & = 0\\ x & = -40 \mbox{ or } 25\\ \end{align*}