USE OF MATLAB TO UNDERSTAND BASIC MATHEMATICS

Similar documents
MATLAB BASICS. Instructor: Prof. Shahrouk Ahmadi. TA: Kartik Bulusu

WILEY. Differential Equations with MATLAB (Third Edition) Brian R. Hunt Ronald L. Lipsman John E. Osborn Jonathan M. Rosenberg

Introduction to Matlab

Lesson 1: Inverses of Functions Lesson 2: Graphs of Polynomial Functions Lesson 3: 3-Dimensional Space

Elementary Algebra Basic Operations With Polynomials Worksheet

Precalculus. Barnett, Raymond A., Michael R. Ziegler, and Karl E. Byleen. Precalculus, 6th edition, McGraw- Hill, ISBN:

I&C 6N. Computational Linear Algebra

Mathematics Online Instructional Materials Correlation to the 2009 Algebra II Standards of Learning and Curriculum Framework

Region 16 Board of Education. Precalculus Curriculum

MATH 0960 ELEMENTARY ALGEBRA FOR COLLEGE STUDENTS (8 TH EDITION) BY ANGEL & RUNDE Course Outline

College Algebra. Course Text. Course Description. Course Objectives. StraighterLine MAT101: College Algebra

January 18, 2008 Steve Gu. Reference: Eta Kappa Nu, UCLA Iota Gamma Chapter, Introduction to MATLAB,

Matrices A matrix is a rectangular array of numbers. For example, the following rectangular arrays of numbers are matrices: 2 1 2

Math Assignment 3 - Linear Algebra

EEE161 Applied Electromagnetics Laboratory 1

CITS2401 Computer Analysis & Visualisation

ACE Transfer Credit Packet Your Guide to Earning ACE Credit for StraighterLine Courses

Signals and Systems with MATLAB Applications

CITS2401 Computer Analysis & Visualisation

Lab 2 Worksheet. Problems. Problem 1: Geometry and Linear Equations

To Create a Simple Formula using the Point and Click Method:

Introduction. How to use this book. Linear algebra. Mathematica. Mathematica cells

MILLIS PUBLIC SCHOOLS

Secondary Honors Algebra II Objectives

Looking hard at algebraic identities.

Precalculus. Course Text. Course Description. Course Objectives. StraighterLine MAT201: Precalculus

MATLAB for Engineers

Heinemann VCE Zone textbook reference General Mathematics

Modesto Junior College Course Outline of Record MATH 90

Islamic Foundation School Course Outline Course Title: Calculus and Vectors

3. Array and Matrix Operations

HIGH SCHOOL MATH CURRICULUM GRADE ELEVEN ALGEBRA 2 & TRIGONOMETRY N

COURSE: Essentials of Calculus GRADE: 12 PA ACADEMIC STANDARDS FOR MATHEMATICS:

COURSE: AP Calculus BC GRADE: 12 PA ACADEMIC STANDARDS FOR MATHEMATICS:

Chapter 2: Numeric, Cell, and Structure Arrays

7 1 Solving Trigonometric Equations With Identities

JEFFERSON COLLEGE COURSE SYLLABUS MTH 110 INTRODUCTORY ALGEBRA. 3 Credit Hours. Prepared by: Skyler Ross & Connie Kuchar September 2014

Fundamentals of Probability Theory and Mathematical Statistics

Course Number 432/433 Title Algebra II (A & B) H Grade # of Days 120

CHEE 222: PROCESS DYNAMICS AND NUMERICAL METHODS

ALGEBRA & TRIGONOMETRY FOR CALCULUS MATH 1340

Course Text. Course Description. Course Objectives. Course Prerequisites. Important Terms. StraighterLine Introductory Algebra

Green s Functions with Reflection

Intermediate Algebra Summary - Part I

COURSE OF STUDY MATHEMATICS

TOPIC 2 Computer application for manipulating matrix using MATLAB

Addition, Subtraction, Multiplication, and Division

Appendix: Synthetic Division

Modesto Junior College Course Outline of Record MATH 122

(Mathematical Operations with Arrays) Applied Linear Algebra in Geoscience Using MATLAB

Dear Future CALCULUS Student,

MATHEMATICS (MATH) Calendar

URSULINE ACADEMY Curriculum Guide

(Linear equations) Applied Linear Algebra in Geoscience Using MATLAB

Representing Polynomials

Seymour Public Schools Curriculum

MODULE 1: FOUNDATIONS OF MATHEMATICS

BCMB/CHEM 8190 Lab Exercise Using Maple for NMR Data Processing and Pulse Sequence Design March 2012

Middle school mathematics is a prerequisite for Algebra 1A. Before beginning this course, you should be able to do the following:

Software Development in Intuitionistic Fuzzy Relational Calculus

