This edition first published 2019
© 2019 John Wiley & Sons Ltd
All rights reserved. No part of this publication maybe reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording or otherwise, except as permitted by law. Advice on how to obtain permission to reuse material from this title is available at http://www.wiley.com/go/permissions.
The right of Fred Senese to be identified as the author of this work has been asserted in accordance with law.
Registered Offices
John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, USA
John Wiley & Sons Ltd, The Atrium, Southern Gate, Chichester, West Sussex, PO19 8SQ, UK
Editorial Office
The Atrium, Southern Gate, Chichester, West Sussex, PO19 8SQ, UK
For details of our global editorial offices, customer services, and more information about Wiley products visit us at www.wiley.com.
Wiley also publishes its books in a variety of electronic formats and by print-on-demand. Some content that appears in standard print versions of this book may not be available in other formats.
Limit of Liability/Disclaimer of Warranty
In view of ongoing research, equipment modifications, changes in governmental regulations, and the constant flow of information relating to the use of experimental reagents, equipment, and devices, the reader is urged to review and evaluate the information provided in the package insert or instructions for each chemical, piece of equipment, reagent, or device for, among other things, any changes in the instructions or indication of usage and for added warnings and precautions. While the publisher and authors have used their best efforts in preparing this work, they make no representations or warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including without limitation any implied warranties of merchantability or fitness for a particular purpose. No warranty may be created or extended by sales representatives, written sales materials or promotional statements for this work. The fact that an organization, website, or product is referred to in this work as a citation and/or potential source of further information does not mean that the publisher and authors endorse the information or services the organization, website, or product may provide or recommendations it may make. This work is sold with the understanding that the publisher is not engaged in rendering professional services. The advice and strategies contained herein may not be suitable for your situation. You should consult with a specialist where appropriate. Further, readers should be aware that websites listed in this work may have changed or disappeared between when this work was written and when it is read. Neither the publisher nor authors shall be liable for any loss of profit or any other commercial damages, including but not limited to special, incidental, consequential, or other damages.
Library ofCongress Cataloging-in-Publication Data
Names: Senese, Fred, author.
Title: Symbolic mathematics for chemists : a guide for Maxima users / Fred Senese.
Description: Hoboken, NJ: John Wiley & Sons, 2019. | Includes bibliographical references and index. |
Identifiers: LCCN 2018024356 (print) | LCCN 2018033308 (ebook) | ISBN 9781119273233 (Adobe PDF) | ISBN 9781119273264 (ePub) | ISBN 9781118798690 (pbk.)
Subjects: LCSH: Chemistry–Mathematics. | Logic, Symbolic and mathematical–Data processing.
Classification: LCC QD39.3.M3 (ebook) | LCC QD39.3.M3 S46 2018 (print) | DDC 542/.8553–dc23
LC record available at https://lccn.loc.gov/2018024356
Cover design by Wiley
Cover image: © Billion Photos/Shutterstock; @ leminuit/Getty Images
To my dearest wife, Hazel, without whose tolerance, patience, support and love this book would not have been possible.
Maxima is a free open source symbolic math engine, similar to commercial systems like Mathematica, Matlab, and Maple. It can be used to symbolically solve problems in algebra, trigonometry, calculus, and differential equations. It is available for Windows, Macintosh, Linux, and Android platforms, and is directly downloaded by over 100 000 users each year. Several different graphical user interfaces are available, including wxMaxima, XMaxima, emacs, and TeXmacs. Maxima is also a component of several computer algebra systems, including Sage, SMath Studio, and the Euler Math Toolbox.
This Maxima primer focuses on problem solving, model building, and data analysis in chemistry. It can be used as a companion text for physical chemistry, courses in mathematical chemistry, or any chemistry course that requires computation and data analysis. It is not intended to be a replacement for the Maxima manual, nor is it intended to be a chemistry textbook.
Chapter 1 (Fundamentals) introduces wxMaxima, the graphical user interface for Maxima, and gives a quick tour of the General Math pane, includes dialogs for basic plotting, algebra, and calculus.
Chapter 2 (Storing and Transforming Data) explores Maxima’s data types, including numbers, strings, lists, and matrices. It also shows how Maxima can import and export data from files.
Chapter 3 (Plotting Data and Functions) shows how to use Maxima to draw scatter plots, histograms, three-dimensional surface plots, and contour plots.
Chapter 4 (Programming Maxima) focuses on writing programs that perform iterative calculations and conditionally execute commands.
Chapter 5 (Algebra) shows you how to rewrite, factor, expand, and extract pieces of expressions and equations in Maxima. It also demonstrates the solution of equations and systems of equations, and interpolation of data using polynomials and cubic splines.
Chapter 6 (Differentiation, Integration, and Minimization) uses Maxima to perform the basic operations of calculus, including computation of limits, differential expansions, derivatives, and integrals. We’ll also see how to minimize and maximize functions, find points of inflection, and compute power series and Taylor series expansions for functions.
Chapter 7 (Matrices and Vectors) applies Maxima to algebraic and differential vector and matrix calculations.
Chapter 8 (Error Analysis) uses Maxima to estimate errors in datasets and propagate them through calculations. It also shows how statistics and assumptions about the distribution of errors can be used to objectively test hypotheses about the data.
Chapter 9 (Fitting Data to a Straight Line) applies linear least-squares fits to datasets, and shows you how to assess the quality of the fit.
Chapter 10 (Fitting Data to a Curve) fits nonlinear models to data, and shows how errors in the fit parameters can be estimated using the jackknife and bootstrap methods.
Chapter 11 (Differential Equations) demonstrates symbolic, power series, and numerical solution of differential equations, as well as graphical visualization of the solutions with direction fields.
Chapter 12 (Operators and Integral Transforms) shows how quantum mechanical operators can be defined directly in Maxima. It also introduces Maxima’s powerful Fourier transform and fast Fourier transform functions.
A comprehensive set of worksheets form the core of the book. The worksheets address the full range of computations that students encounter in an undergraduate physical chemistry course.
The worksheets themselves are not printed in their entirety in the book. They are available for download at http://booksupport.wiley.com
Each worksheet begins with clearly defined goals and learning objectives. These will be listed both in the book and at the beginning of the worksheet, along with a detailed abstract that provides motivation and context for the material. Prerequisite and follow-up worksheets are described and linked in the abstract. Users should not have to refer to the book while using the worksheets. The presentation will be practical and conversational; rigor will be retained without burdening students with fussy details.
The worksheets are not computer programs. They do not simply plot a graph or print the answer for a textbook problem. Each worksheet is a cohesive and complete guided inquiry that uses symbolic math to illuminate a topic in chemistry.
Students will have different levels of comfort with symbolic math, and the worksheets are designed with this in mind. Step-by-step instructions and clear, detailed examples are given for beginners. Troubleshooting hints and case studies provide practical experience and foster critical thinking for those who have mastered the basics. Proficient users are offered avenues for further exploration.
The worksheets do not simply present information, like a textbook; they engage students directly by asking them to write symbolic mathematics themselves. Students aren’t simply asked to tweak the values of a few variables and observe the effect on a calculated result or graph. The focus is on critical thinking, creative problem solving, and the ability to connect concepts.
Each worksheet includes summary problems that ask students to integrate the ideas and techniques presented. The worksheets end with suggested projects for more proficient users. The projects offer new contexts for application of what has been learned, along with a bibliography for more advanced study.
Courier
font. Options for commands are set in italicized Courier
.(%i1) |
2+2; |
(%o1) |
4 |
false
.Maxima for desktops can be downloaded for free at http://sourceforge.net/projects/maxima/files/. Click on the directory for your operating system (Maxima-Linux
, Maxima-Windows
, or Maxima-MacOS
) and download the installer for the latest version.
maxima
and maxima-exec-clisp
packages.A portable distribution of Maxima (which can be installed on a flash drive) is available. Search for “portable Maxima” to find the latest version.
An Android version of Maxima is available from Google Play at https://play.google.com/store/apps/details?id=jp.yhonda&hl=en. See https://sites.google.com/site/maximaonandroid/ for details.
I’d like to thank Frostburg State University for supporting this work, and my colleagues in the Department of Chemistry for their support and encouragement. Jerry Simon in particular made suggestions that improved the book. I would also like to thank the reviewers of the initial proposal for the book for their frank comments, and my editors Sarah Higginbotham, Sarah Keegan, Lesley Jebaraj, and Jenny Cossham for their patience and guidance. Ann Seidel did a wonderful job in creating online versions of the worksheets. I dedicate this book to my dear friends Corrie Haldane and Michelle Kaseler, who helped and supported me in innumerable ways during the writing of this book.