Download as pdf or txt
Download as pdf or txt
You are on page 1of 53

Mathematica by Example 6th Edition

Martha L. Abell
Visit to download the full and correct content document:
https://ebookmeta.com/product/mathematica-by-example-6th-edition-martha-l-abell/
More products digital (pdf, epub, mobi) instant
download maybe you interests ...

Mathematica by Example 5th Edition Martha L. Abell &


James P. Braselton

https://ebookmeta.com/product/mathematica-by-example-5th-edition-
martha-l-abell-james-p-braselton/

Differential Equations with Mathematica 5th Edition


Martha L. Abell

https://ebookmeta.com/product/differential-equations-with-
mathematica-5th-edition-martha-l-abell/

Oracle PL/SQL by Example, 6th Edition Benjamin


Rosenzweig

https://ebookmeta.com/product/oracle-pl-sql-by-example-6th-
edition-benjamin-rosenzweig/

Engineering Mathematics by Example Robert Sobot

https://ebookmeta.com/product/engineering-mathematics-by-example-
robert-sobot/
Operator Theory by Example 1st Edition Stephan Ramon
Garcia

https://ebookmeta.com/product/operator-theory-by-example-1st-
edition-stephan-ramon-garcia/

The Sociopath Next Door by Martha Stout Instaread

https://ebookmeta.com/product/the-sociopath-next-door-by-martha-
stout-instaread/

Summary of Lilac Girls by Martha Hall Kelly Instaread

https://ebookmeta.com/product/summary-of-lilac-girls-by-martha-
hall-kelly-instaread/

Azure Data Factory by Example: Practical Implementation


for Data Engineers Swinbank

https://ebookmeta.com/product/azure-data-factory-by-example-
practical-implementation-for-data-engineers-swinbank/

Responsive Web Design by Example Beginner s Guide 2nd


Edition Thoriq Firdaus

https://ebookmeta.com/product/responsive-web-design-by-example-
beginner-s-guide-2nd-edition-thoriq-firdaus/
Mathematica by Example
Mathematica by
Example
Sixth Edition

Martha L. Abell
Georgia Southern University
Department of Mathematical Sciences
Statesboro, GA, United States

James P. Braselton
Georgia Southern University
Department of Mathematical Sciences
Statesboro, GA, United States
Academic Press is an imprint of Elsevier
125 London Wall, London EC2Y 5AS, United Kingdom
525 B Street, Suite 1650, San Diego, CA 92101, United States
50 Hampshire Street, 5th Floor, Cambridge, MA 02139, United States
The Boulevard, Langford Lane, Kidlington, Oxford OX5 1GB, United Kingdom
Copyright © 2022 Elsevier Inc. All rights reserved.
No part of this publication may be reproduced or transmitted in any form or by any means, electronic or
mechanical, including photocopying, recording, or any information storage and retrieval system, without
permission in writing from the publisher. Details on how to seek permission, further information about the
Publisher’s permissions policies and our arrangements with organizations such as the Copyright Clearance
Center and the Copyright Licensing Agency, can be found at our website: www.elsevier.com/permissions.
This book and the individual contributions contained in it are protected under copyright by the Publisher (other
than as may be noted herein).
Notices
Knowledge and best practice in this field are constantly changing. As new research and experience broaden our
understanding, changes in research methods, professional practices, or medical treatment may become
necessary.
Practitioners and researchers must always rely on their own experience and knowledge in evaluating and using
any information, methods, compounds, or experiments described herein. In using such information or methods
they should be mindful of their own safety and the safety of others, including parties for whom they have a
professional responsibility.
To the fullest extent of the law, neither the Publisher nor the authors, contributors, or editors, assume any liability
for any injury and/or damage to persons or property as a matter of products liability, negligence or otherwise, or
from any use or operation of any methods, products, instructions, or ideas contained in the material herein.

Library of Congress Cataloging-in-Publication Data


A catalog record for this book is available from the Library of Congress

British Library Cataloguing-in-Publication Data


A catalogue record for this book is available from the British Library

ISBN: 978-0-12-824163-9

For information on all Academic Press publications


visit our website at https://www.elsevier.com/books-and-journals

Publisher: Katey Birtcher


Editorial Project Manager: Madeline Jones/Sara Valentino
Publishing Services Manager: Shereen Jameel
Senior Project Manager: Karthikeyan Murthy
Designer: Mark Rogers
Typeset by VTeX
Printed in the United States of America
Last digit is the print number: 9 8 7 6 5 4 3 2 1
Contents

Preface ix 2.3.5 Comments 87


2.4 Solving equations 89
1. Getting started 2.4.1 Exact solutions of
equations 89
1.1 Introduction to 2.4.2 Approximate solutions
Mathematica 1 of equations 98
1.1.1 Getting started with
Mathematica 2
Preview 15
3. Calculus
Basic rules of 3.1 Limits and continuity 105
Mathematica syntax 15 3.1.1 Using graphs and tables
1.2 Getting help from to predict limits 105
Mathematica 16 3.1.2 Computing limits 108
Mathematica help 22 3.1.3 One-sided limits 111
3.1.4 Continuity 112
2. Basic operations on 3.2 Differential calculus 116
3.2.1 Definition of the
numbers, expressions, derivative 116
and functions 3.2.2 Calculating derivatives 122
2.1 Numerical calculations and 3.2.3 Implicit differentiation 126
built-in functions 27 3.2.4 Tangent lines 128
2.1.1 Numerical calculations 27 3.2.5 The first derivative test
2.1.2 Built-in constants 30 and second derivative
2.1.3 Built-in functions 30 test 137
A word of caution 34 3.2.6 Applied max/min
2.2 Expressions and functions: problems 146
elementary algebra 35 3.2.7 Antidifferentiation 155
2.2.1 Basic algebraic 3.3 Integral calculus 159
operations on 3.3.1 Area 159
expressions 35 3.3.2 The definite integral 165
2.2.2 Naming and evaluating 3.3.3 Approximating definite
expressions 39 integrals 170
2.2.3 Defining and evaluating 3.3.4 Area 171
functions 41 3.3.5 Arc length 177
2.3 Graphing functions, 3.3.6 Solids of revolution 182
expressions, and equations 46 3.4 Infinite sequences and series 194
2.3.1 Functions of a single 3.4.1 Introduction to
variable 47 sequences 194
2.3.2 Parametric and polar 3.4.2 Introduction to infinite
plots in two dimensions 60 series 199
2.3.3 Three-dimensional and 3.4.3 Convergence tests 201
contour plots; graphing 3.4.4 Alternating series 205
equations 68 3.4.5 Power series 207
2.3.4 Parametric curves and 3.4.6 Taylor and Maclaurin
surfaces in space 77 series 211

v
vi Contents

3.4.7 Taylor’s theorem 215 5.3.4 Eigenvalues and


