The Free 2007/2010 Microsoft Word Mathematics Add-In Gail Nord Gonzaga University Spokane, WA, 99258, USA nord@gonzaga.edu ©2011 Nord Page 1 Number Theory Example 1: Find the remainder when 21 is divided by 5. 21 πππ 5 1 ©2011 Nord Page 2 Example 2: Find the greatest common factor from a list of numbers. πππ 300,145 5 ©2011 Nord Page 3 Example 3: Convert the following number that is given in base 10 to a base of 3. 35 Our example will be: π‘ππ΅ππ π(3,35) The result is: 10223 ©2011 Nord Page 4 Example 4: Convert a number from another base to base ten. 10223 The original base must be a number between 2 and 36. Our example will be: πππ π(3,1022) 35 ©2011 Nord Page 5 Example 5: From a list, find a maximum value. {2, .3,7,56.22,4} ©2011 Nord Page 6 Example 6: Given a number, find the closest prime to the right of it. 104 πππ₯π‘πππππ(104) 107 ππππ£πππππ(104) ©2011 Nord Page 7 Example 7: Determine if a given number is a prime number. 107 The command is IsPrime. The input will be: πΌπ πππππ(107) π‘ππ’π ©2011 Nord Page 8 Example 8: Give the prime factorization for a given integer. 2200 ππππ‘ππ(2200) 3 2 2 · 5 · 11 ©2011 Nord Page 9 Graphing ©2011 Nord Page 10 Graphing Commands Flexible input allows for alternative syntax. ππππ‘2π(4π₯ 2 + 12π₯ + 2) 4π₯ 2 + 12π₯ + 2 π¦ = 4π₯ 2 + 12π₯ + 2 ©2011 Nord Page 11 Example 1: Consider the graphs of the roses generated by: π = cos(π π) ππππ‘πππππ2π (cos(ππ )) ©2011 Nord Page 12 Example 2: Graphing in three dimensions: ππππ‘πππππ3π· (cos(3π) sin(2π) ) ©2011 Nord Page 13 Example 3: Graph: π = ππ ππ ππππ‘πππππ3π(ππ) ©2011 Nord Page 14 Command Example Input Plot2d plot3D plotCylR3D plotEq2d plotEq3D ππππ‘2π(4π₯ 2 + 12 ∗ π₯ + 2) ππππ‘3π·(2π₯ + π¦ 3 ) ππππ‘πΆπ¦ππ 3π·(π 2 + π ππ(2π)) ππππ‘πΈπ2π(π₯ 2 + π¦ 2 = 4) π₯2 ππππ‘πΈπ3π·( + π¦ 2 + π§ 2 = 1) 9 ππππ‘πΌπππ2π(2π₯ ≤ 3 + 3π¦) ππππ‘πππππ2π(π ππ π‘, 3π‘ − 5) Input function, f(x). Input where, z=f(x, y). Input z=f(r, π). Input f(x, y) = c. Input f(x, y, z)=c. plotIneq2d plotParam2d plotParam3D ππππ‘πππππ3π·(π‘ + π 2 , π‘ + 3π , π‘ − π 2) Input inequality in x and y. Input (f(t), g(t)) where x=f(t) and y=g(t). Input (f(t, s), g(t, s), h(t, s)) where x=f(t, s) and y=g(t, s) and z=h(t, s). To execute these commands using the drop-down menu, apply Calculate. Example 4: Use the Show3D command. π βππ€3π(ππππ‘ππ3π (π₯ 2 + π¦ 2 = 1), ππππ‘ππ3π (π§ 2 + π¦ 2 = 1)) Example 4b: π βππ€3π(ππππ‘3π·(π₯ 2 + π¦ 2 ), ππππ‘3π·(π₯ − π¦)) ©2011 Nord Page 15 Example 5: Use the Show2D command. π βππ€2π(ππππ‘2π (π₯ 3 ), ππππ‘2π((πππππ£ (π₯ 3 , π₯ ))) ©2011 Nord Page 16 Example 6: Create a movie. π§ = π₯ 2 + (−1)πππππππ π π¦ 2 /4 The two quadric surfaces that will alternatively appear will be a hyperbolic paraboloid and an elliptic paraboloid. ©2011 Nord Page 17 Example 7: Create an animated spring. (Works in Mathematics 4.0—but not here) π βππ€3π·(plotParamLine3d(a t, b sin(t) , c cos(t)), plotParamLine3d(t, sin(t) , cos(t)) ©2011 Nord Page 18 Linear Algebra Vectors and Matrices ©2011 Nord Page 19 Use the Matrix feature. ©2011 Nord Page 20 Example 1: Add two vectors. 4 1 (2) + (−5) 3 3 Calculate gives the resultant vector, 5 (−3) 6 ©2011 Nord Page 21 Example 2: Find the magnitude of a vector. ππππππ‘π’ππ({3, −2,1}) Use the command Calculate to find the answer: √14 ©2011 Nord Page 22 Example 3: Find the inner product. πππππ({3, −2,1}, {5,0,2}) 17 ©2011 Nord Page 23 Example 4: Find the cross product where πΈ =< −2, 4, 5 > and πΉ =< 3, 2, 1 >. ππππ π ({−2,4,5}, {3,2,1}) {−6, 17, −16} ©2011 Nord Page 24 Example 5: Calculate the determinant of a 3 x 3 matrix. 1 1 2 ( 2 −2 4) −3 3 6 ©2011 Nord Page 25 −48 1 2 1 2 Using the other options, find the trace of the matrix is 5, the inverse matrix is ( 1 and the transpose of the matrix is (1 2 ©2011 Nord 0 0 1 − 1 6 −4 0 1 8 1 12 ) 2 −3 −2 3 ) . 4 6 Page 26 Example 6: Given a 3 x 3 matrix and its inverse, show the product gives the identity matrix. 1 0 2 1 1 − 2 4 1 (0 8 ©2011 Nord 1 − 6 0 1 12 ) 1 1 ( 2 −2 −3 3 2 4) 6 Page 27 Example 7: Find the Boolean product 3 0 0 1 of (1 0 0) . 1 1 0 0 0 1 There are a few ways to do this. For one approach, enter the 3 x 3 matrix 1 0 0 and do not press 1 1 0 Calculate. The insertion of a pasted object with spaces or parentheses often gives an error message. 0 0 1 Without pressing Calculate, the matrix, 1 0 0 will contain no parentheses. Cut and paste this 1 1 0 matrix and place as the ‘base’. Insert the three as a superscript using this feature: ©2011 Nord Page 28 The command Calculate from the drop-down menu gives the desired result of: 1 (1 1 0 1 1 0) 1 1 The superscript may be toggled to be 7, and the new Boolean product can be found to be: 0 0 1 0 1 1 17 3 2 0 = (2 1 0 4 2 2 2) 3 Another approach is to enter the matrix and superscript directly without cutting and pasting to give: 0 0 13 1 0 0 1 1 0 If there is a desire for the parentheses to be displayed, enter the matrix and then press Calculate to give: 0 (1 1 ©2011 Nord 0 1 0 0) 1 0 Page 29 With the cursor inside the blue box, press ^3 followed by a space bar. This will move the three to the desired location and give: 1 0 (1 0 1 1 1 3 0) 0 Press Calculate to simplify. ©2011 Nord Page 30 Example 8: Reduce a 3 x 3 matrix to row reduced echelon form. 6 3 −4 (−4 1 −6) 1 2 −5 6 3 −4 1 1 2 −4 −6 −5 Press Calculate to obtain the parentheses. ©2011 Nord Page 31 6 3 (−4 1 1 2 6 ππππ’ππ (−4 1 1 0 (0 ©2011 Nord −4 −6) −5 3 −4 1 −6) 2 −5 7 0 9 26 1 − 9 0 0 ) Page 32 Example 9: Reduce the matrix to row reduced echelon form. 1 −2 3 −1 (2 −1 2 2 ) 3 1 2 3 There is a problem entering this size of matrix from the menu since it is larger than a 3 x 3 matrix. ©2011 Nord Page 33 {1, −2,3, −1}, {2, −1,2,2}, {3,1,2,3} Calculate will place { } around the input. {{1, −2, 3, −1}, {2, −1, 2, 2}, {3, 1, 2, 3}} With the cursor in the blue box, type matrix Type in here matrix. πππ‘πππ₯{{1, −2, 3, −1}, {2, −1, 2, 2}, {3, 1, 2, 3}} 1 (2 3 ©2011 Nord −2 −1 1 3 2 2 −1 2) 3 Page 34 1 −2 3 ππππ’ππ (2 −1 2 3 1 2 ©2011 Nord 1 0 0 0 1 0 (0 0 1 −1 2) 3 15 7 4 − 7 10 − ) 7 Page 35 Example 10: Find the inverse of a matrix. If the matrix is a 2 x 2 or 3 x 3 matrix, the pull-down menu will contain the option, Invert Matrix. However, for larger matrices the option will appear with the command, matrix, in the Insert New Equation line. Enter each row of the matrix as a string using { and }. Separate the elements with a comma. Consider the matrix, ©2011 Nord Page 36 2 −2 ( 1 −1 5 −3 −2 −3 2 −5 ) 3 −2 2 −6 4 3 To enter the matrix, type: {{2,5, −3, −2}, {−2, −3,2, −5}, {1,3, −2,2}, {−1, −6,4,3}} Place the cursor in the blue box and in front of the desired matrix. Type matrix. πππ‘πππ₯{{2, 5, −3, −2}, {−2, −3, 2, −5}, {1, 3, −2, 2}, {−1, −6, 4, 3}} With the insertion of matrix, the pop-up box changes and the desired option of Invert Matrix appears. The answer is: ©2011 Nord Page 37 0 2 3 0 ( ©2011 Nord 7 13 3 − − − 4 4 4 17 31 13 4 4 4 23 41 19 4 4 4 1 3 1 4 4 4 ) Page 38 Example 12: Solve a system of linear equations. 2π₯ + 6π¦ − π§ = 7 π₯ + 2π¦ − π§ = −1 5π₯ + 7π¦ − 4π§ = 9 Type each equation in a separate Insert New Equation line. If the last equation had no term of 7y, then a place- holder of 0y would have been needed. Now, highlight all three and right-click. The menu is: The answer is: ©2011 Nord Page 39 π₯ = 12 { π§ = 11 π¦ = −1 As a matrix the answer is: 1 0 0 12 (0 1 0 −1) 0 0 1 11 ©2011 Nord Page 40 Calculus Example 1: Given a polynomial, find the 3rd derivative with respect to x. Consider the input: πππππ£π(2π₯ 5 − 2π₯, π₯, 3) The same output can be obtained with an initial input of an expression: 2π₯ 5 − 2π₯ ©2011 Nord Page 41 Example 2: Differentiate. arccos(π₯ − 3) ©2011 Nord Page 42 Example 3: Integrate. √4 − π₯^2 ©2011 Nord Page 43 Example 4: Evaluate the integral. 6 ∫ π₯ √π₯ − 3 ππ₯ 4 πππ‘πππππ(π₯√π₯ − 3, π₯, 4,6) 5 32 4· 12 − + 12 √3 − 15 5 Select Calculate to give: 14.2276877526612 ©2011 Nord Page 44 More Information Microsoft Corporation, Microsoft Mathematics Add-In for Word and OneNote (2010): http://www.microsoft.com/downloads/en/details.aspx?FamilyID=CA620C50-1A56-49D2-90BD-B2E505B3BF09 ©2011 Nord Page 45 Reference Gail Nord’s Website: http://web02.gonzaga.edu/faculty/nord/ ©2011 Nord Page 46