Advanced Numerical Methods with Matlab 1: Function Approximation and System Resolution
By Bouchaib Radi and Abdelkhalak El Hami
()
About this ebook
Most physical problems can be written in the form of mathematical equations (differential, integral, etc.). Mathematicians have always sought to find analytical solutions to the equations encountered in the different sciences of the engineer (mechanics, physics, biology, etc.). These equations are sometimes complicated and much effort is required to simplify them. In the middle of the 20th century, the arrival of the first computers gave birth to new methods of resolution that will be described by numerical methods. They allow solving numerically as precisely as possible the equations encountered (resulting from the modeling of course) and to approach the solution of the problems posed. The approximate solution is usually computed on a computer by means of a suitable algorithm.
The objective of this book is to introduce and study the basic numerical methods and those advanced to be able to do scientific computation. The latter refers to the implementation of approaches adapted to the treatment of a scientific problem arising from physics (meteorology, pollution, etc.) or engineering (structural mechanics, fluid mechanics, signal processing, etc.) .
Read more from Bouchaib Radi
Material Forming Processes: Simulation, Drawing, Hydroforming and Additive Manufacturing Rating: 0 out of 5 stars0 ratingsFluid-Structure Interactions and Uncertainties: Ansys and Fluent Tools Rating: 0 out of 5 stars0 ratingsAdvanced Numerical Methods with Matlab 2: Resolution of Nonlinear, Differential and Partial Differential Equations Rating: 0 out of 5 stars0 ratings
Related to Advanced Numerical Methods with Matlab 1
Related ebooks
Matrix Operations for Engineers and Scientists: An Essential Guide in Linear Algebra Rating: 0 out of 5 stars0 ratingsGraph Theory Rating: 0 out of 5 stars0 ratingsNumerical Methods: Using MATLAB Rating: 0 out of 5 stars0 ratingsFundamentals of Optimization Techniques with Algorithms Rating: 5 out of 5 stars5/5Computational Methods in Engineering Rating: 1 out of 5 stars1/5Mathematica by Example Rating: 5 out of 5 stars5/5Concepts of Combinatorial Optimization Rating: 0 out of 5 stars0 ratingsEssential MATLAB for Engineers and Scientists Rating: 2 out of 5 stars2/5Integer Optimization and its Computation in Emergency Management Rating: 0 out of 5 stars0 ratingsLinear Programming: Foundations and Extensions Rating: 0 out of 5 stars0 ratingsAn Introduction to Statistical Computing: A Simulation-based Approach Rating: 0 out of 5 stars0 ratingsMétodos numéricos aplicados a Ingeniería: Casos de estudio usando MATLAB Rating: 5 out of 5 stars5/5Optimization in Engineering Sciences: Exact Methods Rating: 0 out of 5 stars0 ratingsNumerical Methods Rating: 5 out of 5 stars5/5A Friendly Introduction to MATLAB Programming Rating: 0 out of 5 stars0 ratingsVector Calculus Using Mathematica Second Edition Rating: 0 out of 5 stars0 ratingsEssential Mathcad for Engineering, Science, and Math w/ CD: Essential Mathcad for Engineering, Science, and Math w/ CD Rating: 0 out of 5 stars0 ratingsExperiments and Modeling in Cognitive Science: MATLAB, SPSS, Excel and E-Prime Rating: 0 out of 5 stars0 ratingsThe Partition Method for a Power Series Expansion: Theory and Applications Rating: 0 out of 5 stars0 ratingsComputer-Controlled Systems: Theory and Design, Third Edition Rating: 3 out of 5 stars3/5An Introduction to MATLAB® Programming and Numerical Methods for Engineers Rating: 0 out of 5 stars0 ratingsApplied Iterative Methods Rating: 0 out of 5 stars0 ratingsNonlinear Inverse Problems in Imaging Rating: 0 out of 5 stars0 ratingsEngineering and Scientific Computations Using MATLAB Rating: 0 out of 5 stars0 ratingsElasticity: Theory, Applications, and Numerics Rating: 0 out of 5 stars0 ratingsNumerical Methods: Design, Analysis, and Computer Implementation of Algorithms Rating: 4 out of 5 stars4/5Numerical Methods for Scientists and Engineers Rating: 4 out of 5 stars4/5Pattern Recognition Rating: 4 out of 5 stars4/5Statics with MATLAB® Rating: 0 out of 5 stars0 ratingsIntroduction to Digital Systems: Modeling, Synthesis, and Simulation Using VHDL Rating: 0 out of 5 stars0 ratings
Mathematics For You
Algebra - The Very Basics Rating: 5 out of 5 stars5/5Calculus For Dummies Rating: 4 out of 5 stars4/5Introducing Game Theory: A Graphic Guide Rating: 4 out of 5 stars4/5Geometry For Dummies Rating: 5 out of 5 stars5/5Basic Math & Pre-Algebra For Dummies Rating: 4 out of 5 stars4/5Algebra I Workbook For Dummies Rating: 3 out of 5 stars3/5Game Theory: A Simple Introduction Rating: 4 out of 5 stars4/5The Everything Guide to Algebra: A Step-by-Step Guide to the Basics of Algebra - in Plain English! Rating: 4 out of 5 stars4/5The Everything Everyday Math Book: From Tipping to Taxes, All the Real-World, Everyday Math Skills You Need Rating: 5 out of 5 stars5/5Basic Math Notes Rating: 5 out of 5 stars5/5ACT Math & Science Prep: Includes 500+ Practice Questions Rating: 3 out of 5 stars3/5Mental Math Secrets - How To Be a Human Calculator Rating: 5 out of 5 stars5/5Quantum Physics for Beginners Rating: 4 out of 5 stars4/5The Golden Ratio: The Divine Beauty of Mathematics Rating: 5 out of 5 stars5/5Calculus Made Easy Rating: 4 out of 5 stars4/5See Ya Later Calculator: Simple Math Tricks You Can Do in Your Head Rating: 4 out of 5 stars4/5My Best Mathematical and Logic Puzzles Rating: 5 out of 5 stars5/5A Mind for Numbers | Summary Rating: 4 out of 5 stars4/5GED® Math Test Tutor, 2nd Edition Rating: 0 out of 5 stars0 ratingsRelativity: The special and the general theory Rating: 5 out of 5 stars5/5The Thirteen Books of the Elements, Vol. 1 Rating: 0 out of 5 stars0 ratingsIs God a Mathematician? Rating: 4 out of 5 stars4/5The Elements of Euclid for the Use of Schools and Colleges (Illustrated) Rating: 0 out of 5 stars0 ratingsLogicomix: An epic search for truth Rating: 4 out of 5 stars4/5Algebra I For Dummies Rating: 4 out of 5 stars4/5
Reviews for Advanced Numerical Methods with Matlab 1
0 ratings0 reviews
Book preview
Advanced Numerical Methods with Matlab 1 - Bouchaib Radi
Preface
Most physical problems can be expressed in the form of mathematical equations (e.g. differential equations, integral equations). Historically, mathematicians had to find analytic solutions to the equations encountered in engineering and related fields (e.g. mechanics, physics, biology). These equations are sometimes highly complex, requiring significant work to be simplified. However, in the mid-20th Century, the introduction of the first computers gave rise to new methods for solving equations: numerical methods. This new approach allows us to solve the equations that we encounter (when constructing models) as accurately as possible, thereby enabling us to approximate the solutions of the problems that we are studying. These approximate solutions are typically calculated by computers using suitable algorithms.
Practical experience has shown that, compared to standard numerical approaches, a carefully planned and optimized methodology can improve the speed of computation by a factor of 100 or even higher. This can transform a completely unreasonable calculation into a perfectly routine computation, hence our great interest in numerical methods! Clearly, it is important for researchers and engineers to understand the methods that they are using and, in particular, the limitations and advantages associated with each approach. The computations needed by most scientific fields require techniques to represent functions as well as algorithms to calculate derivatives and integrals, solve differential equations, locate zeros, find the eigenvectors and eigenvalues of a matrix, and much more.
The objective of this book is to present and study the fundamental numerical methods that allow scientific computations to be executed. This involves implementing a suitable methodology for the scientific problem at hand, whether derived from physics (e.g. meteorology, pollution) or engineering (e.g. structural mechanics, fluid mechanics, signal processing).
This book is divided into three parts, with two appendices. Part 1 introduces numerical processing by reviewing a few basic notions of linear algebra. Part 2 discusses how to approximate functions, in three chapters: numerical interpolation, differentiation and integration. Part 3 presents various methods for solving linear systems: direct methods, iterative methods, the method of eigenvalues and eigenvectors and, finally, the method of least-squares.
Each chapter starts with a brief overview of relevant theoretical concepts and definitions, with a range of illustrative numerical examples and graphics. At the end of each chapter, we introduce the reader to the various Matlab commands for implementing the methods that have been discussed. As is often the case, practical applications play an essential role in understanding and mastering these methods. There is little hope of being able to assimilate them without the opportunity to apply them to a range of concrete examples. Accordingly, we will present various examples and explore them with Matlab. These examples can be used as a starting point for practical exploration.
Matlab is currently widely used in teaching, industry and research. It has become a standard tool in various fields thanks to its integrated toolboxes (e.g. optimization, statistics, control, image processing). Graphical interfaces have been improved considerably in recent versions. One of our appendices is dedicated to introducing readers to Matlab.
Bouchaib RADI
Abdelkhalak EL HAMI
January 2018
PART 1
Introduction
1
Review of Linear Algebra
We will denote the fields of real and complex numbers by ℝ and ℂ respectively. If there is no need to distinguish between them, we will instead simply refer to the field 𝕂 of scalars. The set E, equipped with the two operations of addition and scalar multiplication, denotes a vector space over 𝕂 (or a 𝕂-vector space).
1.1. Vector spaces
1.1.1. General definitions
DEFINITION.– A vector space over the field 𝕂 is a set E equipped with the two following operations:
– addition, which equipsEwith the structure of a commutative group;
– an outer
product of an element ofEby an element of 𝕂, satisfying the following properties:
- ∀λ, μ ∈ 𝕂, ∀x ∈ E : (λμ)x = λ(μx);
- ∀λ, μ ∈ 𝕂, ∀x ∈ E : (λ + μ)x = λx + μx;
- ∀λ ∈ 𝕂, λ(x + y) = λx + λy;
- ∀x ∈ E: 1x = x(where 1 is the identity element of 𝕂).
The elements of E are called vectors.
DEFINITION.– Let F be a subset of the vector space E. F is a vector subspace of E if it is closed under the operations of E. In other words:
– ∀x, y ∈ F, x + y ∈ F;
– ∀λ ∈ 𝕂, ∀x ∈ F, λx ∈ F.
DEFINITION.– Let E be a 𝕂-vector space, and suppose that F and G are two vector subspaces of E.
1) The sum ofFandG, written asF + G, is defined as the set:
This is a vector subspace ofE.
2)F + Gis said to be a direct sum ifF ∩ G = {0}. If so, we write this sum asF ⊕ G.
3) If we also have thatE = F ⊕ G, we say thatFandGare supplementary subspaces.
THEOREM.– Suppose that F and G are supplementary. Then, for every element x of E, there exists a unique pair (y, z) in F × G such that x = y + z.
1.1.2. Free families, generating families and bases
DEFINITION.– Let B = {x1, …, xp} be a family of vectors in E.
– We say thatBis related if one of its vectors is a linear combination of the others, i.e.:
– We say thatBis free if it is not related, in which case its vectors are said to be linearly independent.
– We say thatBis a generating family ofE(or generatesE) if every element ofEis a linear combination of the elements ofB.
DEFINITION.– A family B = {e1, …, ep} of elements in a vector space E is said to be a basis of E if it is free and generates E.
The canonical basis is one particular example of a basis, which is defined as follows:
DEFINITION.– The canonical basis is the basis of vectors {ei}i=1…n such that the j-th element of ei is 0 except when i = j, in which case it is equal to 1.
Thus, every vector x in ℝn may be decomposed with respect to the canonical basis as follows:
THEOREM.– In a vector space generated by a finite family of elements, every basis has the same number of elements.
DEFINITION.– The dimension of a vector space E generated by a finite family is defined as the number of elements in any given basis of E. This value is denoted as dim E
.
In any vector space with finite dimension n, we always use the same basis, B = {e1, …, en}. Thus, each vector x of E may be uniquely decomposed with respect to B as follows:
The element X = (x1, …, xn) in 𝕂n may therefore be unambiguously chosen as a representation of x.
THEOREM.– Let E be an n-dimensional vector space, and suppose that F and G are two vector subspaces of E. Then:
1) every free family ofnvectors is a basis;
2) every generating family ofnvectors is a basis;
3) dimF ≤ dimE;
4) ifF ∩ G = {0}, then dimF + dimG ≤ dimE;
5) in particular, ifE = F ⊕ G, then dimF + dimG = dimE.
1.2. Linear mappings
DEFINITION.– Let E and F be two vector spaces over the field K. A mapping u: E → F is said to be a linear mapping if it satisfies the following properties:
– u(x + y) = u(x)+ u(y) ∀x, y ∈ E;
– u(λx) = λu(x) ∀x ∈ E, ∀λ ∈ K.
The set of linear mappings from E to F is denoted as (E, F ).
The linear mappings are the mappings that preserve the vector space structure.
DEFINITION.–
1) The kernel ofu, written as Ker(u), is the vector subspace ofEdefined by:
2) The image ofu, written as Im(u), is the vector subspace ofFdefined by:
THEOREM.–
– uis injective if and only if Ker(u) = {0}.
– uis surjective if and only if Im(u) = F.
DEFINITION.– Let IE (respectively IF) be the identity mapping of E (respectively F). The linear mapping u from E to F is said to be invertible if there exists a linear mapping u−1 from F to E such that:
[1.1]
It follows that every invertible linear mapping is bijective, i.e. injective and surjective.
THEOREM.– Let u ∈ (E, F). The following are equivalent:
– uis injective;
– uis surjective;
– uis bijective.
THEOREM.– Let u ∈ (E, F ) and suppose that B = {e1, …, en} is a basis of E. Then:
– ifuis injective, {u(e1),…, u(en)} is a basis of Im(u);
– ifuis surjective, {u(e1),…, u(en)} is a generating family ofF;
– the following relation holds:
DEFINITION.– The rank of a linear mapping, denoted as rank u
, is the dimension of Im(u).
1.3. Matrices
In this section, E, F and G are three vector spaces over the field 𝕂, with finite dimensions n, p and q respectively. The families BE = {e1, …, en}, BF = {f1, …, fp} and BG = {g1, …, gq} are the bases of E, F and G.
DEFINITION.– Let u ∈ (E, F ). The matrix of u with respect to the bases BE and BF is defined as an array A of scalars (i.e. elements of 𝕂) with p rows and n columns such that the j-th column of A is given by the components of the vector u(ej) with respect to the basis BF.
If aij is the element of A at the intersection of the i-th row and the j-th column, then:
[1.2]
The matrix A, which has p rows and n columns, is said to be of format or type (p, n), or is called a p × n (p-by-n) matrix.
It does not make much sense to prove results on matrices without referring to the linear mappings that they represent. We will use this link between mappings and matrices to define operations on matrices.
1.3.1. Operations on matrices
DEFINITION.– Let A and B be two p × n matrices. The sum A + B of A and B is the p × n matrix C with coefficients cij defined by:
The matrix C thus obtained is the matrix of the linear mapping obtained by summing the two linear mappings represented by A and B.
Similarly, we define the product of a scalar λ and a matrix A as the matrix λA