Integration by Parts in Maple

Similar documents
Classroom Tips and Techniques: Nonlinear Curve Fitting. Robert J. Lopez Emeritus Professor of Mathematics and Maple Fellow Maplesoft

Classroom Tips and Techniques: Interactive Plotting of Points on a Curve

Classroom Tips and Techniques: Stepwise Solutions in Maple - Part 2 - Linear Algebra

Introduction. Classroom Tips and Techniques: The Lagrange Multiplier Method

Classroom Tips and Techniques: Solving Algebraic Equations by the Dragilev Method

Classroom Tips and Techniques: Drawing a Normal and Tangent Plane on a Surface

Classroom Tips and Techniques: Notational Devices for ODEs

Classroom Tips and Techniques: Branch Cuts for a Product of Two Square-Roots

Classroom Tips and Techniques: The Lagrange Multiplier Method

Visualizing Regions of Integration in 2-D Cartesian Coordinates

Classroom Tips and Techniques: Plotting Curves Defined Parametrically

Classroom Tips and Techniques: Maple Meets Marden's Theorem. Robert J. Lopez Emeritus Professor of Mathematics and Maple Fellow Maplesoft

Classroom Tips and Techniques: Least-Squares Fits. Robert J. Lopez Emeritus Professor of Mathematics and Maple Fellow Maplesoft

A Maple Package for Solving and Displaying

Maple Quick Start. Maplesoft, a division of Waterloo Maple Inc.

Maple as an Instructional Tool

Investigating the surface areas of 1 litre drink packaging of milk, orange juice and water

Lab 7 1 Due Thu., 6 Apr. 2017

Constructing Algorithms and Pseudocoding This document was originally developed by Professor John P. Russo

YOGYAKARTA STATE UNIVERSITY MATHEMATICS AND NATURAL SCIENCES FACULTY MATHEMATICS EDUCATION STUDY PROGRAM

Assessment of Programming Skills of First Year CS Students: Problem Set

In this first example, we build a question that asks for the derivative of sec(x) and uses Maple to grade the response.

2 Second Derivatives. As we have seen, a function f (x, y) of two variables has four different partial derivatives: f xx. f yx. f x y.

09 STACK APPLICATION DATA STRUCTURES AND ALGORITHMS REVERSE POLISH NOTATION

Problem Possible Points Points Earned Problem Possible Points Points Earned Test Total 100

The Bisection Method versus Newton s Method in Maple (Classic Version for Windows)

Implicit Function Explorations

Maple User Manual Copyright Maplesoft, a division of Waterloo Maple Inc

Using the TI-92+ Calculator as a Tool for Illustrating Programming Concepts. By Paul Abraham Kent State University Stark Campus