3.4.8 Other series 226 eigenvectors 350
3.5 Multivariable calculus 227 5.3.5 Jordan canonical form 353
3.5.1 Limits of functions of 5.3.6 The QR Method 356
two variables 228 5.4 Maxima and minima using
3.5.2 Partial and directional linear programming 359
derivatives 231 5.4.1 The standard form of a
3.5.3 Iterated integrals 246 linear programming
problem 359
4. Introduction to lists and 5.4.2 The dual problem 360
tables 5.5 Selected topics from vector
calculus 367
4.1 Lists and list operations 257 5.5.1 Vector-valued functions 367
4.1.1 Defining lists 257 5.5.2 Line integrals 378
4.1.2 Plotting lists of points 262 5.5.3 Surface integrals 381
4.2 Manipulating lists: more on 5.5.4 A note on
Part and Map 276 nonorientability 385
4.2.1 More on graphing lists; 5.5.5 More on tangents,
graphing lists of points normals, and curvature
using graphics in R3 398
primitives 284
4.2.2 Miscellaneous list
operations 288
6. Applications related to
4.3 Other applications 288 ordinary and partial
4.3.1 Approximating lists differential equations
with functions 288
4.3.2 Introduction to Fourier 6.1 First-order differential
series 292 equations 409
6.1.1 Separable equations 409
6.1.2 Linear equations 416
5. Matrices and vectors: 6.1.3 Nonlinear equations 424
topics from linear algebra 6.1.4 Numerical methods 427
and vector calculus 6.2 Second-order linear
equations 431
5.1 Nested lists: introduction to
6.2.1 Basic theory 431
matrices, vectors, and matrix
6.2.2 Constant coefficients 431
operations 307
6.2.3 Undetermined
5.1.1 Defining nested lists,
coefficients 438
matrices, and vectors 307
6.2.4 Variation of parameters 444
5.1.2 Extracting elements of
matrices 314 6.3 Higher-order linear
5.1.3 Basic computations equations 446
with matrices 316 6.3.1 Basic theory 446
5.1.4 Basic computations 6.3.2 Constant coefficients 447
with vectors 321 6.3.3 Undetermined
5.2 Linear systems of equations 329 coefficients 450
5.2.1 Calculating solutions of 6.3.4 Variation of parameters 453
linear systems of 6.3.5 Laplace transform
equations 329 methods 456
5.2.2 Gauss–Jordan 6.3.6 Nonlinear higher-order
elimination 334 equations 466
5.3 Selected topics from linear 6.4 Systems of equations 466
algebra 341 6.4.1 Linear systems 466
5.3.1 Fundamental subspaces 6.4.2 Nonhomogeneous
associated with linear systems 480
matrices 341 6.4.3 Nonlinear systems 484
5.3.2 The Gram–Schmidt 6.4.4 Linearization 487
process 343 6.5 Some partial differential
5.3.3 Linear transformations 347 equations 508
Contents vii

6.5.1 The one-dimensional Bibliography 525


wave equation 508 Index 527
6.5.2 The two-dimensional
wave equation 513
Preface

Mathematica by Example bridges the gap that exists between the very elementary handbooks
available on Mathematica and those reference books written for the advanced Mathematica
users. Mathematica by Example is an appropriate reference for all users of Mathematica and,
in particular, for beginning users such as students, instructors, engineers, business people, and
other professionals first learning to use Mathematica. Mathematica by Example introduces the
very basic commands and includes typical examples of applications of these commands. In
addition, the text includes commands useful in areas, such as calculus, linear algebra, business
mathematics, ordinary and partial differential equations, and graphics. In all cases, however,
examples follow the introduction of new commands. Readers from the most elementary to
advanced levels will find that the range of topics covered addresses their needs.
Taking advantage of Version 12 of Mathematica, Mathematica by Example, Sixth Edition,
introduces the fundamental concepts of Mathematica to solve typical problems of interest
to students, instructors, and scientists. Features that make Mathematica by Example, Sixth
Edition, as easy to use as a reference and as useful as possible for the beginner include the
following:
1. Version 12 Compatibility. All examples illustrated in Mathematica by Example, Sixth
Edition, were completed using Version 12 of Mathematica. Although many computations
can continue to be carried out with earlier versions of Mathematica, we have taken advan-
tage of the new features in Version 12, as much as possible.
2. Detailed Table of Contents. The table of contents includes all chapter, section, and sub-
section headings. Along with the comprehensive index, we hope that users will be able to
locate information quickly and easily.
3. Examples Designed for the Beginner. As the powers of computers increased and Mathe-
matica’s capabilities increased, so did Mathematica by Example. We hope that this edition
of the text helps return it to its original goal of helping to fulfill the needs of those begin-
ning to use Mathematica.
4. Comprehensive Index. In the index, mathematical examples and applications are listed
by topic, or name, as well as commands, along with frequently used options; particular
mathematical examples and examples illustrating how to use frequently used commands
are easy to locate. In addition, commands in the index are cross-referenced with frequently
used options. Functions available in the various packages are cross-referenced both by
package and alphabetically.
5. As technology has changed, so has the publication of a book. When Mathematica by
Example was first published in 1992, it was published as a single-color book. Conse-
quently, at that time, it was important to use various gray levels in plots to help distinguish
them. Now, many of you will download an electronic copy of the text and print it on a
high-resolution color printer with high-quality paper. The result will be outstanding. To
illustrate, we have chosen colors from various universities and colleges throughout the
United States. We tried to use the colors from at least one university or college in each
state. Sometimes this was difficult to do, because obtaining the color codes from some
colleges was easier than from others. Of course, in the print version of the text, all images
will still be in various levels of gray.

ix
x Preface

We began Mathematica by Example in 1990, and the first edition was published in 1991.
Back then, we were on top of the world using Macintosh IIcx’s with 8 megs of RAM and 40
meg hard drives. We tried to choose examples that we thought would be relevant to beginning
users—typically in the context of mathematics encountered in the first two years of the under-
graduate curriculum at typical universities in the United States. Those examples could also
be carried out by Mathematica in a timely manner on a computer as powerful as a Macintosh
IIcx.
Work on the Sixth Edition involved working with machines with such vast memory, and so
fast that we could not believe that computers would be faster, but they were almost certainly
bound to be nearly obsolete by this reading time. The examples presented in Mathematica by
Example continue to be the ones that we think are most similar to the problems encountered
by beginning users, and are presented in the context of someone familiar with mathematics
typically encountered by undergraduates. As Mathematica grew, so did Mathematica by Ex-
ample, therefore we decided to include more advanced topics that were interesting to us. This
revision of Mathematica by Example attempts to return the text to its original goal. Conse-
quently, we have shortened the text by deleting more advanced topics that were typically not
intended for or expected by the original audience. The other major change in the Sixth Edition
is that the Mathematica notebooks that accompany the text have been completely reworked
as well as renumbered to coincide with the numbering in the text, which we hope will make
cross-referencing much easier for the readers.
Also, be sure to investigate, use, and support Wolfram’s MathWorld—simply an amazing
web resource for mathematics, Mathematica, and other information.
http://store.wolfram.com/catalog/books/

Martha L. Abell
James P. Braselton
Statesboro, GA, United States
April 2021
Chapter 1

Getting started
1.1 Introduction to Mathematica
Mathematica, first released in 1988 by Wolfram Research, Inc.,
http://www.wolfram.com/,

is a system for doing mathematics on a computer. Mathematica combines symbolic manip-


ulation, numerical mathematics, outstanding graphics, and a sophisticated programming lan-
guage. Because of its versatility, Mathematica has established itself as the computer algebra
system of choice for many computer users. Among the over 1,000,000 users of Mathemat-
ica, 28% are engineers, 21% are computer scientists, 20% are physical scientists, 12% are
mathematical scientists, and 12% are business, social, and life scientists. Two-thirds of the
users are in industry and government with a small (8%) but growing number of student users.
However, due to its special nature and sophistication, beginning users need to be aware of
the special syntax required to make Mathematica perform in the way intended. You will find
that calculations and sequences of calculations most frequently used by beginning users are
discussed in detail along with many typical examples. In addition, the comprehensive index
not only lists a variety of topics but also cross-references commands with frequently used
options. Mathematica by Example serves as a valuable tool and reference to the beginning
user of Mathematica as well as to the more sophisticated user, with specialized needs.
For information, including purchasing information, about Mathematica, point your
browser to
www.wolfram.com

