Microsoft Word 2010 Math Add-In

advertisement
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
Download