The roots are found with the following two statements. We have denoted the polynomial as p1, and the roots as roots_ p1.

Enhanced Instructional Transition Guide

OCR A2 Level Mathematics Core Mathematics Scheme of Work

1 Introduction to Minitab

Math 4C Fall 2008 Final Exam Study Guide Format 12 questions, some multi-part. Questions will be similar to sample problems in this study guide,

Trinity Christian School Curriculum Guide

Chabot College Fall Course Outline for Mathematics 25 COMPUTATIONAL METHODS FOR ENGINEERS AND SCIENTISTS

Class Syllabus. Accessible Topic - Topics accessible to visually impaired students using a screen reader.

Chapter 2. Review of Mathematics. 2.1 Exponents

Introduction to Computational Neuroscience

Introduction to MATLAB

Course Goals and Course Objectives, as of Fall Math 102: Intermediate Algebra

Calculus (Math 1A) Lecture 6

Dominican International School PRECALCULUS

Dear Future CALCULUS Student,

JEFFERSON COLLEGE COURSE SYLLABUS MTH 110 INTRODUCTORY ALGEBRA. 3 Credit Hours. Prepared by: Skyler Ross & Connie Kuchar September 2014

Instructional Calendar Accelerated Integrated Precalculus. Chapter 1 Sections and 1.6. Section 1.4. Section 1.5

Dover-Sherborn High School Mathematics Curriculum Algebra I Level 1 CP/Honors

Columbus State Community College Mathematics Department. CREDITS: 5 CLASS HOURS PER WEEK: 5 PREREQUISITES: MATH 2173 with a C or higher

correlated to the Idaho Content Standards Algebra II

Guide for Ph.D. Area Examination in Applied Mathematics

Section-A. Short Questions

SUMMER MATH PACKET College Algebra and Trigonometry A COURSE 235 and Pre-Calculus A COURSE 241

Matlab Instruction Primer; Chem 691, Spring 2016

ACT Course Standards Algebra II

Utah Secondary Mathematics Core Curriculum Precalculus

correlated to the New York State Learning Standards for Mathematics Algebra 2 and Trigonometry

Catholic Central High School

Utah Math Standards for College Prep Mathematics

DEPARTMENT OF ELECTRONIC ENGINEERING

Teaching Linear Algebra, Analytic Geometry and Basic Vector Calculus with Mathematica at Riga Technical University

CURRICULUM MAP. Course/Subject: Honors Math I Grade: 10 Teacher: Davis. Month: September (19 instructional days)

Mathematics for Graphics and Vision

Appendix 2: Linear Algebra

CLEP EXAMINATION: Precalculus

Columbus City Schools High School CCSS Mathematics III - High School PARRC Model Content Frameworks Mathematics - Core Standards And Math Practices

correlated to the Virginia Standards of Learning Algebra II with Trigonometry

Agilent MassHunter Quantitative Data Analysis

Course ID May 2017 COURSE OUTLINE. Mathematics 130 Elementary & Intermediate Algebra for Statistics

function independent dependent domain range graph of the function The Vertical Line Test

Transcription:

USE OF MATLAB TO UNDERSTAND BASIC MATHEMATICS Sanjay Gupta P. G. Department of Mathematics, Dev Samaj College For Women, Punjab ( India ) ABSTRACT In this paper, we talk about the ways in which computer technology can be used to understand basic mathematics. Matlab is a high-level mathematics package designed for doing numerical computations and graphic. Toolboxes are comprehensive collections of Matlab functions that extend the Matlab environment to solve and visualize particular classes of problems. In particular, starting with the Matlab desktop layout, we will illustrate eight topics in basic mathematics using Matlab: Matlab as a calculator, order of precedence, factoring and expanding polynomials, arrays, vectors and matrices, solution of system of linear equations, solution of simultaneous linear equations, operations on polynomials, solving polynomial equations, build-in Matlab functions and plotting. Keywords - basic mathematics, computer technology, matlab, numerical analysis, toolbox. I. INTRODUCTION The use of computer technology in teaching mathematics has become a famous part of most preparatory mathematics classes like calculus. A recently conducted research project [1, 2] examined the influences on attitudes and learning of students who were using Matlab, and found that almost all students behaved positively to Matlab for easy use of computation and graphing. In addition, the use of the Matlab software as a tool was found to have a strong impact on the learning strategies adopted and on their confidence towards mathematics. On the other hand, [3] found that students with high computer mathematics interaction realise that computers improve mathematics knowledge by providing many examples allow user to focus on major facts by reducing mechanical work, and find computers cooperative in connecting algebraic and geometric ideas. Matlab is a highlevel programming language with an interactive surroundings for numerical computation, visualization and programming function. The name Matlab stands for Matrix Laboratory. Matlab software was invented by Cleve Barry Moler for his students who were studying at the University of New Mexico so that they can use this computing package easily in numerical analysis without writing Fortran. Since Matlab has dominant symbolic math potential, therefore instead of making calculations on known numbers, we can make calculations on symbolic expressions. Matlab features a family of application-specific solutions called Toolboxes. Toolboxes are complete collections of Matlab functions usually known as M-files that extend the Matlab surroundings to solve some particular classes of problems. Numerous research papers meticulous the learning process of Calculus using Matlab [4] and Microsoft Excel [5] but no one study up the learning of basic mathematics. In this 134 P a g e