A note regarding different versions of Mathematica


With the release of Version 12.1 of Mathematica, many new functions and features have been
added to Mathematica. We encourage users of earlier versions of Mathematica to update to
Version 12.1 as soon as they can. All examples in Mathematica by Example, sixth edition,
were completed with Version 12.1. In most cases, the same results will be obtained if you
are using Version 10.4 or later, although the appearance of your results will almost certainly
differ from that presented here. If you are using an earlier or later version of Mathematica,
your results may not appear in a form identical to those found in this book: some commands
found in Version 12 are not available in earlier versions of Mathematica; in later versions
some commands will certainly be changed, new commands added, and obsolete commands
removed. For details regarding these changes, please refer to the Documentation Center.
You can determine the version of Mathematica you are using during a given Mathematica
session by entering either the command $Version or the command $VersionNumber. In this
text, we assume that Mathematica has been correctly installed on the computer you are using.
If you need to install Mathematica on your computer, please refer to the documentation that
came with the Mathematica software package.
Online help for upgrading older versions of Mathematica and installing new versions of
Mathematica is available at the Wolfram Research, Inc. listed above.
Details regarding what is different in Mathematica 12.1 from previous versions of Math-
ematica can be found at
http://www.wolfram.com/mathematica/new-in-12/

Mathematica by Example. https://doi.org/10.1016/B978-0-12-824163-9.00006-9


Copyright © 2022 Elsevier Inc. All rights reserved. 1
2 Mathematica by Example

Also, when you go to the Wolfram Documentation center (under Help in the Mathematica
menu), you can choose Wolfram Documentation to see the major differences. Also, the
upper right hand corner of the main help page for each function will tell you if it is new in
Version 12.1 or has been updated in Version 12.1.

1.1.1 Getting started with Mathematica


We begin by introducing the essentials of Mathematica. The examples presented are taken
from algebra, trigonometry, and calculus topics that most readers are familiar with to assist
you in becoming acquainted with the Mathematica computer algebra system.
We assume that Mathematica has been correctly installed on the computer you are using.
If you need to install Mathematica on your computer, please refer to the documentation that
came with the Mathematica software package.
Start Mathematica on your computer system. Using Windows or Macintosh mouse or
keyboard commands, start the Mathematica program by selecting the Mathematica icon or an
existing Mathematica document (or notebook) and then clicking, double-clicking, or right-
clicking and selecting Open on the icon.

If you start Mathematica by selecting the Mathematica icon, Mathematica’s startup win-
dow, “welcome screen,” is displayed.
From the startup window, you can perform a variety of actions, such as creating a new
notebook. For example, selecting New Document generates a new Mathematica notebook.
Getting started Chapter | 1 3

Mathematica’s online help facilities are spectacular. For beginning users, one of the more
convenient features are the various Palettes that are available. The Palettes provide a variety
of fill-in-the-blank templates to perform a wide variety of action. To access a Palette, go to
the Mathematica menu, select Palettes, and then select a given Palette. The following screen
shots show the Basic Math Assistant and Classroom Assistant palettes:
4 Mathematica by Example

If you go further into the submenu and select Other..., you will find the Algebraic Ma-
nipulation palette, a slightly different Basic Math Input palette from that mentioned above,
The standard Mathematica and the Basic Typesetting palette.
palettes are summarized in
Fig. 1.5.

When you start typing in the new notebook created above, the thin black horizontal line near
the top of the window is replaced by what you type.

Once Mathematica has been started, computations can be carried out immediately. Mathe-
matica commands are typed and the black horizontal line is replaced by the command, which
is then evaluated by pressing Enter. Note that pressing Enter or Shift-Return evaluates
Getting started Chapter | 1 5

FIGURE 1.1 A two-dimensional plot.

commands, and pressing Return yields a new line. Output is displayed below input. We il- With some operating systems,
lustrate some of the typical steps involved in working with Mathematica in the calculations Return evaluates commands
that follow. In each case, we type the command and press Enter. Mathematica evaluates the and Shift-Return yields a
command, displays the result, and inserts a new horizontal line after the result. For example, new line.
typing N[, then pressing the π key on the Basic Math Input palette, followed by typing ,50]
and pressing the enter key

N[π, 50]
3.1415926535897932384626433832795028841971693993751

returns a 50-digit approximation of π. Note that both π and Pi represent the mathematical
constant π, so entering N[Pi,50] returns the same result. For basic computations, enter them
into Mathematica in the same way as you would with most scientific calculators.
The next calculation can then be typed and entered in the same manner as the first. For
example, entering

Plot[{Sin[x], 2Cos[4x]}, {x, 0, 3π}]

graphs the functions y = sin x and y = 2 cos 4x on the interval [0, 3π] shown in Fig. 1.1.
With Mathematica 12, you can easily add explanation to the graphic: go to Graphics in
the main menu, followed by Drawings Tools. Alternatively, select a graphic by clicking on
it and then typing the command strokes ctrl-t to call the Drawing Tools palette. You can use
the Drawing Tools palette
6 Mathematica by Example

to quickly enhance a graphic. In this case, we use the arrow button and “T” (text) button twice
to identify each curve.
The various elements can be modified by clicking on them and moving and/or typing as
needed. In particular, notice the “cross-hair” button in the second row.
Getting started Chapter | 1 7

FIGURE 1.2 Using Drawing Tools to enhance a graphic.

Use this button to identify coordinates in a plot. After selecting the graphic, selecting the
button, then moving the cursor within the graphic, you will see the coordinates.

With Mathematica 12, you can use Manipulate to illustrate how changing various parameters
affects a given function or functions. With the following command, we illustrate how a and
b affect the period of sine and cosine and c affects the amplitude of the cosine function, as
shown in Fig. 1.2:

Manipulate[Plot[{Sin[2Pi/ax], cCos[2Pi/bx]}, {x, 0, 4π}, PlotRange → {−4π/2, 4π/2},

AspectRatio → 1], {{a, 2Pi, “Period for Sine”}, .1, 4Pi},


8 Mathematica by Example

{{b, 2Pi, “Period for Cosine”}, .1, 4Pi},

{{d, 1, “Amplitude for Sine”}, .1, 5}, {{c, 1, “Amplitude for Cosine”}, .1, 5}]

Use the slide bars to adjust the values of the parameters or click on the + button to expand
the options to enter values explicitly or generate an animation to illustrate how changing the
parameter values changes the problem.
Getting started Chapter | 1 9

Use Plot3D to generate basic three-dimensional plots. Entering

Plot3D[Sin[x + Cos[y]], {x, 0, 4π}, {y, 0, 4π}, Ticks → None, Boxed → False,

Axes → None]

graphs the function z = sin(x + cos(y)) for 0 ≤ x ≤ 4π, 0 ≤ y ≤ 4π. Later we will learn other
ways of changing the viewing perspective. For now, we note that by selecting the graphic, you
can often use the cursor to move the graphic to the desired perspective or viewing angle, as
illustrated in Fig. 1.3. Notice that every
To print three-dimensional objects with your 3D printer or a 3D printing service, you need Mathematica command
to generate an STL file. To create an STL file, an object must be orientable. This basically begins with capital letters and
means that a three-dimensional object has an inside and an outside. Objects like the Möbius the argument is enclosed by
strip, Klein bottle, and the projective plane are not orientable, so printing the likenesses of square brackets [...].
them can be challenging. On the other hand, objects like spheres, toruses, and so on are
orientable.
In the case of the previous plot, it has a top and a bottom but neither an inside nor an
outside. With Mathematica 12, provided that an object is orientable, you can use Printout3D
to generate an STL object and print it on either your own three-dimensional printer or have it
printed by one of the many services that offer three-dimensional printing services.
10 Mathematica by Example

