Derive 5 PDF
Derive 5 PDF
by Bernhard Kutzler
& Vlasta Kokol-Voljc
T I E X P L O R A T I O N S™ S O F T W A R E
Bernhard KUTZLER
Vlasta KOKOL-VOLJC
Introduction to
DERIVE 5 TM
The author and publisher make no warranty of any kind, expressed or implied, with regard to the
documentation contained in this book. The author and publisher shall not be liable in any event for
incidental or consequental damages in connection with, or arising out of, the furnishing, performance
or use of this text.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any
form, or by any means, electronic, mechanical, photocopying, recording or otherwise, without prior
permission, in writing, from the publisher.
Table of Contents
Introduction ............................................................................................................................................. 1
Chapter 1: First Steps ............................................................................................................................. 3
Chapter 2: Documenting Polynomial Zero Finding ........................................................................... 23
Chapter 3: The Whole and Its Parts – Subexpressions ..................................................................... 43
Chapter 4: Equations and Inequalities ................................................................................................ 63
Chapter 5: Approximate Versus Exact Computations ...................................................................... 83
Chapter 6: Sequences and Families of Curves ................................................................................... 95
Chapter 7: Investigations in Space .................................................................................................... 117
Chapter 8: What Is ‘Simple’? .............................................................................................................. 135
Chapter 9: Vectors, Matrices, and Sets ............................................................................................. 153
Chapter 10: Parametric Plots ............................................................................................................. 171
Chapter 11: Towards a Module for Analytical Geometry ............................................................... 185
Chapter 12: Some Calculus ................................................................................................................ 203
Chapter 13: More on Plotting ............................................................................................................. 221
Chapter 14: What Else Can DERIVE Do? ............................................................................................ 243
Learn More about DERIVE ................................................................................................................... 261
Appendix A: DERIVE Startup Options ................................................................................................ 263
Appendix B: Factory Default DERIVE ................................................................................................ 265
Index ..................................................................................................................................................... 269
v
Preface
The desire to make DERIVE 5 easily and quickly accessible led to this book.
Many thanks to Albert Rich and Theresa Shelby, the principal authors of DERIVE 5, for their
continuous support during the writing of this book.
Many thanks to Patricia Littlefield and David Stoutemyer who polished the language of this
book.
Bernhard Kutzler & Vlasta Kokol-Voljc, February 2000
Introduction
DERIVE is a mathematical computer program. It processes algebraic variables, expressions,
equations, functions, vectors, and matrices like a scientific calculator processes floating point
numbers. DERIVE can perform numeric and symbolic computations, algebra, trigonometry,
calculus, and plot graphs in 2 and 3 dimensions. The main strength of DERIVE are symbolic
algebra and powerful graphics. It is an excellent tool for doing and applying mathematics, for
documenting mathematical work, and for teaching and learning mathematics.
For a teacher and student, DERIVE is the ideal tool for supporting the teaching and the learning of
mathematics. By providing numeric, algebraic, and graphic capabilities together with seamless
integration of these, DERIVE enables new approaches in teaching, learning, and understanding
mathematics. You will find that many topics can be treated more efficiently and effectively than
by using traditional methods. Many problems that require extensive and laborious training at
school can be solved with a single keystroke using DERIVE: It eliminates the drudgery of
performing long mathematical calculations. While DERIVE takes the burden of doing the
mechanical/algorithmic parts of solving a problem, students can concentrate on the
mathematical meaning of concepts. Instead of teaching and learning boring technical skills,
teachers and students can concentrate on the exciting and useful techniques of problem solving.
It has proven to be highly supportive for the cognitive development of advanced mathematical
concepts.
For an engineer, DERIVE is the ideal tool for fast and effective access to numerous mathematical
operations and functions and for visualizing problems and their solutions in various ways. If you
use DERIVE for your everyday mathematical work, you will find it a tireless, powerful, and
knowledgeable mathematical assistant that is easy to use.
This book is for learning how to use DERIVE 5 by private study. Install DERIVE 5 on your
computer. Starting with the first chapter, you will learn step by step how to use the program.
Follow all instructions and examples. The text leads you through several mathematical topics
that are used for learning how to solve mathematical problems with DERIVE. Many of the
examples also provide ideas for using DERIVE during teaching; some of them are explained in
more detail in “Educator’s footnotes.” Paragraphs starting with the symbol give instructions
about what you should do on your computer. Hundreds of screen dumps ensure that you will not
get lost on this journey.
2 Introduction
By solving typical mathematical high school level problems, you will learn to handle DERIVE 5 as
much as necessary for everyday use and for teaching or learning mathematics. You will learn
how to use the major commands, keys, and functions. At the end of each chapter you will find a
summary of the features learned in that chapter. The Quick Reference Guide at the end of the
book is a summary of commands, keys, functions, and utility files, which is organized by tasks.
The index at the end is useful if you need to locate a particular portion of the text.
All you need to run DERIVE 5 is a PC compatible computer with WINDOWS 95, WINDOWS 98, or
WINDOWS NT.
It is assumed that you know how to use computers and the WINDOWS operating system. The
screen shots in this book were produced from DERIVE running on WINDOWS NT. If you are running
DERIVE on WINDOWS 95 or 98, some of the screens may appear slightly different.
This book introduces all features and functions that are required for routine use of DERIVE 5.
There is more functionality than can be described here. This book is not a reference manual for
DERIVE. A complete reference to all features is included with the software as online help. Some
of the chapters give examples of how to use the online help.
We plan to write additional texts on DERIVE 5. Please regularly look at the web site
http://series.bk-teachware.com for new texts and local dealer information.
The following screen appears after a few seconds:
Work with DERIVE by entering expressions and applying commands, thus creating a worksheet.
After starting DERIVE, the system is ready to accept user input via the Expression Entry Toolbar,
as is indicated by the blinking cursor in the toolbar’s entry field. Input mode can be implemented
with the Command Toolbar’s tenth button from the left, labeled .
Learn more about the button by moving the mouse pointer onto it.
The message Author Expression below the cursor is the button’s title. The Status Bar message
Enter new expression in active work sheet is the button’s function description.
Prepare for entering an expression: Move the mouse pointer onto , then click (i.e. press
and release) the left mouse button.
DERIVE displays this expression as a fraction with a horizontal line, a numerator, and a
denominator, i.e. in “2-dimensional” output format, as opposed to the “1-dimensional” or “linear”
input format used for entering the number. The expression’s unique label number, #1, is shown
to the left of the expression. DERIVE is again ready to accept the next input, i.e. input control (the
focus) is still in the entry line. Also observe that a copy of the input is still in the entry field and is
entirely highlighted. This has the same meaning as in text editors and word processors. You can
remove the highlighting with the right arrow key, then edit the string of symbols, or you can
replace the marked string by typing new symbols.
Kutzler & Kokol-Voljc: Introduction to DERIVE 5 5
1 1
Replace the last input by + with an intentional typographical error:
2 3
Enter 1/2+1&3 (¢).
When a syntax error is detected, the cursor is moved to the location of the error and the cause of
the error is displayed in the Status Bar’s first pane. In the above example DERIVE discovered an
unexpected special character. In some cases (for example, when entering an opening
parenthesis instead of the division symbol) there are several errors possible, and DERIVE can only
guess.
Update the input to 1/2+1/3: Use the (Del) key (or the right arrow key (Æ) followed by
the backspace key (æ_)) to delete the incorrect character, then type the division operator.
Conclude with (¢).
The expression and its label, #2, are displayed. The new expression is highlighted in reverse
video. Expression #1 is no longer highlighted.
If you mistyped the input and want to delete the highlighted expression for a retry, use (Esc) to
move the focus into the algebra window, use the ‘Delete’ key (Del) to delete the highlighted
expression, then use the Author Expression button to move the focus back into the entry line.
An alternative technique for replacing an expression will be explained in Chapter 2.
Simplify expression #2 using the Command Toolbar’s Simplify button .
The result becomes the next expression with the label #3. By default, simplified expressions are
displayed centered. This makes it easy to distinguish between entry and result. As with many
other behaviors of DERIVE, this can be customized if desired.
Even after using the Simplify button, the focus still is in the entry line. Enter the next
expression, 24 . To enter the square root symbol, use the respective button on the Math
Symbol Toolbar:
Simplify using .
This is different from what an “ordinary” calculator would produce. A mathematician once
asked: “How do you recognize a mathematician?” and suggested the following answer: “A
mathematician considers expression #5 a beautiful result.” Most students strive to replace
such an expression by the corresponding floating point approximation. DERIVE can do this as
well: Highlight expression #4 so that you can apply a different command to it.
Highlight expression #4 by moving the mouse pointer anywhere in the row occupied by the
expression, then clicking the left mouse button.
Selecting an expression with the mouse button is one technique of highlighting it. An alternative
technique is first to move the focus into the algebra window (if necessary) using the (Esc) key,
then using the cursor keys (½) or (¼) to move the highlighting one expression up or down.
While an expression is highlighted, the Status Bar’s second pane shows the automatically
generated expression annotation. The third pane shows the computing time in case the expres-
sion was obtained as a result of a computation. For expression #6 this is:
The automatically generated annotation explains how the expression was obtained.
Approx(#4) means that the expression was obtained by applying the Approximate button (or
command) to expression #4. The computation time displayed in the third pane, 0.000s,
indicates that the calculation took less than 0.001 seconds (the time may be different on your
computer).
Highlight expression #4, . . .
The annotation of expression #4, User, means that it was entered by the user; the annotation of
expression #5, Simp(#4), indicates that the expression was obtained by applying the Simplify
button (or command) to expression #4. The first pane is always available for messages
associated with a menu item, button, or command status.
DERIVE worksheets also can include text and other objects. The easiest way of entering text is via
the Command Toolbar’s Insert Text button . New expressions are added at the end of the
Kutzler & Kokol-Voljc: Introduction to DERIVE 5 7
worksheet. Other objects (including text objects) are added after the highlighted object. To
insert a text object above the square root of 24, first highlight the object that is now above it.
Highlight expression #3.
Display a function description of the Insert Text button by moving the mouse pointer
onto it.
Highlighting of a text object is indicated by a frame around it. The blinking cursor inside
indicates text editing mode.
Enter the text: We compute the square root of 24:
A text object allows simple text editing similar to what you can do in standard text editors. Later
you will learn how to change the font size, alignment, color, etc.
56
As a next example compute 1234 . Due to the previous activity, the focus now is in the algebra
window. Before you can enter another expression, move the focus into the entry line.
Enter 1234^56 by using the Author Expression button , then typing the respective string
of digits followed by (¢). The exponentiation operator ^ can be found on both the
keyboard and the Math Symbol Toolbar. (It is the sixth symbol from the left in the first row.)
Simplify using .
This is a very big number. For those who want to know the number of digits, there are two
methods to find out: First, you can count them. Second, you can approximate the number.
8 Chapter 1: First Steps
Approximate using .
The answer is displayed in scientific notation. Since the count of whole digits is one more than
the power of 10, the number has 173+1 = 174 digits.
In the next exercise, you will learn a different technique of entering expressions by using the
buttons preceding the entry field.
Type into the entry line x/3+x/4 this time without concluding with (¢).
Note the five buttons left of the entry field. The usual technique of moving the mouse pointer
onto a button reveals the first one, , as the Author Expression button. Selecting this button
has the same effect as concluding the input with the (¢) key. Try it:
Enter the above expression with , then simplify as usual using the Command Toolbar’s
Simplify button .
Unlike ordinary calculators, DERIVE can perform nonnumeric (symbolic, algebraic) computations
such as simplifying expression #10 into expression #11.
For the next example use the Expression Entry Toolbar’s second button, .
To simplify x + 2 x immediately, type x+2x then select the entry line’s Simplify button .
This button simplified the entered expression immediately without the usual display of the
unsimplified expression. Note the result’s annotation: Simp(User)
For the next example use the Expression Entry Toolbar’s third button, .
Enter and simplify xy + sin x by typing xy+sinx then using the entry line’s Author and
Simplify button .
Kutzler & Kokol-Voljc: Introduction to DERIVE 5 9
This button produced two expressions, #13 and #14 and has the same effect as entering the
unsimplified expression with (¢) or , then simplifying it with . It is, therefore, a convenient
shortcut for the frequently used “enter and simplify.” This example also shows how convenient
fast input is in DERIVE. You can enter expressions just as you would write them on paper. For ‘x
times y ‘ simply enter xy. No multiplication operator is needed between x and y. For ‘Sine of x ‘
simply enter sinx. No parentheses are needed around x.
The Expression Entry Toolbar has buttons for entering, simplifying, entering & simplifying,
approximating, and entering & approximating expressions.
The simplified expression #14 differs from the unsimplified expression #13 only in the order in
which its terms are displayed. While unsimplified expressions are displayed as they were entered
(except for the 2-dimensional pretty print format), simplified expressions are displayed in a
standardized format using a certain term ordering.
Back to how simple it is to enter expressions. A consequence of the convenient fast input, such
as xy+sinx for x ⋅ y + sin( x) , is that variable names can consist of only one character (for
example x and y). This suffices most of the time, but if you need to use multicharacter variable
names, DERIVE allows this, too (for example time or x12). Using multicharacter variable names
will be explained in Chapter 14.
Clearly, you cannot omit all parentheses. For example, you will need to parenthesize the
2
denominator to enter a rational expression such as . If the parentheses are omitted in this
x +1
example, the resulting expression has a different meaning.
Enter: 2/x+1
Oops—the expression on the screen looks different from the intended expression! DERIVE
applies operations in the conventional order, for example multiplication and division before
addition and subtraction. As you can see from the above example, the 2-dimensional screen
display of an input provides you with valuable feedback about the soundness of your input.1
1
Educator’s footnote: A very simple educational exercise with DERIVE, therefore, consists of asking
the students to input expressions given to them on the chalkboard or a piece of paper. Because DERIVE
features 2-dimensional output of expressions, the students get an immediate feedback. If the
expression on the screen looks different from the one on the chalkboard or paper, then the input was
wrong, and they must try again. When the teacher lets students input expressions of increasing
complexity, they learn how to “linearize” expressions by trying and experimenting (trial and error),
and learn to understand the structure of expressions. In this way, they improve their competence in
recognizing structures, which is one of the basic mathematical skills important in many areas.
10 Chapter 1: First Steps
When correcting the most recent input, you can take advantage of the fact that a copy of the
most recent input and the focus are still in the entry line.
To edit the expression use the right arrow key (Æ) to remove the highlighting. Change the
input to 2/(x+1) by adding the parentheses, then enter the expression with (¢).
Now it looks correct. Since you don’t need expression #15 any more, delete it.
Prepare for deletion: Highlight expression #15 either with the mouse or with the keyboard’s
arrow keys after moving the focus into the algebra window using (Esc).
Delete expression #15: Use the Delete Object button or press the (Del) key.
The expression that was expression #15 disappeared. The expression that was expression #16
has become expression #15. By default, automatic renumbering adjusts expression numbers so
that they begin with #1 and have no gaps.
Errors such as omitting a whole pair of parentheses may change the meaning of an expression,
as was the case in the previous example. If only one parenthesis is omitted, the input becomes a
meaningless character string, and DERIVE will issue a warning in the form of an appropriate
syntax error message:
Enter 4x-1/x-5) after moving the focus into the entry line with .
DERIVE attempts to position the cursor in front of the expected error. Since a superfluous closing
parenthesis can be spotted while a missing opening parenthesis obviously cannot, the first
alternative is used for the error message. Depending on how the expression should look, you
have to either delete the closing parenthesis or insert an opening parenthesis somewhere before
it. For the above example there are six possible repairs:
output 1 1 1 1 1 1
4x − −5 4x − −5 4x − 4x − − 5 4 x − − 5 4x − −5
x x x−5 x x x
To choose the third variant insert an opening parenthesis between the division operator and the
variable x.
Kutzler & Kokol-Voljc: Introduction to DERIVE 5 11
When working with DERIVE, focus can be either in the entry line or in the algebra window (View).
When focus is in the entry line, (Esc) will move focus into the View. When focus is in the View,
the Author Expression button or its hot key equivalent, (F2), moves it into the entry line.
Another method to move focus is using the mouse. Focus is where one last moved the mouse
pointer to and then pressed the left mouse button.
Ensure that focus is in the entry line by moving the mouse pointer into the entry line’s entry
field, then clicking with the left mouse button.
The disadvantage of this method is that it removes highlighting if there was any, so now you
cannot simply replace the old input with a new one by starting to type the new input string. You
could use the backspace key several times to delete the old string, but a more elegant way is to
use the tab key.
Highlight the contents of the entry line with the tab key (ÿ).
Enter and simplify √x^2. It is up to you to either use the ‘Enter’ key followed by the Simplify
button or to use the entry line’s Enter and Simplify button. The square root symbol √ can be
obtained from the Math Symbol Toolbar ( ) or entered as (Ctrl)-(Q).
Type √x^2 then press (Ctrl)+(¢). This is the same as , i.e. this is a simple way to
perform an “enter and simplify” operation without using the mouse.
2
Educator’s footnote: This is another example for an elementary educational use of DERIVE. Ask
students how many different expressions they can generate by inserting 1, 2 (or more) pairs of paren-
theses into a valid string of characters. This is another excellent exercise to help students gain an
understanding of the structure of expressions.
12 Chapter 1: First Steps
The last two examples are remarkable for two reasons. First, they demonstrate the importance
( x ) ) and
2 2
of using parentheses to differentiate between x (meaning x 2 (meaning
This did not change anything. Now you have an opportunity to apply one of those commands for
which there is no equivalent Command Toolbar button.
Prepare for opening the Simplify menu by moving the mouse pointer above the Menu Bar’s
Simplify command.
This menu offers several commands. The Expand command is appropriate for expanding an
expression.
Select this command by moving the mouse pointer above the word Expand . . .
Kutzler & Kokol-Voljc: Introduction to DERIVE 5 13
. . . then invoke the command by clicking on it with the left mouse button.
DERIVE opens the Expand Expression dialog box. You will obtain similar dialog boxes with all
commands that require specification of parameters. The above dialog box requires the
specification of the expansion variable and the amount of expansion. Often it is enough to accept
the default specifications and immediately exit the dialog box with the ‘Enter’ key or by clicking
the default button, which here is (_Expand_). (The default button is the one prominently
displayed.) Use the (_Cancel_) button or the (Esc) key to cancel the command. Use (_OK_) if
you want an unsimplified application of the EXPAND function.
Perform the expansion with the suggested parameters by using (_Expand_) (either press
(¢) because this is the default button or click on (_Expand_).)
A keyboard alternative for selecting the Expansion command from the Simplify menu is the
following standard WINDOWS technique: (Alt)+(S) opens the Simplify menu (use (S) because of
the underscore under the letter S in Simplify), then press (E) (again the letter with the
underscore, but now without the (Alt), which is used only to open menus.) This technique
works for all menu commands.
For all buttons from the Command Toolbar there exist corresponding menu commands. Use
commands for the next example. Enter, simplify, then approximate sin (π 4 ) .
To enter the above expression, select the Author>Expression command, then type
sin(¹/4) (¢) . (Obtain π from either the Greek or the Math Symbol Toolbar. A button
for this frequently used character is in both of these toolbars.)
The ‘Enter’ key, used from within text editing mode, added an extra line to the text object. This
is not what was intended.
Delete the extra line using the backspace key (æ_).
Note that while DERIVE is in text editing mode, you have no access to certain buttons and menu
commands as you can see in the Command Toolbar. The inaccessible buttons and menu
commands appear dimmed. For example, the Approximate button is not available in text editing
mode now, because a text object is highlighted.
Other than the Command Toolbar’s Approximate button, the Simplify>Approximate command
invokes a dialog box in which you are asked to specify the number of digits of precision. The
currently displayed default value of 10 digits is also used by the Approximate button. The
Simplify>Approximate command allows you to temporarily change the default value for the next
computation. Change the number to 35, then use the default dialog exit.
35 (_Approximate_)
Kutzler & Kokol-Voljc: Introduction to DERIVE 5 15
In DERIVE you can specify virtually any precision, meaning number of significant digits used for
arithmetic. The practical limitations are given by the available memory and your patience. Note
that computing time increases with increasing precision.
Update your text to indicate the chosen precision.
Bring the text object into editing mode by clicking into it. Position the cursor immediately
after the word: an
Change the text appropriately by using the backspace key (æ_) to delete the letter n, then
adding: 35-digit
Reducing the text’s font size requires the Formatting Toolbar to be on.
Open the View Toolbars submenu with the Window>View Toolbars command.
For editing DERIVE text, use the same techniques as in standard word processing programs. This
toolbar indicates that the font size is 12 points. Before you can reduce the font size to 10 points,
you need to highlight the respective portion of text.
Highlight the entire sentence. Either use the technique of dragging the mouse pointer (hold
the left mouse button down) from one end of the text to the other, or put the cursor at the
text’s end (or beginning), then repeatedly use the left (or right) arrow key together with the
shift key, or place the cursor anywhere in the text, then triple-click.
16 Chapter 1: First Steps
Prepare for changing the font size: Open the Font Size field’s dropdown selection menu by
clicking on .
Alternatively, you could make the Font Size field active, then overwrite 12 with 10.
Now, announce the next example with an appropriate text.
Prepare for entering text using the Insert Text button .
Oops—this is the wrong position. The new text should appear at the end of the document. Since
the Insert Text button (as well as the Insert>Text Object command) adds the text object after the
highlighted object, you need to highlight expression #26 first.
Select expression #26.
Although the frame around the unintentionally inserted, empty text object disappeared, it is still
there. It can be deleted like any other object only after it is highlighted.
Highlight the text object by clicking into it.
The text object is selected now as is indicated by the frame around it. Make sure there is no
cursor inside it. If there is, press (Esc) again.
Delete the empty text object using the (Del) key.
Insert a new text object after the highlighted expression #26 (using ), then start entering
the text “Next we.”
Note that this text again has font size 12 as you can see in the Formatting Toolbar’s Font Size
field. Earlier you only changed the format of existing text. Changing the default format of all new
text objects is done via a command from the Options>Display menu.
To change the default setting of future text objects, select the Options>Display>Font of New
Text Objects command.
18 Chapter 1: First Steps
Change the font size to 10 points by scrolling within the Size selection menu appropriately,
then selecting the number 10, or by overwriting 12 with 10 via the keyboard.
The text has font size 10 points now. You will not need the Formatting Toolbar any more in this
session, so switch it off to provide more space for other purposes. Switching a toolbar off
requires the same procedure as switching it on.
Turn the Formatting Toolbar off using Window>View Toolbars>Formatting Toolbar.
Experiment with the commands from the Options>Display submenu to become familiar with
changing the “look” of a DERIVE worksheet.
Kutzler & Kokol-Voljc: Introduction to DERIVE 5 19
Select the Options>Display menu’s first choice (i.e. Alignment of New Objects.)
This invokes a dialog box that allows you to control the alignment of all the objects that can be
in a DERIVE worksheet. Unsimplified Expressions are expressions entered by you or expressions
obtained by adding an operator to an expression without simplifying. Simplified Expressions are
expressions obtained from simplifying or approximating an expression. It is helpful to display
user input left justified and the answers centered, as it is done by the default setting.
To keep the settings as they are, exit the dialog with (_Cancel_) or the (Esc) key.
Try the next command in the Options>Display submenu.
Try the menu’s second choice, Options>Display>Font of All Expressions (left picture), then
change the text size by clicking on the Large radio button.
20 Chapter 1: First Steps
Carry out the change by leaving the dialog box with (_OK_).
This font is useful for demonstration purposes, especially when using an overhead projector with
a display palette. For personal work the small font may be preferable. Therefore, switch back to
it and try a different color instead.
To undo the change of expression size, select Options>Display>Font of All Expressions
again, then change the text size back to small by clicking on the Small radio button (left
picture.) Prepare for changing the font color by opening the Color selection menu.
Select a color of your choice by clicking on it, then close the dialog with (_OK_).
Earlier you entered π via the Greek or Math Symbol Toolbar. There are several methods for
entering special constants such as π, the base of the natural logarithm e, or the imaginary unit i.
To enter a sum of three π‘s, first move the focus into the entry line using (F2). Enter the first
π from one of the two symbol toolbars, the second one by typing pi, and the third one as
(Ctrl)+(P). (The pluses in between are all entered via the keyboard.)
These are the three methods of entering the number π. While some look different in the entry
line, they all look and mean the same once they are entered:
Conclude the input of the sum of three π‘s with (¢).
Kutzler & Kokol-Voljc: Introduction to DERIVE 5 21
There are also three methods for entering the base of the natural logarithm e. Use all three of
them to enter a sum of three e’s, then add the ordinary letter e to see the difference between a
variable with this name and the famous constant. There is also another method of simplifying an
expression.
Enter the first e from the Math Symbol Toolbar using , the second one by typing #e, and
the third one as (Ctrl)+(E). Then type: +e= (Note the use of the postfix equals operator.)
End the input of the sum of three e’s and the variable e with (¢).
The postfix equals operator causes an automatic simplification and the generation of an equation
whose left hand side is the unsimplified expression and whose right hand side is the simplified
expression. This method displays both the unsimplified and simplified expression on the same
line, saving lines on the screen.
Similarly there are three methods for entering the imaginary unit. You can obtain I from the
Math Symbol Toolbar, type #i, or enter it via the key combination (Ctrl)+(I).
Conclude this chapter as follows.
Enter the text “This is the end of the first chapter.”
Exit DERIVE. The Exit command can be found in the File menu.
Exit DERIVE using the File>Exit command.
Summary
Algebra Window
or (Del) ............................................................................................. delete highlighted expression
or Insert>Text Object or (F5) ............................. insert text object after the highlighted object
or Author>Expression or (F2) ............................. enter expression, move focus into entry line
or Simplify>Basic ......................................................................... simplify highlighted expression
or Simplify>Approximate ................................................... approximate highlighted expression
File>Exit .................................................................................................................................. exit DERIVE
Simplify>Expand ................................................................................. expand highlighted expression
Options>Display ............................................................................................... change display settings
Window>View Toolbars>Formatting Toolbar .................................... toggle the formatting toolbar
(½), (¼)........................................................................ move highlighting one expression up, down
(Esc) ............................................................................................................................. cancel command
click left mouse button into row occupied by the expression ......................... highlight expression
click left mouse button into text object .................................................. edit contents of text object
click onto text object frame or left or right of it, or press (Esc) from within text editing ...............
.....................................................................highlight text object (without text editing)
Your first session with DERIVE left a trace in the form of an initialization file. This file stores
information about the status of DERIVE before you last shut it down. For example, the change
performed with the Options>Display>Font of New Text Objects command is among the data in
this file. The Derive Startup dialog gives you the choice to either start DERIVE with the factory
default settings or start DERIVE with the settings from the initialization file, i.e. with some of the
changes from the first chapter. This book is written so that each chapter starts with a factory
default DERIVE. We recommend that you do the same.
Start with a factory default DERIVE by exiting the dialog with (_Yes_).
Start the new document with an appropriate headline.
Insert a text object containing the text “Finding the zeros of a polynomial.”
x 4 3x3 5 x 2 7 x 1
You will look for the zeros of the polynomial y = p( x) , y = + − − − .
2 4 4 4 2
24 Chapter 2: Documenting Polynomial Zero Finding
Enter the above polynomial by preparing for expression input with , then typing:
y=x^4/2+3x^3/4-5x^2-7x/4-1/2
(Intentionally leave out the /4 in the middle term.)
From here on, the key (¢) or the button (_OK_) will be displayed only in ambiguous situations.
It will not be used any more for simple inputs such as the above. It is important for some of the
features you are going to study and use in this chapter that you work with the above polynomial.
Therefore, make sure it was entered properly.
As you know, it was not! The /4 in the middle term is missing. This is easily repaired by applying
the Edit>Derive Object command to the highlighted expression.
Edit the highlighted expression by selecting the Edit>Derive Object command.
This brings a copy of the expression into the entry line with the cursor positioned at its left end,
so the system is ready for editing.
Insert /4 after 5x^2, then end the input with (¢).
The (¢) key performed a replacement of the old expression with the new one. There is no need
to delete the old expression when using the Edit>Derive Object command.
Consider looking at a house from several different positions. From each position you will see
details that you can’t see from other positions. Based on this idea, mathematicians use a variety
of different representations for mathematical objects. The fourth degree polynomial that you
entered is displayed as an algebraic representation. Next you will produce a graphical
representation, because this representation is particularly useful for obtaining information about
the zeros. In other words, you will plot1 its graph.
Since the major goal in this session is to properly document the mathematical work, . . .
. . . insert the text “First we try a graphic approach by plotting the polynomial in a 2D-plot
window.”
1
“Plot” is a technical term. As such, it includes different aspects of drawing and graphical
representation. It does not stand for mathematical accuracy, and in this book it will be used with three
different meanings: for the activity of producing a graphical representation, for a graphical
representation as an object, and for the corresponding DERIVE command.
Kutzler & Kokol-Voljc: Introduction to DERIVE 5 25
Prepare for plotting a 2D graph: Open a 2D-plot window by clicking on the 2D-plot Window
button or selecting the Window>New 2D plot Window command.
DERIVE created a plot window, so that you now have two windows to work with: an algebra
window and a 2D-plot window. Use the usual WINDOWS techniques to flip between windows or
change their sizes and positions.
Put the two windows side by side using the Window>Tile Vertically command.
Each window is labeled with the window type in its upper left corner (2D-plot and Algebra). The
active window’s Title Bar is dark; the inactive window’s Title Bar is dimmed. Since the plot
window is active, the Menu Bar, the Command Toolbar, and the Status Bar are all different from
26 Chapter 2: Documenting Polynomial Zero Finding
that of the algebra window. In particular, the Status Bar displays the following graphics
information:
• Cross gives the coordinates of a movable cross,
• Center gives the coordinates of the picture center,
• Scale gives the scale factors of both axes,
• The crossed square icon preceding the word Cross indicates Cartesian coordinates.
Draw the graph using the Plot Expression button .
Now the Plot Expression button is available, and you are ready to plot the polynomial.
Draw the polynomial’s graph using the Plot Expression button .
Now we have both an algebraic and a graphical representation of the polynomial available.
However, the graphical representation is outside the algebra window’s worksheet in its own
independent plot window.
Copy the current plot window into the algebra window’s worksheet by using the 2D-plot
window’s File>Embed command.
This “freezes” the current status of the plot window into the worksheet. The plot window is
interactive; the embedded plot image is not. The embedded plot image can be brought back into
an interactive plot window at any time with a double mouse click.
The graphical representation is useful for exploring the polynomial’s zeros. However, from the
current picture it is not clear whether the polynomial has two, three, or four distinct zeros. An
answer can be found by inspecting the graph with the moveable graphics cross. Its coordinates
are displayed in the status line, which now shows the cross at the initial position (1,1):
28 Chapter 2: Documenting Polynomial Zero Finding
The color of the cross can be changed using the Options>Display>Cross command.
When the plot window is active, the cross can be repositioned by either moving the mouse
pointer and clicking the left mouse button or by using the arrow keys (Æ), (æ), (½), and (¼).
Move the mouse pointer to (1,-1), or near it, then click with the left mouse button to move
the cross to this position (left picture). Use the arrow keys to move the cross to (0.5,0.5). Try
(Ctrl)+(Æ), (Ctrl)+(æ), (Ctrl)+(½), and (Ctrl)+(¼) to move the cross in bigger
steps.
The (Home) key moves the cross to the plot window center.
The trace mode is very useful for inspecting curves. This mode can be switched on and off with
the Trace Plots button , the Options>Trace Plots command, or the corresponding hot key
(F3). As is customary in WINDOWS programs, a button with the same effect as a command is
displayed in the respective menu left of the command, while the hot key is displayed right of the
command. Check this out for the Options>Trace Plots command:
Open the Options menu.
Kutzler & Kokol-Voljc: Introduction to DERIVE 5 29
When trace mode is switched on, the cross changes its shape into a square and jumps vertically
to the curve, with its horizontal coordinate unchanged. The expression number of the traced
curve is displayed in the plot window’s Title Bar (here: Tracing Expression #1). When trace
mode is switched on, the square can be moved only along the curve. This can be done using (Æ)
and (æ), or using (Ctrl)+(Æ) and (Ctrl)+(æ) for “big steps.” It can also be done by moving
the mouse pointer and clicking with the left mouse button to the new position. If there are
several graphs displayed, use (½) and (¼) to select another graph.
Become familiar with moving the square. Use the arrow keys and the mouse to move the
square. Finally, click the left mouse button at the point (2.5,0).
What happened to the square? It disappeared. Looking at the status line indicates the reason. The
square’s vertical coordinate is 18.5625, so it is far from the current plot area. You can ask DERIVE
to move the plot area where the cross or square is.
Move the plot area where the cross is by flipping the switch Options>Follow Cross.
30 Chapter 2: Documenting Polynomial Zero Finding
The plot window “follows” the square. This means that the plot ranges for the horizontal and the
vertical axes are changed automatically to ensure that the cross is visible. Since this mode can
destroy a chosen plot range, follow mode should be used carefully and is therefore switched off
by default.
Turn follow mode off by selecting Options>Follow Cross again.
There are several ways to restore a previous range:
• While follow mode is on, you can click the left mouse button at a horizontal position where
the corresponding vertical curve coordinate is within the original plot range. This requires
some knowledge and reasoning about the curve.
• Independent of the follow mode status you may use the Center on origin button .
• Select the Set>Plot Range or the Set>Plot Region command, use the (_Reset_) button,
then leave the dialog.
• If available, double click on an embedded version of the original graph. This last option is
particularly convenient.
Restore the original graph by double clicking on the embedded graph.
Trace mode was lost because the embedded graph was produced before trace mode was turned
on. Switch trace mode on again to start looking for the polynomial’s zeros.
Switch trace mode on with , then move the square to the rightmost zero, as near as you
can get to the horizontal axis.
DERIVE displays the square coordinates as Cross: 1.62, 0.01688368. (Your numbers might be
different.) Using the left arrow key (æ) once moves the square to Cross: 1.6, -0.1512. You have
Kutzler & Kokol-Voljc: Introduction to DERIVE 5 31
not found a position at which the y-coordinate is zero, but you can say that the polynomial zero
must be between 1.6 and 1.62, probably being closer to 1.62. An obvious approach for getting
closer is magnification.
Zoom in using the Command Toolbar’s Zoom in button (left picture), then move the
square closer to the rightmost zero.
Now you get Cross: 1.62, 0.01688368 and Cross: 1.61, -0.06817304 (or whatever numbers you
obtain) hence the polynomial zero is between 1.61 and 1.62.
Restore the original scale factors by zooming out with the Zoom out button .
Find an approximation for the leftmost zero by moving the square to it.
When you don’t like the change of the aspect ratio such is in the above pictures, you can easily
restore it. You will learn how to do this in Chapter 4.
Insert a text object documenting the method and result of your findings.
Insert a new text object and enter the following text (use the numbers you found):
Search for more zeros: Make the plot window active, then move the square to the uncertain
middle section.
You will find that there is one zero between -0.62 and -0.6. Another zero seems to be at exactly
x=-0.5. To obtain a picture with intersections of the graph, magnify again.
Zoom in, this time using the Zoom in button twice.
It becomes obvious that there are two zeros. Continue to magnify the graph.
Zooming in once more with lets the square leave the plot window because follow mode is
switched off (left picture). The very useful Center on cross button shifts the plot range
so that the square/cross is in the center of the new plot image.
Kutzler & Kokol-Voljc: Introduction to DERIVE 5 33
Now the change of sign happens between x=-0.62 and x=-0.618. Produce a graph with steeper
intersections to get a more accurate answer.
Zoom in vertically only, using the Zoom vertical in button .
A highly recommended tool is the Set range with box button , which allows to choose a crop
rectangle graphically.
Prepare for choosing a crop rectangle by using the Set range with box button .
The mouse cursor turns into a crosshair.
Choose a crop rectangle: Click and hold the left mouse button at the top left corner of the
desired area. Drag the mouse down and to the right until the box encloses the desired area.
The Set 2D-Plot Range dialog box is displayed, reflecting the numerical equivalents of the
choices you just made with the mouse. This dialog box could be obtained in the first place using
the Set>Plot Range command. But a graphical choice of the plot range is often more convenient.
34 Chapter 2: Documenting Polynomial Zero Finding
Notice the complicated numbers below the tick marks (your numbers are likely to be different)
and in the Status Bar scale factors. This is caused by the graphical box selection.
Zoom in again using the Set range with box button .
It is helpful to edit the suggested numerical values to the nearest simple values. Start by
overwriting the highlighted value of the input field for the Horizontal Minimum. Then use the tab
key (ÿ) to make the next input field active. Enter the following values.
-0.7 (ÿ) -0.4 (ÿ) 6 (ÿ)
Make the values for the Intervals fields fit to the difference of the values for the Minimum and
the Maximum fields. For example, 6 intervals for a horizontal range of length 0.3 (= difference of
-0.7 and -0.4) ensures nice numbers below the tick marks.
-0.01 (ÿ) 0.01 (ÿ) 4 (_OK_)
Kutzler & Kokol-Voljc: Introduction to DERIVE 5 35
Use the trace mode square to find approximations of the two zeros.
The left zero lies between -0.6181818 and -0.6174242; and the other zero probably is at -0.5. All
the above work now should be documented in the algebra window’s worksheet by embedding
the graph and adding an appropriate text object.
From the 2D-plot window select the File>Embed command, then switch to the algebra
window and resize the embedded plot appropriately.
Insert a new text object documenting the method and result of your findings:
Close the plot window, then open the algebra window to full size.
Close the plot window by clicking the left mouse button on the button that is located in
the window’s upper right corner. Open the algebra window to full size by clicking on the
button, which is located left of the algebra window’s button.
Next compute the zeros by solving the corresponding polynomial equation. Before doing so,
enter an appropriate textual description of your approach.
36 Chapter 2: Documenting Polynomial Zero Finding
Enter the text: “Next we compute the polynomial’s zeros by applying the SOLVE function
to the corresponding polynomial equation.”
For solving this equation either use the Solve>Expression command or the corresponding
toolbar button .
Prepare for solving the equation by applying the Solve Expression button .
Enter the text “Expression #4 gives the four exact zeros of the polynomial.”
In order to compare these results with what you found graphically, approximate expression #4.
Before doing so, again add a textual description of your approach.
Enter the text “We approximate #4 so that we can compare it with what we found
graphically.”
Approximate expression #4 by first highlighting it, and then applying the Approximate
button .
To turn this worksheet into a good piece of mathematical documentation, do some more editing,
then print and save it. First, add a signature documenting author(s) and date.
Switch the Formatting Toolbar on using Window>View Toolbars>Formatting Toolbar.
All fields and buttons are dimmed as long as there is no text object in editing mode.
Add a text object at the end of the worksheet using . Choose a special format for the
signature: In the Formatting Toolbar change the font size to 8 points and click on the
Right Justify button .
Next change the topmost text object into an attention-catching title line.
Highlight the first text object’s contents using the usual text processing techniques.
Print preview offers various options including a button for zooming in.
Zoom in with (_Zoom_In_).
The magnifying glass shaped cursor in the upper right quarter of the page indicates that an
alternative to using the (_Zoom_In_) button is to click with the left mouse button.
Kutzler & Kokol-Voljc: Introduction to DERIVE 5 39
Make the expressions slightly larger. Change the expression font size via the Options>Printing
submenu.
Prepare for changing the expression font size: Close the print preview window with
(_Close_), then select the command Options>Printing>Expression Layout.
Here you can select the expression font size, choose between Regular and Bold font, and control
the printing of Annotations and Computation Times. (By default neither is printed).
Change the font size to 11 points, then close the dialog with (_OK_).
Apply again the File>Print Preview command, this time zooming in twice.
Prepare for printing the document using print preview’s (_Print_) button.
Make sure that the printer is properly connected, switched on, and set. In the Printing dialog box
you can change the printer or the printing properties, change the print range from All to either a
range of pages or the highlighted expressions, or change the number of copies from the default 1
to the number you want.
Send the document to the printer with (_OK_).
Kutzler & Kokol-Voljc: Introduction to DERIVE 5 41
Saving the worksheet preserves your work for later use or modification.
Save the worksheet by selecting the File>Save As command.
DERIVE suggests storing the file in the subdirectory Math. You may choose a different directory
by selecting one from the selection menu that is offered for the Save in field.
Accept the suggestion and enter the file name chapter02 in the File name input field.
Close the dialog with (_Save_).
Notice the Title Bar. Previously there was [Algebra 1] as the indication of an unnamed algebra
worksheet. Now there is [Algebra 1 chapter02.dfw], indicating an algebra worksheet with name
chapter02.dfw. The suffix .dfw is the default that is chosen when you do not specify a suffix as
part of the filename.
Exit from DERIVE.
42 Chapter 2: Documenting Polynomial Zero Finding
Summary
Algebra Window
or Solve>Expression or (Ctrl)+(ª)+(E) ............................................................. solve equation
............................................................................................ open 2D-plot window or switch to one
........................................................................................................... right justify highlighted object
.................................................................................................................... center highlighted object
File>Save As .......................................................................................... save worksheet using a name
File>Print Preview ............................................................................................................ print preview
Edit>Derive Object or double-click left or right of expr. ...................... edit highlighted expression
Options>Display>Cross .......................................................... change appearance of graphics cross
Options>Printing>Expression Layout ...................................................... format expression layout
Window>New 2D plot Window ................................................................. open new 2D-plot window
double-click left mouse button on embedded plot ................. open embedded plot in plot window
2D-plot Window
or Insert>Plot ...................................................................................... plot highlighted expression
or Options>Trace Plots or (F3) ......................................................................... toggle trace mode
................................................................................................................. center plot region on cross
................................................................................................................ center plot region on origin
or (F9) ...................................................................................................................................... zoom in
or (F10) ................................................................................................................................. zoom out
or (F7) .................................................................................................................... zoom in vertically
.................................................................................................. graphically choose a crop rectangle
File>Embed ....................................................................... copy plot window into algebra worksheet
Set>Plot Range ................................................................................................... set plot range borders
Options>Follow Cross ........................................................................................... toggle follow mode
(Æ), (¼),(æ), (½) ................................................. move cross one pixel (one dot) on the screen
(Ctrl)+(Æ), (Ctrl)+(¼), (Ctrl)+(æ), (Ctrl)+(½) ......................... move cross several pixels
(Home) ............................................................................................. move cross to plot window center
All Windows
Window>Tile Vertically ................. arrange windows as right-left split (active window on the left)
Index
............................................................. 124 (Esc) ........................................ 5, 13, 16, 243
.............................................................. 35 (F2) .................................................... 11, 126
.............................................................. 35 (F3) ........................................ 28, 36, 49, 122
5x – 6 = 2x + 15 ......................................... 63 (F4) ...................................................... 49, 64
z = x 2 − y 2 ............................................. 117 (F9) .......................................................... 128
z = cos( x ⋅ y ) ................................. 125, 132 (Home) ........................................................ 28
∨ ........................................................... 67, 75 (PgDn) ...................................................... 119
∧ ................................................................. 75 (PgUp) ...................................................... 119
° ................................................................ 147 (PrtSc) .................................................... 201
:∈ ...................................................... 137, 138 (ÿ) ...................................................... 11, 34
:= .......................................... 66, 96, 138, 167 (Insert expression) ............................. 49, 64
∞ ............................................................... 138 .dfw ............................................................. 41
↓ ............................................................... 161 2:1 ............................................................... 56
(¢) ..................................................... 4, 106 2D-plot Window button ..................... 25
(¼) .................................. 6, 28, 29, 118, 209 3D-plot window button ..................... 117
(½) .................................. 6, 28, 29, 118, 209
(ª)+(¼) .......................................... 45, 121 A
(ª)+(½) .......................................... 46, 121 abort computation .................................... 90
(ª)+(Æ) .......................................... 46, 121 absolute value function .... 74, 139, 154, 198
(ª)+(æ) .......................................... 46, 121 accuracy ..................................................... 86
(Æ) ......................................... 5, 28, 29, 118 activate window ........................................ 26
(æ) ......................................... 5, 28, 29, 118 aggressive simplification ....................... 151
(Alt)+(PrtSc) ...................................... 201 algebra window ..................................... 3, 25
(Ctrl)+(¢) .............................. 11, 64, 106 Algebra Window button .................... 26
(Ctrl)+(¼) ............................................ 28 algebraic equation .................................. 232
(Ctrl)+(½) ............................................ 28 algebraic representation .......................... 24
(Ctrl)+(ª)+(¼) ................................... 53 Algebraically radio button ....................... 91
(Ctrl)+(ª)+(½) ................................... 53 algebra-state variable ................... 66, 68, 84
(Ctrl)+(ª)+(M) ................................... 201 algorithmic limitations ............................. 87
(Ctrl)+(Æ) ...................................... 28, 29 aliasing ..................................................... 133
(Ctrl)+(æ) ...................................... 28, 29 Alpha .......................................................... 12
(Ctrl)+(C) ...................................... 54, 201 alternative to Edit>Derive Object ........... 78
(Ctrl)+(E) .............................................. 20 analytic geometry ................................... 185
(Ctrl)+(P) .............................................. 20 AND .............................................................. 75
(Ctrl)+(Q) .............................................. 11 ANGLE ........................................................ 155
(Ctrl)+(V) .............................................. 54 angle between two vectors .................... 154
(Ctrl)+(X) ...................................... 54, 201 Angular unit ............................................ 148
(Del) ........................................................... 5 annotation ................................................ 105
270 Index
M O
magnify .............................................. 31, 119 observation point .................................... 122
Magnify plot button .......... 119, 131, 240 odd multiples ........................................... 142
Math file .................................................. 188 ODE1.MTH ............................................... 216
Math Symbol Toolbar ............................ 3, 5 OLE Objects ............................................ 243
mathematical document .......................... 23 one-digit odd integers ............................. 169
mathematical identities ......................... 233 one-letter variables ................................. 245
matrix ............................... 100, 110, 161, 256 one-row matrices .................................... 190
matrix extraction ................................... 167 online help ............................................... 206
matrix inverse ......................................... 164 Open button ...................................... 191
matrix multiplication ............................. 163 open menu ................................................. 13
Matrix Operations .................................. 166 open window to full size .......................... 35
maximum color ...................................... 124 optimization ............................................... 77
memory requested ................................. 263 Options>Approximate BeforePlotting 103
menu .......................................................... 12 Options>Autoscale New Plots ..... 118, 128
Menu Bar ..................................................... 3 Options>Change Plot Color ........... 99, 173
MIDPOINT ................................................... 187 Options>Display ..................................... 128
million ........................................................ 86 Options>Display>Alignment of New O . 17
minimal restriction ................................. 137 Options>Display>Axes .................. 108, 141
minimum color ....................................... 124 Options>Display>Cross .......................... 28
Mode field ................................................. 84 Options>Display>Font of All Express .. 19
Kutzler & Kokol-Voljc: Introduction to DERIVE 5 275
[email protected]
©2000 Texas Instrumentso www.ti.com/calc DERIVE/OM/1L3/A