paper, we will talk about how to learn basic mathematics using symbolic toolbox of Matlab [6] and here we will use the latest version R2016a of Matlab to illustrate the various aspects. II. THE MATLAB DESTOP LAYOUT The Matlab layout is divided into four windows (indicated by ovals in Fig.1) : 1. Current Folder (Left) - It has a toolbar with your current directory shown. All your work will be saved in this directory. 2. Command Window (Centre) - Where you will type in all commands after the double arrow >> 3. Workspace (Top right) - Which will show your current variables. 4. Command History (Bottom) - Showing a history of commands in the order you typed them. At the top of the screen we will see tabs Home, Plots and Apps. When you start Matlab, it shows all modes (menu items) in Home tab grouped by their functions. At the bottom of Home, Plots and Apps tabs, you will see names of the functional groups for a particular tab. Figure 1: Matlab desktop layout III. BASIC MATHEMATICS TOPICS AIDED WITH MATLAB 3.1 Matlab as a Calculator Matlab can be used as a powerful calculator. You can use operators to add, to subtract, to multiply, to divide and to exponentiation.matlab prints the answer and assigns the value to a variable 135 P a g e

called ans. If you want to perform further calculations with the answer, you can use the variable ans rather than retype the answer. Figure 2 : Matlab as calculator Figure 3 : calculator 3.2 Order of Precedence It is essential to note the order in which algebraic expressions are calculated. This is called the order of operations or the order of precedence. As you probably expect, multiplication and division are calculated before any addition and subtraction. In general, the arithmetic operators in order of precedence from highest to lowest level are shown in the following Table 1: Table 1 : order of precedence Precedence Operator Name of operator 1 (...) Parentheses 2 ^ Exponentiation 3 / Division 4 * Multiplication 5 + Addition 6 - Subtraction Expressions can be evaluated from left to right using PEMDAS rule i.e. starting with parentheses, then use power operation (exponentiation) having the highest order of precedence, followed by both multiplication and division having equal precedence, followed by both addition and subtraction having equal precedence. Fig.4 shows the influence of the parentheses location on the expression. 136 P a g e

Figure 4 : influence of parentheses on the arithmetic expressions 3.3 Factoring and Expanding Polynomials Using Matlab s Symbolic Math Toolbox, you can carry out algebraic or symbolic calculations such as factoring polynomials. To perform symbolic computations, you must define the variable in the expression using the command syms x to define x variable. Fig.5 shows how to factorize and the polynomial expression in Matlab using the command factor(expression).we can use the expand(expression) command to verify the result of factoring. Figure 5 : factoring and expanding polynomials 137 P a g e

3.4 Arrays, Vectors and Matrices An array is a collection of values that are represented by a single variable name. One-dimensional arrays are called vectors and two-dimensional arrays are called matrices. 3.4.1 Row and Column Vector An array of dimension is called a row vector, whereas an array of dimension is called a column vector. The elements of vectors in Matlab are enclosed by square brackets and are separated by spaces or by commas. So, a row vector may be defined as or. Column vectors are created in a similar way, however, semicolon must separate the components of a column vector. On the other hand, a row vector is converted to a column vector using the transpose operator. The transpose operation is denoted by an apostrophe or a single quote. So, a column vector may be defined as or. Figure 6 : vector and column vectors 3.4.2 Matrix Arithmetic Operation with Matlab A matrix is an array of numbers. To type a matrix into MAT LAB, you must begin with a square bracket, [ 138 P a g e

separate elements in a row with spaces or commas use a semicolon to separate rows end the matrix with another square bracket, ]. To enter a matrix type, in Matlab. MATLAB allows arithmetic operations : addition( + ), subtraction( ), multiplication( ) and power( ^ ) to be carried out on matrices. Thus, A+B or B+A is valid if A and B are of the same size. A*B is valid if number of columns in A is equal to number of rows in B. A^2 is valid if A is square and equals A*A. α*a or A*α multiplies each element of A by scalar α. On the other hand, array arithmetic operations are done element-by-element. For this, the period character is used which distinguishes the array operations from the matrix operations. However, since the matrix and array operations are the same for addition (+) and subtraction ( ), therefore the operators and are not used. The list of array operators is shown below in Table 2. Table 2 : array operators Element by element multiplication Element by element division Element by element exponentiation Table 3 : summary of matrix and array operations Operation Matrix Array Addition Subtraction Multiplication Division Left division Exponentiation 139 P a g e