FIGURE 1.3 On the left, a three-dimensional plot. On the right, select the bounding box and use the cursor to move
the graphic to the desired perspective.

For the previous example, there are multiple ways of proceeding. We also illustrate how
to use Mathematica’s extensive help facilities. From the Welcome Screen, select Documen-
tation,
Getting started Chapter | 1 11

and then—at the bottom of the screen—select New Features. Scroll down to the area labeled
Geometry followed by 3D Printing in the pop-up submenu.

We see that there are two Plot3D options, ThickSurface and FilledSurface, that will be able
to generate STL files. Both approaches are illustrated as follows (and illustrated in Fig. 1.4):

p1 = Plot3D[Sin[x + Cos[y]], {x, 0, 4π}, {y, 0, 4π}, Ticks → None, Boxed → False,

Axes → None, PlotTheme → “ThickSurface”]

p2 = Plot3D[Sin[x + Cos[y]], {x, 0, 4π}, {y, 0, 4π}, Ticks → None, Boxed → False,

Axes → None, PlotTheme → “FilledSurface”]

Show[GraphicsRow[{p1, p2}]]

You can now save the results as an STL file, print the result to your 3D printer, or print to a
3D printing service with Print3D, as described above.
12 Mathematica by Example

FIGURE 1.4 On the left, a “thickened” three-dimensional plot. On the right, a “filled” three-dimensional plot.

Entering

Printout3D[p1, “p1.stl”]

saves p1 to an STL file.

On the other hand, the following command sends the result directly to Sculpteo:

Printout3D[p2, “Sculpteo”];

Your browser window will open, and you can adjust the image to your satisfaction before
ordering (or not). Many printing services are supported. You can also use these functions to
print directly to your own 3D printer.
Getting started Chapter | 1 13

Notice that all three of the following commands: To type x3 in Mathematica,


press the on the Basic
Math Input palette, type x in
the base position, and then
click (or tab to) the exponent
position and type 3. Use the
esc key, tab button, or mouse
to help you place or remove
the cursor from its current
location.

solve the equation x 3 − 2x + 1 = 0 for x. In the first case, the input and output are in Stan-
dardForm; in the second case, the input and output are in InputForm; and in the third case,
the input and output are in TraditionalForm.
To convert cells from one type to another, first select the cell, and then over the cursor to
the Mathematica menu,

select Cell, and then Convert To, as illustrated in the following screen shot.

You can change how input and output appear by using ConvertTo or by changing the default
settings. Moreover, you can determine the form of input/output by looking at the cell bracket
that contains the input/output. For example, though all three of the following commands look
 2π
different, all three evaluate 0 x 3 sin x dx:
14 Mathematica by Example

In the first calculation, the input is in Input Form and the output in Output Form; in the
second, the input and output are in Standard Form; and in the third, the input and output are
in TraditionalForm. Throughout Mathematica by Example, Sixth Edition, we display input
and output using Input Form (for input) or Standard Form (for output), unless otherwise
stated.
To enter code in Standard Form, we often take advantage of the Basic Math Input
palette, which is accessed by going to Palettes under the Mathematica menu and then select-
ing Basic Math Input.
Use the buttons to create templates and enter special characters. Alternatively, you can
access a complete list of typesetting shortcuts from Mathematica help at

guide/MathematicalTypesetting

in the Documentation Center.

Mathematica sessions are terminated by entering Quit[] or by selecting Quit from the File
menu, or by using a keyboard shortcut, such as command-Q, as with other applications. They
can be saved by referring to Save from the File menu.
Mathematica allows you to save notebooks (as well as combinations of cells) in a variety
of formats, in addition to the standard Mathematica format. From the Mathematica menu,
select Save As... and then select one of the following options:
Getting started Chapter | 1 15

Remark 1.1. Input and text regions in notebooks can be edited. Editing input can create a
notebook in which the mathematical output does not make sense in the sequence it appears. It
is also possible to simply go into a notebook and alter input without doing any recalculation.
This also creates misleading notebooks. Hence common sense and caution should be used
when editing the input regions of notebooks. Recalculating all commands in the notebook
will clarify any confusion.

Preview
For the Mathematica user to take full advantage of this powerful software, an understanding
of its syntax is imperative. The goal of Mathematica by Example is to introduce the reader to
the Mathematica commands and sequences of commands most frequently used by beginner
users of Mathematica. Although all of the rules of Mathematica syntax are far too numerous
to list here, knowledge of the following five rules equips the beginner with the necessary tools
to start using the Mathematica program with little trouble:

Basic rules of Mathematica syntax


1. The arguments of all functions (both built-in ones and ones that you define) are given in
brackets [...]. Parentheses (...) are used for grouping operations; vectors, matrices,
and lists are given in braces {...}; and double square brackets [[...]] are used for
indexing lists and tables.
2. Every word of a built-in Mathematica function begins with a capital letter.
3. Multiplication is represented by a ∗ or space between characters. Enter 2*x*y or 2x y to
evaluate 2xy not 2xy.
4. Powers are denoted by a ˆ. Enter (8*x^3)^(1/3) to evaluate (8x 3 )1/3 = 81/3 (x 3 )1/3 = 2x,
instead of 8x^1/3, which returns 8x/3.
5. Mathematica follows the order of operations exactly when entering input in one-line style.
(1 + x)1
Thus entering (1+x)^1/x returns = 1 + 1/x, whereas (1+x)^(1/x) returns (1 +
x
x) . Similarly, entering x^3x returns x · x = x 4 , whereas entering x^(3x) returns x 3x .
1/x 3

Remark 1.2. If you get no response or an incorrect response, you may have entered or
executed the command incorrectly. In some cases, the amount of memory allocated to
Mathematica can cause a crash. Like people, Mathematica is not perfect and errors can
occur.
Built-in Mathematica functions are color-coded: Once typed correctly, they will appear
in the color black. While being typed, unless you happen to type a built-in Mathematica
function, they will appear in blue; this indicates that your input is not entered correctly.
Purple characters indicate that the command is understood but not completed.
6. Many calculations and tasks encountered by beginner users can be completed by filling
in templates that are provided in the various palettes and accessed from the Mathematica
menu. The standard Mathematica palettes are shown in Fig. 1.5.
16 Mathematica by Example

FIGURE 1.5 The standard Mathematica palettes.

1.2 Getting help from Mathematica


Becoming competent with Mathematica can take a serious investment of time. Hopefully,
messages that result from syntax errors are viewed lightheartedly. Ideally, instead of becom-
ing frustrated, beginning Mathematica users will find it challenging and fun to locate the
Remember that built-in source of errors. Frequently, Mathematica’s error messages indicate where the error(s) has
Mathematica functions will (have) occurred. In this process, it is natural that you will become more proficient with Math-
be printed in black when ematica. In addition to Mathematica’s extensive help facilities, which are described next, a
typed correctly, blue if tremendous amount of information is available for all Mathematica users at the Wolfram
incorrectly or not typed Research website:
correctly so that they are
understood by Mathematica. http://www.wolfram.com/

Not only can you get significant Mathematica help at the Wolfram website; you can also
access outstanding mathematical resources at Wolfram’s Mathematica resources that are ac-
The exact URL for this cessed from the Welcome Screen by selecting Resources.
address will vary depending
upon your license number
and resources that your
license provides.
Getting started Chapter | 1 17