d f(g(t), h(t)) = x dt + f ( y dt = 0. Notice that we can rewrite the relationship on the left hand side of the equality using the dot product: ( f

Unit Maps: Grade 4 Math

Final Examination. Math1339 (C) Calculus and Vectors. December 22, :30-12:30. Sanghoon Baek. Department of Mathematics and Statistics

6.001 Notes: Section 6.1

Optimization in One Variable Using Solver

Common Core Math Curriculum Map

7.NS.2d Decimal Expansions of

and F is an antiderivative of f

STACKS. A stack is defined in terms of its behavior. The common operations associated with a stack are as follows:

Maple Quick Start. Introduction. Talking to Maple

Functions of Several Variables

Mathematics Grade 4 Operations and Algebraic Thinking Number and Operations in Base Ten Number and Operations- Fractions Measurement and Data

DRAFT EAST POINSETT CO. SCHOOL DIST. - GRADE 4 MATH

International Conference Las Vegas, NV, USA March 7-9, 2014

Represent decimals, including tenths and hundredths, using hands on /visual models and money Topic 1: Place Value

Unit 3 Functions of Several Variables

JAVASCRIPT AND JQUERY: AN INTRODUCTION (WEB PROGRAMMING, X452.1)

Exam 1 Review. MATH Intuitive Calculus Fall Name:. Show your reasoning. Use standard notation correctly.

Sequence of Grade 4 Modules Aligned with the Standards

Common Core Math Curriculum Map

6.001 Notes: Section 8.1

Grade 4 Mathematics Scope and Sequence

Chapter 4: Analyzing Bivariate Data with Fathom

4th Grade Math Curriculum Snapshot

Announcements. Chapter 2 - Part 1 1

Working with Basic Functions. Basic Functions. Excel 2010 Working with Basic Functions. The Parts of a Function. Page 1

Oklahoma C 3 Mathematics Standards

4 Visualization and. Approximation

Grade 4 Overview. 1. Make sense of problems and persevere in solving them. 2. Reason abstractly and quantitatively.

CURRENT RESOURCES THAT SUPPORT TEACHING AND LEARNING OF THE COMMON CORE STATE STANDARDS IN MATHEMATICS

0.1 Numerical Integration Rules Using Maple

Operations and Algebraic Thinking

Grade 4 CCSS Pacing Guide: Math Expressions

Dynamics and Vibrations Mupad tutorial

Programming Lecture 3

A Java Execution Simulator

1 Maple Introduction. 1.1 Getting Started. 1.2 Maple Commands

Mathematics Grade 4. COMMON CORE STATE STANDARDS for MATHEMATICS

MICROSOFT Excel 2010 Advanced Self-Study

TRAINEE WORKBOOK. Atlas 5.0 for Microsoft Dynamics AX 2012 Reporting system

CS 135 Lab Assignments Week 1

Discovering the Power of Excel PowerPivot Data Analytic Expressions (DAX)

Optimizations and Lagrange Multiplier Method

Unit Maps: Grade 6 Math

Lecture 7 Symbolic Computations

Computer Science Lab Exercise 2

Chapter 4. Linear Programming

We will load all available matrix functions at once with the Maple command with(linalg).

MATHEMATICAL IDEAS & CONCEPTS: ESSENTIAL QUESTIONS:

Microsoft Excel 2007

The Fishing Optimization Problem: A Tour of Technology in the Teaching of Mathematics Dedicated to Bert Waits and Frank Demana

Exponential Notation

FIND RECTANGULAR COORDINATES FROM POLAR COORDINATES CALCULATOR

Chapter 3 EXPRESSIONS

Mathematics Scope & Sequence Grade 4

TIME 2014 Technology in Mathematics Education July 1 st -5 th 2014, Krems, Austria

CS 206 Introduction to Computer Science II

Grade K 8 Standards Grade 4

Introduction to Functions of Several Variables

1. Fill in the right hand side of the following equation by taking the derivative: (x sin x) =

Technology Is For You!

John Perry. Spring 2017

The eighth scene in a series of articles on elementary mathematics. written by Eugene Maier designed and illustrated by Tyson Smith. equals me.

Mathematical Operations

1 Tangents and Secants

FUNCTIONS AND MODELS

Introduction to numerical algorithms

CS251 Programming Languages Handout # 29 Prof. Lyn Turbak March 7, 2007 Wellesley College

GoldSim: Using Simulation to Move Beyond the Limitations of Spreadsheet Models

EHT Math Curriculum

7.8. Approximate Integration

Transcription:

Classroom Tips and Techniques: Integration by Parts in Maple Robert J. Lopez Emeritus Professor of Mathematics and Maple Fellow Maplesoft Introduction Maple implements "integration by parts" with two different commands. One was designed in a pedagogical setting, and the other, for a "production" setting. In this article, we compare the functionalities of the two commands, Parts (in IntegrationTools)as a "production" tool, and Rule[parts] (in Student:-Calculus1) as a didactic command. In the following illustrations, we will write the formula as so that the factor is be differentiated, and the companion factor,, is to be integrated. Initialize The following two integrals and their sum

will be used as the basis for the discussion of parts integration. In the second integral the textbook notation stands for a Bessel function of order zero. Maple knows this function as "BesselJ" but the following modifications to Maple allow the textbook notation to be understood. Alternatively, the interactive Rules Assistant accessed from the View menu can be used, provided extended typesetting has been implemented. Figure 1 Rules Assistant in default state Figure 2 Rules Assistant after parse rule enabled The Parts Command from the IntegrationTools Package Table 1 makes four applications of the Parts command from the IntegrationTools package. Error, (in IntegrationTools:-Parts) multiple integrals

detected Table 1 The Parts command from the IntegrationTools package applied to the integrals in Table 1 Table 1 immediately reveals that only the term taken as u need be provided. The command then extracts dv and provides v. The table also reveals that the Parts command is not deterred by a multiplicative factor in front of the integral. It also reveals that the command applies both to an expression as well as an equation. However, it further shows that if an inappropriate choice of u is made, a formal antiderivative representing v is devised, and the integration-by-parts formula is applied. Finally, the table reveals that if an expression contains more than one integral, an error results. The user must find a way to impose the command on just one integral in the expression. Table 2 lists several ways that the Parts command could be applied just to in expression. Each requires that the integral to which Parts is to be applied can be singled out by some distinguishing feature. In the first method, the evalindets command is used to place the Parts command onto the operand of that is of Maple type `*`, that is, a product. The operands of are identified by applying the op command, as in = In the second method, is decomposed by the alternate usage of the op command, the Parts command is applied to the relevant integral (the first operand), and the transformed by adding back the second operant. Of course, this approach can be tedious, but that might be preferable to grappling with the mysteries of Maple types. reconstructed Table 2 Applying Parts to a particular integral in a sum of integrals Rule[parts] from the Student[Calculus1] Package The Student[Calculus1] package contains code for single-stepping through problems in calculus. Limits, derivatives, and integrals can be evaluated step-wise, with the user signaling to Maple the relevant rules to apply. Unfortunately, the syntax for this single-stepping by rules is more complicated than the typical instructor would want to expose to a class of calculus students. Fortunately, this functionality has been embedded in pop-up tools that apply the rules via buttons in

point-and-click interfaces called Tutors. Figure 3 (below) shows the Integration Methods tutor applied to. The first button to be pressed is the "Parts" button, which then launches the dialog in which both u and v are to be entered. Note that here, Maple uses the paradigm Figure 3 Stepwise integration by parts via the Integration Methods tutor In Table 3, the Rule[parts] command is applied to the integrals examined in Table 1. Error, (in Student:-Calculus1:-Rule[parts, x, `+`(`-`(cos(x)))]) input expression does not have any incomplete calculus operations

Table 3 Rule[parts] from the Student:-Calculus1 package applied to the integrals in Table 1 Unlike the Parts command, Rule[parts] requires the user to provide both u and v (not dv). But like the Parts command in the IntegrationTools package, Rule[parts] is not hampered by a multiplier in front of the integral. However, unlike the Parts command, it is indeed impeded by an equation. It must act on an expression only. Finally, Rule[parts] acts intelligently on an expression containing more than one integral. Conclusion The Parts command in the IntegrationTools package maps across equations, but not across expressions containing more than one integral. Also, it acts formally on an integral for which the supplied is inappropriate. But it need only be given u, not u and v. In the didactic environment, Rule[parts] will remain the best alternative, mainly because it requires the student to provide as well as, and behaves nicely in an equation and in the presence of more than one integral. Despite its shortcoming in an expression containing more than one integral, in a "production-mode" the Parts command would be the tool of choice. Legal Notice: Maplesoft, a division of Waterloo Maple Inc. 2017. Maplesoft and Maple are trademarks of Waterloo Maple Inc. This application may contain errors and Maplesoft is not liable for any damages resulting from the use of this material. This application is intended for non-commercial, non-profit use only. Contact Maplesoft for permission if you wish to use this application in for-profit activities.