Figure 7: matrix operations with Matlab 3.5 Solution of Simultaneous Linear Equations Solving a system of simultaneous linear equations is easy in Matlab. Solving a set of equations on a computer is nowadays as basic as doing arithmetic additions using a calculator. Let's see how easy Matlab makes this task. Consider the following set of equations -6x - 2y + 2z = 15-3x + 4y - 3z = 13 2x + 4y - 7z = -9 In the matrix form the system of linear equations can be written as 140 P a g e

where is the coefficient matrix, is the column vector of unknown and is the column vector of known constants. So, we can solve these linear equations in Matlab with the command (Note that the symbol is different from the ordinary division sign).we can test the result by performing the command and Matlab answer will be the column vector as shown in Fig.8 below. Figure 8 : Solving a system of linear equations 3.6 Operations on Polynomials In Matlab, a polynomial is represented by an array (row vector) of its coefficients in descending order. For instance, polynomial is represented by the vector and the polynomial is represented by the vector. If any coefficient in the polynomial is missing, then we must enter zeros in the appropriate place(s) in the vector. We can add or subtract two polynomials by just adding or subtracting the coefficient vectors of same size. Matlab can also multiply and 141 P a g e

divide two polynomials by using the command conv(polynomial 1, polynomial 2) and deconv(polynomial 1,polynomial 2) respectively. Fig.9 shows various operations on polynomials. Figure 9 : operations on polynomials 3.7 Solving Polynomial Equations In Matlab, we can solve quadratic, cubic and higher degree polynomial equations with the command solve(equation, x). The function returns the roots of the equation. Fig.10 shows the solution of polynomial equations. 142 P a g e

Figure 10 : solution of polynomial equations 3.8 Built-in Matlab functions and plotting Matlab has the same build - in functions that you see in scientific calculators. A few examples are sin(x), cos(x), tan(x), log(x), sqrt(x), and exp(x). Matlab also recognizes the inverse trigonometric functions. For instance, the inverse tangent is atan. we can use the command ezplot( function ) to make 2D(two dimensional) graphs. 143 P a g e

Figure 11 : Matlab build in functions Figure 12 : Plotting functions IV. CONCLUSION In this paper, we study how to use computer technology in education. Especially, how to understand basic mathematics using Matlab software through eight selected topics. In our future study, we will judge the performance of the students who study basic mathematics using conservative lecture style and trough Matlab. 144 P a g e

REFERENCES [1] P. Cretchley, C. Harman, N. Ellerton, G. Fogarty, Computation, exploration, visualisation : Reaction to Matlab in first-year Mathematics, Delta 99 Proceedings, Australian Symposium on Modern Undergraduate Mathematics, 1999, 81-86. [2] P.Cretchley, C.Harman, N.Ellerton, G.Fogarty, MATLAB in early undergraduate mathematics: an investigation into the effects of scientific software on learning, Mathematics Education Research Journal, 12(3), 2000, 219-233. [3] P. Galbraith, C. Haines and M. Pemberton, Making the difference, edited by J. M. Truran and K. M. Truran (Sydney: Mathematics Education Research Group of Australasia Inc.), 1999, 215-222. [4] P. K. Dunn and C. Harman, Calculus demonstrations using MATLAB, International Journal of Mathematical Education in Sciences and Technology, 33(4), 2002, 584 596. [5] S. Kadry, Performance Evaluation of Using Excel to Study Calculus, International Journal of Research & Reviews in Computer Science; Mar2011, Vol. 2 Issue 2, 2011, 278. [6] Symbolic Math Toolbox User s Guide (2006), The MathWorks, Inc. (www.mathworks.com) [7] C. Moler, numerical computing with matlab ( Natick, MA, Electronic edition, The MathWorks, Inc., 2004) [8] J. Michael Fitzpatrick & Akos Ledeczi, Computer Programming with Matlab (e-book, Fitzle LLC, Ist revised pdf edition, 2015) [9] Laurene V. Fausett, applied numerical analysis using matlab (India, Pearson Education, 2nd edition, 2009) [10] Steven C. Chapra, applied numerical methods with matlab for engineers and scientists (India, McGraw Hill Education, 3 rd edition, 2012) [11] Kanti Bhushan Datta, Matrix and Linear Algebra Aided with Matlab (India, PHI, 3rd Revised edition 2016) 145 P a g e