One way to obtain information about Mathematica commands and functions, including user-
defined functions, is the command ?. ?object gives a basic description and syntax infor-
mation of the Mathematica object object. ??object yields detailed information regarding
syntax and options for the object object. Equivalently, Information[object] yields the in-
formation on the Mathematica object object returned by both ?object and Options[object]
in addition to a list of attributes of object. Note that object may either be a user-defined
object or a built-in Mathematica object, such as a built-in function or sequence of com-
mands.

Example 1.1

Use ? and ?? to obtain information about the command Plot.

Solution. ?Plot uses basic information about the Plot function

whereas ??Plot includes basic information as well as the ability to show a list of options and
their default values associated with the command by clicking on Options.
18 Mathematica by Example

If you click on the >> button or the i symbol in the upper right corner, Mathematica returns
its extensive description of the function.
Options[command] returns a list of the available options associated with command along
with their current settings. This is quite useful when working with a Mathematica command,
such as ParametricPlot, which has many options. Notice that the default value (the value
automatically assumed by Mathematica) for each option is given in the output.

Example 1.2

Use Options to obtain a list of the options and their current settings for the command Parametric-
Plot.

Solution. The command Options[ParametricPlot] lists all the options and their current
settings for the command ParametricPlot.
Getting started Chapter | 1 19

The command Names["form"] lists all objects that match the pattern defined in form.
For example, Names["Plot"] returns Plot, Names["*Plot"] returns all objects that end with
the string Plot, and Names["Plot*"] lists all objects that begin with the string Plot, and
Names["*Plot*"] lists all objects that contain the string Plot.
Names["form", SpellingCorrection->True] finds those symbols that match the pattern de-
fined in form after a spelling correction.

Example 1.3

Create a list of all built-in functions beginning with the string Plot.

Solution. We use Names to find all objects that match the pattern Plot.

Next, we use Names to create a list of all built-in functions beginning with the string Plot.

In the following, after using ? to learn about the Mathematica function ColorData, we go
to the Mathematica menu and select Palettes followed by Color Schemes:

We are given a variety of choices. Using these choices is illustrated throughout Mathematica
by Example. Remember that on a
computer running
Mathematica or in the
electronic version of this
book, these graphics will
appear in color rather than in
black-and-white as seen in
the printed version of this
text.
Another random document with
no related content on Scribd:
“It must be because Di has such a vivid imagination,” continued her
sister musingly. “She sees what he might have been, what he probably was
meant to be——”
“And what he would still be,” put in Jellaby, “if only he would allow his
nice wife to influence him a little.”
“But John,” thought I, “in that is right. Let us be fair and admit his good
sides. A wife should never, under any circumstances, be allowed allowed
——”
Then, suddenly struck by the point of view, by the feminine idea
(Socialists have the minds of women) of a man’s being restored to what he
was primarily intended to be when he issued newly-made (as poets and
parsons would say) from the hands of his Maker through the manipulations
of Mrs. Menzies-Legh, my sense of humour played me a nasty trick (for I
would have liked to have heard more) and I found myself bursting into a
loud chuckle.
“What’s that?” exclaimed Jellaby, jumping up.
He soon saw what it was, for I immediately put my head round the edge
of the pillar.
They both stared at me in a strange alarm.
“Pray do not suppose,” I said, smiling reassuringly, “that I am a ghost.”
They stared without a word.
“You look as though I might be.”
They went on staring.
“I could not help, as I sat here, hearing what you were saying.”
They stared as speechless as though they had been caught killing
somebody.
“I really am not a spirit,” said I, getting up. “Look—do I look like one?”
And striking a match I playfully passed it backward and forward across
my features.
But its light at the same time showed me a flush of the most attractive
and vivid crimson on Frau von Eckthum’s face, colouring it from her hair to
her throat. She looked so beautiful like that, she who was ordinarily white,
that immediately lighting another I gazed at her in undisguised admiration.
“Pardon me,” I said, holding it very near her while her eyes, fixed on
mine, still seemed full of superstitious terror, “pardon me, but I must as a
man and a judge look at you.”
Jellaby, however, unforgivably ill-bred as ever, knocked the match out of
my hand and stamped on it. “Look here, Baron,” he said with unusual heat,
“I am very sorry—as sorry as you like, but you really mustn’t hold matches
in front of somebody’s face.”
“Why sorry, Jellaby?” I inquired mildly, for I was not going to have a
scene. “I do not mind about the match. I have more.”
“Sorry, of course, that you should have heard——”
“Every word, Jellaby,” said I.
“I tell you I’m frightfully sorry—I can’t tell you how sorry——”
“You may be assured,” said I, “that I will be discreet.”
He stared, with a face of stupid surprise.
“Discreet?” said he.
“Discreet, Jellaby. And it may be a relief to you to know,” I continued,
“that I heartily endorse your opinion.”
Jellaby’s mouth dropped open.
“Every word of it.”
Jellaby’s mouth remained open.
“Even the word bounder, which I did not understand but which, I
gathered from your previous remarks, is a very suitable expression.”
Jellaby’s mouth remained open.
I waited a moment, then seeing that it would not shut and that I had
really apparently shattered their nerves beyond readjustment by so suddenly
popping round on them in that ghostly place, I thought it best to change the
subject, promising myself to return to it another time.
So I picked up my hat and stick from the chair I had vacated—Jellaby
peered round the pillar at this piece of furniture with his unshut mouth still
denoting unaccountable shock—bowed, and offered my arm to Frau von
Eckthum.
“It is late,” said I with tender courtliness, “and I observe an official
approaching us with keys. If we do not return to the camp we shall have
your sister setting out, probably on angelic wings”—she started—“in search
of you. Let me, dear lady, conduct you back to her. Nay, nay, you need have
no fears—I really can keep a secret.”
With her eyes fixed on mine, and that strange look of perfect fright in
them, she got up slowly and put her hand on my proffered arm.
I led her away with careful tenderness.
Jellaby, I believe, followed in the distance.
CHAPTER XX

L IFE is a strange thing, and full of surprises. The day before, you think
you know what will happen on the morrow, and on the morrow you find
you did not. Light as you may the candle of your common sense, and
peer as you may by its shining into the future, if you see anything at all it
turns out to have been, after all, something else. We are surrounded by
tricks, by illusions, by fluidities. Even when the natural world behaves
pretty much as experience has led us to expect, the unnatural world, by
which I mean (and I say it is a fair description) human beings, does nothing
of the sort. My ripe conclusion, carefully weighed and unattackably mellow,
is that all one’s study, all one’s thought, all one’s experience, all one’s
philosophy, lead to this: that you cannot account for anything. Do you, my
friends, interrupt me here with a query? My answer to it is: Wait.
The morning after the occurrences just described I overslept myself, and
on emerging about ten o’clock in search of what I hoped would still be
breakfast I found the table tidily set out, the stove alight, and keeping coffee
warm, ham in slices on a dish, three eggs waiting to be transferred to an
expectant saucepan, and not a single caravaner in sight except Menzies-
Legh.
Him, of course, I now pitied. For to have a treacherous friend, and a
sister-in law of whom you are fond but who in her heart cannot endure you,
to be under the delusion that the one is sincere and the other loving, is to
become a fit object for pity; and since no one can at the same time both pity
and hate, I was not nearly so much annoyed as I otherwise would have been
at finding my glum-faced friend was to keep me company. Annoyed, did I
say? Why, I was not annoyed at all. For though I might pity I was also
secretly amused, and further, the feeling that I now had a little private
understanding with Frau von Eckthum exhilarated me into more than my
usual share of good humour.
He was sitting smoking; and when I appeared, fresh, and rested, and
cheery, round the corner of the Elsa, he not only immediately said good
morning, but added an inquiry as to whether I did not think it a beautiful
day; then he got up, went across to the stove, put the eggs in the saucepan,
and fetched the coffee-pot.
This was very surprising. I tell you, my friends, the moods of persons
who caravan are as many and as incalculable as the grains of sand on the
seashore. If you doubt it, go and do it. But you cannot reasonably doubt it
after listening to the narrative. Have I not told you in the course of it how
the party’s spirits were up in the skies one hour, and down on the ground the
next; how their gaiety some days at breakfast was childish in its folly, and
their silence on others depressing; how they quoted poetry and played at
Blind Man’s Buff in the morning, and in the afternoon dragged their feet
without speaking through the mud; how they talked far too much
sometimes, and then, when I wished to, would not talk at all; how they were
suddenly polite and attentive, and then as suddenly forgot I could possibly
want anything; how the wet did not damp their hilarity one day, and no
amount of sunshine coax it forth the next? But of all their moods this of
Menzies-Legh’s in the field above Canterbury was the one that surprised me
most.
You see, he was naturally so very glum. True at the beginning there had
been gleams of light but they soon became extinguished. True, also, at
Frogs’ Hole Farm, when demonstrating truths by means of tea in glasses, he
had been for a short while pleasant—only, however, to plunge immediately
and all the deeper into gloom and ill-temper. Gloom and ill-temper was his
normal state; and to see him attending to my wants, doing it with
unmistakable assiduity, actively courteous, was astonishing. I was
astonished. But my breeding enabled me to behave as though it were the
most ordinary thing in the world, and I accepted sugar from him and
allowed him to cut my bread with the blank expression on my face of him
who sees nothing unusual or interesting anywhere, which is, I take it, the
expression of the perfect gentleman. When at length my plate was
surrounded by specimens of all the comforts available, and I had begun to
eat, he sat down again, and leaning his elbow on the table and fixing his
eyes on the city already sweltering in heat and vapour below, resumed his
pipe.
A train puffed out of the station along the line at the bottom of our field,
jerking up slow masses of white steam into the hot, motionless air.
“There goes Jellaby’s train,” said Menzies-Legh.
“Jellaby’s what?” said I, cracking an egg.
“Train,” said he.
“Why, what has he got to do with trains?” I asked, supposing with the
vagueness of want of interest, that Jellaby, as well as being a Socialist, was
a railway director and kept a particular train as another person would keep a
pet.
“He’s in it,” said Menzies-Legh.
I looked up from my egg at Menzies-Legh’s profile.
“What?” said I.
“In it,” said he. “Obliged to go.”
“What—Jellaby gone? First Lord Sidge, and now Jellaby?”
Naturally I was surprised, for I had heard and noticed nothing of this.
Also the way one after the other left without saying good-bye seemed to me
inconsiderate—at least that: probably more.
“Yes,” said Menzies-Legh. “We are—we are very sorry.”
I could not, however, honestly join in any sorrow over Jellaby, so merely
remarked that the party was shrinking.
“Yes,” said Menzies-Legh, “that’s rather our feeling too.”
“But why has Jellaby——?”
“Oh, well, you know, public man. Parliament. And all that.”
“Does your Parliament reassemble so shortly?”
“Oh, well, soon enough. You have to prepare, you know. Collect your
wits, and that sort of thing.”
“Ah, yes. Jellaby should not leave that to the last minute. But he might,”
I added with a slight frown, “have taken leave of me according to the
customs of good society. Manners are manners, after all is said and done.”
“He was in a great hurry,” said Menzies-Legh.
There was a silence, during which Menzies-Legh smoked and I
breakfasted. Once or twice he cleared his throat as though about to say
something, but when I looked up prepared to listen he continued his pipe
and his staring at the city in the sun below.
“Where are the ladies?” I inquired, when the first edge of my appetite
had been blunted and I had leisure to look about me.
Menzies-Legh shifted his legs, which had been crossed.
“They went to the station with Jellaby to see the last of him,” said he.
“Indeed. All of them?”
“I believe so.”
Jellaby then, though he could not have the courtesy to say good-bye to
me, could take a prolonged farewell of my wife and of the other members
of our party.
“He is not what we in our country would call a gentleman,” I said, after a
silence during which I finished the third egg and regretted there were no
more.
“Who is not?” asked Menzies-Legh.
“Jellaby. No doubt the term bounder would apply to him quite as well as
to other people.”
Menzies-Legh turned his sallow visage to me. “He’s a great friend of
mine,” he said, the familiar scowl weighing down his eyebrows.
I could not help smiling and shaking my head at that, all I had heard the
night before so very fresh in my memory.
“Ah, my dear sir,” I said, “be careful how you trust your great friends.
Do not give way too lavishly to confidence. Belief in them is all very well,
but it should not go beyond the limits of reason.”
“He’s a great friend of mine,” repeated Menzies-Legh, raising his voice.
“I wish then,” said I, “you would tell me what a bounder is.”
He glowered at me a moment from beneath black brows. Then he said
more quietly:
“I’m not a slang dictionary. Suppose we talk seriously.”
“Certainly,” said I, reaching out for the jam.
He cleared his throat. “I got a lot of letters and telegrams last night,” he
said.
“How did you manage that?” I asked.
“They were waiting for me at the post-office here. I had telegraphed for
them to be forwarded. And I’m afraid—I’m sorry, but it’s inevitable—we
shall have to be off.”
“Off what?” said I, for a few of the more intimate English idioms still
remained for me to master.
“Off,” said he. “Go. Leave this.”
“Oh,” said I. “Well, we are used to that. This tour, my dear sir, is surely
the very essence of what you call being off. Where do we go next? I trust to
a place with trees in it.”
“You don’t understand, Baron. We don’t go anywhere next as far as the
caravans are concerned. My wife and I are obliged to go home.”
I was, of course, surprised. “We are, indeed,” said I, after a moment,
“shrinking rapidly.”
Then the thought of being rid of Mrs. Menzies-Legh and her John and
Jellaby at, so to speak, one swoop, and continuing the tour purged of these
baser elements with the tender lady entirely in our charge, made me unable
to repress a smile of satisfaction.
Menzies-Legh looked in his turn surprised. “I am glad,” he said, “that
you don’t mind.”
“My dear sir,” I said courteously, “of course I mind, and we shall miss
you and your—er—er—” it was difficult on the spur of the moment to find
an adjective, but Frau von Eckthum’s praises of her sister the night before
coming into my mind I popped in the word suggested suggested—“angelic
wife——”
He stared—ungratefully I thought, considering the effort it had been.
“But,” I continued, “you may be very sure we shall take every care of
your sister-in-law, and return her safe and well into your hands on
September the first, which is the date my contract with the owner of the
Elsa expires.”
“I’m afraid,” said he, “I wasn’t clear. We all go. Betti included, and
Jumps and Jane too. I’m very sorry,” he interrupted, as I opened my mouth,
“very sorry indeed that things should have turned out so unexpectedly, but it
is absolutely impossible for us to go on. Out of the question.”
And he set his jaws, and shut his mouth into a mere line of opposition
and finality.
Well, my friends, what do you say to that? What do you think of this
example of the surprises life has in store for one? And, incidentally, what do
you think of human nature? Especially of human nature when it caravans?
And still more especially of human nature that is also English? Not without
reason do our neighbours label the accursèd island perfide Albion. It is true
I am not clear about the Albion, but I am very clear about the perfide.
“Do you mean to tell me,” I said, leaning toward him across the table
and forcing him to meet my gaze, “that your sister-in-law wishes to go with
you?”
“She does,” said he.
“Then, sir——” I began, amazement and indignation struggling together
within me.
“I tell you, Baron,” he interrupted, “we are very sorry things have turned
out like this. My wife is most genuinely distressed. But she too sees the
impossibility—unforeseen complications demand we should go home.”
“Sir——” I again began.
“My dear Baron,” he again interrupted, “it needn’t in the least interfere
with you. Old James will stay with you if you and the Baroness would like
to go on.”
“Sir, I have paid for a month, and have only had a week.”
“Well, go on and finish your month. Nobody is preventing you.”
“But I was persuaded to join the tour on the understanding that it was a
party—that we were all to be together—four weeks together——”
“My dear fellow,” said he (never had I been addressed as that before),
“you talk as if it were a business arrangement, a buying and selling, as if we
were bound by a contract, under agreement——”
“Your sister-in-law inveigled me into it,” I exclaimed, emphasizing what
I said by regular beats on the table with my forefinger, “on the definite
understanding that it was to be a party and she—was—to be—a—member
of it.”
“Pooh, my dear Baron—Betti’s definite understandings. She’s in love,
and when a woman’s that it’s no earthly use——”
“What?” said I, startled for a moment out of all self-possession.
“Well?” he said, looking at me in surprise. “Why not? She’s young. Or
do you consider it improper for widows——”
“Improper? Natural, sir—natural. How long——?”
“Oh, before the tour even started. And propinquity, seeing each other
every day—well,” he finished suddenly, “one mustn’t talk about it, you
know.”
But you, my friends, what do you say to that? What do you think of this
second example of the surprises life has in store for us? I have been in two
minds as to whether I would tell you this one at all, but to a law-abiding
man, calm and objective as I know myself to be and as you by now must
know me too, such an incident though pleasurable could not in any way
affect or alter my conduct. Strictly Menzies-Legh was to be censured for
mentioning it; however that, I suppose, was what Jellaby called the bounder
coming out in him, and I perceived that whatever they exactly may be
bounders have their uses. I repeat, I make no attempt to deny that it was a
pleasurable incident, and although I am aware Storchwerder never liked her
(chiefly, I firmly believe, because she would not ask it to her dinners) I am
convinced that not one of you, my friends, and I say it straight in your
faces, but would have been glad to stand at that moment in my shoes. I did
not forget I was a husband, but you can be a husband and yet remain a man.
I think I behaved very creditably. Only for an instant was there the least
little lapse from complete self-possession. Immediately I became and
remained perfectly calm. Edelgard; duty; my position in life; my beliefs; I
remembered them all. It also occurred to me (but I could not well tell
Menzies-Legh) that having regard to the behaviour throughout the tour of
his wife it was evident these things ran in families. I could not tell him, but
I felt myself inwardly in every way tickled. All I could do, indeed all I did
do, was to say “Strange, strange world,” and get up from my chair because I
found myself unable to continue sitting in it.
“But what do you propose to do?” Menzies-Legh asked, after he had
watched me taking a hasty turn or two up and down in the sun.
“Behave,” said I, stopping in front of him, “as an officer and a
gentleman.”
He stared. Then he got up and said with a touch of impatience—a most
unreliable person as regards temper: “Yes, yes—no doubt. But what shall I
tell old James about your caravan? Are you going on or not? If not, he’ll
pilot it home for you. I’m afraid I must know soon. I haven’t much time. I
must get away to-day.”
“What? To-day?”
“I must. I’m very sorry. Obliged to, you know——”
“And the Ailsa?”
“Oh, that’s all arranged. I telegraphed last night for one of the grooms.
He’ll be down in an hour or two and take charge of it back to Panthers.”
“And the Ilsa?”
“He’ll take that too.”
“No, my dear sir,” said I firmly. “You leave the Ilsa in our charge—it and
its contents.”
“Eh?” said he.
“It and its contents—human and otherwise.”
“Nonsense, Baron. What on earth would you do with Jane and Jumps?
They’re going up to town with me by train. And my wife and Betti—oh,
yes, by the way, my wife gave me instructions to tell you how very sorry
she was not to be able to say good-bye to you. I assure you she was really
greatly distressed, but she and Betti are motoring up to London and felt they
ought to start as early as possible——”
“But—motoring? You said they had gone to the sta——”
“So they did. They saw Jellaby off, and then were picked up by a motor I
ordered for them last night in the town, and went straight from there——”
I heard no more. He went on speaking, but I heard no more. The series
of surprises had done their work, and I could attend to nothing further. I
believe he continued to express regret and offer advice, but what he said fell
on my ear with the indifferent trickling of water when one is not thirsty. At
first anger, keen resentment, and disappointment surged within me, for why,
I asked myself, did she not say good-bye? I walked up and down on the hot
stubble, my hands deep in my pockets and myself deep in conflicting
emotions, while Menzies-Legh supposing I was listening regretted and
advised, asking myself why she did not say good-bye. Then, gradually, I
could not but see that here was tact, here was delicacy, the right feeling of
the truly feminine woman, and began to admire her all the more because
she had not said it. By degrees composure stole upon me. Reason returned
to my assistance. I could think, arrange, decide. And before Edelgard came
back with the two children, mere heated débris of that which had lately
been so complete, what I had decided with the clear-headed rapidity of the
practical and sensible man was to give up the Elsa, lose my money, and go
home. Home after all is the best place when life begins to wobble; and
home in this case was very near the Eckthum property—I only had to
borrow a vehicle, or even in extremity take a droschke, and there I was.
There too the delightful lady must sooner or later be, and I would at least
see her from time to time, whereas in England among her English relations
she was entirely and hopelessly cut off.
Thus it was, my friends, that I did not see Frau von Eckthum again. Thus
it was our caravaning came to an untimely end.
You can figure to yourselves what kind of reflections a man inclined to
philosophize would reflect as the reduced party hastily packed, in the heat
and glare of the summer morning, that which they had unpacked a week
previously amid howling winds and hail showers in the yard at Panthers.
Nature then had frowned, but vainly, on our merriment. Nature now was
smiling, equally vainly on our fragments. One brief week; and what had
happened? Rather, I should say, what had not happened?
On the stubble I walked up and down lost in reflection, while Edelgard,
helped (officiously I thought, but I did not care enough to mind) by
Menzies-Legh, stuffed our belongings into bags. She had asked no
questions. If she had I would not have answered them, being little in the
mood as you can imagine to put up with wives. I just told her, on her return
from seeing Jellaby off, of my decision to cross by that night’s boat, and
bade her get our things together. She said nothing, but at once began to
pack. She did not even inquire why we were not going to look at London
first, as we had originally planned. London? Who cared for London? My
mood was not one in which a man bothers about London. With reference to
that city it can best be described by the single monosyllable Tcha.
I will not linger over the packing, or relate how when it was finished
Edelgard indulged in a prolonged farewell (with embraces, if you please) of
the two uninteresting fledglings, in a fervent shaking of both Menzies-
Legh’s hands combined with an invitation—I heard it—to stay with us in
Storchwerder, and the pressing upon old James in a remote corner of
something that looked suspiciously like a portion of her dress-allowance; or
how she then set out by my side for the station steeped in that which we call
Abschiedsstimmung, old James preceding us with our luggage while the
others took care for the last time of the camp; or with what abandonment of
apparent affectionate regret she hung herself out of the train window as we
presently passed along the bottom of the field and waved her handkerchief.
Such rankness of sentiment could only make me shrug my shoulders, filled
as I was by my own absorbing thoughts.
I did glance up, though, and there on the stubble, surrounded by every
sort of litter, stood the three familiar brown vehicles blistering in the sun,
with Menzies-Legh and the fledglings knee-deep in straw and saucepans
and bags and other forlorn discomforts, watching us depart.
Strange how alien the whole thing seemed, how little connection it
seemed to have with me now that the sparkling bubbles (if I may refer to
Frau von Eckthum as bubbles) had disappeared and only the dregs were
left. I could not help feeling glad, as I raised my hat in courteous
acknowledgment of the frantic wavings of the fledglings, that I was finally
out of all the mess.
Menzies-Legh gravely returned my salute; our train rounded a curve;
and camp and caravaners disappeared at once and forever into the
unrecallable past.
CHAPTER XXI

T HUS our caravaning came to an end.


I could hardly believe it when I thought how at that hour of the day
before I was lying beneath the hop-poles of Frogs’ Hole Farm with the
greater part, as I supposed, of the tour before me; I could hardly believe that
here we were again, Edelgard and I, tête-à-tête in a railway carriage and
with a future of, if I may coin a word, tête-à-têteness stretching
uninterruptedly ahead as far as imagination could be induced to look. And
not only just ordinary tête-à-têteness, but with the complication of one of
the têtes, so to speak, being rankly rebellious and unwifely. How long
would it take, I wondered, glancing at her as she sat in the corner opposite
me, to bring her back to the reason in which she used before we came to
England to take delight?
I glanced at her, and I found she was looking at me; and immediately on
catching my eye she leaned forward and said:
“Otto, what was it you did?”
They were the first words she had spoken to me that day, and very
naturally failing to see any point in them I requested her not to be subtle,
which is courteous for senseless.
“Why,” said she, not heeding this warning, “did the party break up?
What was it you did?”
Were there ever such questions? But I recollected she could not dream
how things really were, and therefore was not as much put out as I would
otherwise have been at the characteristically wifely fashion of at once when
anything seemed to be going wrong attributing it to her husband.
I therefore good-humouredly applied the Aunt Bockhügel remedy to her,
and was willing to leave it at that if she had let me. She, however, preferred
to quarrel. Without the least attempt to change the Bockhügel face she said,
“My dear Otto—poor Aunt Bockhügel. Won’t we leave her in peace? But
tell me what it was you did.”
Then I became vexed, for really the assumption of superiority, of the
right to criticize and blame, went further than a reasonable man can permit.
What I said as we journeyed up to London I will not here repeat; it has been
said before and will be said often enough again so long as husbands have to
have wives: but how about the responsibility resting on the wives? I
remembered the cheerful mood I had been in on getting up, and felt no
small degree of resentment at the manner in which my wife was trying to
wipe it out. Give me a chance, and I am the kindest of men; take away my
chance, and what can I do?
And so, my friends, as it were with a wrangle ended our sojourn on
British soil. I lay down my pen, and become lost in many reflections as I
think of all these things. Long ago have we settled down again to our
ordinary Storchwerder life, with an Emilie instead of a Clothilde in the
kitchen. Long ago we paid our calls announcing to our large circle that we
were back. We have taken up the threads of duty, we have resumed
regulated existence; and gradually as the weeks melt into months and the
influence of Storchwerder presses more heavily upon her, I have observed
that my wife shows an increasing tendency once more to find her level. I
need not have worried; I need not have wondered how I could bring her to
reason. Storchwerder is doing it. Its atmosphere and associations are very
potent. They are being, I am thankful to say, too strong for Edelgard. After
a few preliminary convulsions she began to cook my meals and look after
my welfare as dutifully as before, and other effects no doubt will follow. At
present she is more silent than before the tour, and does not laugh as readily
as she used when I chance to be in a jesting mood; also at times a British
microbe that has escaped the vigilance of those beneficent little creatures
Science tells us are in our blood on the alert to devour intrusive foreigners
crops up and causes her to comment on my sayings and doings rather à la
Mrs. Menzies-Legh, but I frown her down or apply the Aunt Bockhügel,
and in another few months I trust all will be exactly as it used to be. I
myself am exactly as I used to be—a plain, outspoken, patriotic, Christian
gentleman, going steadily along the path of duty, neither looking to the right
nor to the left (if I did I should not see Frau von Eckthum for she is still in
England), and using my humble abilities to do what I can for the glory of
my country and my Emperor.
And now having finished the narrative there is nothing more to do but to
buy a red pencil and put marks on it. Many, I fear, will be those marks.
Unfortunate is the fact that you cannot be sincere without at the same time
being indiscreet. But I trust that what remains will be treated by my hearers
with the indulgence due to a man who has only been desirous of telling the
whole truth, or in other words (and which amount, I take it, to precisely the
same thing) of concealing nothing.
POST SCRIPTUM

A TERRIBLE thing has happened.


Finished a week ago and the invitations to come and listen already
in the post, with the flat being cleaned in preparation and beer and
sandwiches almost, as it were, on the threshold, I have been obliged to take
my manuscript once more out of the locked drawer which conceals it from
Edelgard’s eyes in order to record a most lamentable occurrence.
My wife received a letter this morning from Mrs. Menzies-Legh
informing her that Frau von Eckthum is about to be married to Jellaby.
No words can express the shock this has given me. No words can
express my horror at such a union. Left to herself, helpless in the clutches
of her English relatives, the gentle creature’s very virtues—her pliability,
her tender womanliness—have become the means of bringing about the
catastrophe. She was influenced, persuaded, a prey. It is six months since
she was handed over entirely to the Menzies-Leghs, six months of no doubt
steady resistance, ending probably in her health breaking down and in her
giving in. It hardly bears thinking of. A Briton. A Socialist. A man in
flannel. No family. No money. And the most terrible opinions. My shock
and horror are so great, so profound, that I have cancelled the invitations
and will lock this up perhaps forever, certainly for some weeks; for how
could I possibly read aloud the story of our harmonious and delightful
intercourse with the tragic sequel public knowledge?
And my wife, when she read the letter at breakfast, clapped her hands
and cried, “Isn’t it splendid—oh, Otto, aren’t you glad?”

THE END

Typographical errors corrected by the etext transcriber:


It it had not been=> If it had not been {pg 7}
though her concience=> though her conscience {pg 133}
the Menzies-Leigh couple=> the Menzies-Legh couple {pg
176}
all enioying themselves=> all enjoying themselves {pg 198}
Mrs. Menzies-Leigh=> Mrs. Menzies-Legh {pg 213}
devasting microbe=> devastating microbe {pg 340}
*** END OF THE PROJECT GUTENBERG EBOOK THE
CARAVANERS ***

Updated editions will replace the previous one—the old editions will
be renamed.

Creating the works from print editions not protected by U.S.


copyright law means that no one owns a United States copyright in
these works, so the Foundation (and you!) can copy and distribute it
in the United States without permission and without paying copyright
royalties. Special rules, set forth in the General Terms of Use part of
this license, apply to copying and distributing Project Gutenberg™
electronic works to protect the PROJECT GUTENBERG™ concept
and trademark. Project Gutenberg is a registered trademark, and
may not be used if you charge for an eBook, except by following the
terms of the trademark license, including paying royalties for use of
the Project Gutenberg trademark. If you do not charge anything for
copies of this eBook, complying with the trademark license is very
easy. You may use this eBook for nearly any purpose such as
creation of derivative works, reports, performances and research.
Project Gutenberg eBooks may be modified and printed and given
away—you may do practically ANYTHING in the United States with
eBooks not protected by U.S. copyright law. Redistribution is subject
to the trademark license, especially commercial redistribution.

START: FULL LICENSE


THE FULL PROJECT GUTENBERG LICENSE

You might also like