Numerical mathematics

Numerical Mathematics. It is a branch of Mathematics (from Lat. Mathematĭca, and this one from Gr. Μαθηματικά, derived from μάθημα, knowledge) in which the objective is not the study of a particular mathematical entity; the Mathematical Numerical aims the development of methods for solving the various mathematical problems by a finite number of numeric operations. In other words, what gives unity to this branch of Mathematics is not the type of problem to be solved, but the method that will be applied: numerical operations in finite quantity.

It is clear that, as a general rule, mathematical problems cannot be solved exactly in this way. Therefore, Numerical Mathematics does not set out to arrive at exact results; not even to as accurate results as possible. The purpose here will be to get results as accurate as necessary. The solution methods used by Numerical Mathematics are called generic numerical methods and, in contrast, the other mathematical methods will be called analytical methods. The disregard of absolute accuracy allows Numerical Mathematics to elaborate much more general methods than exact analytical methods. Since these are numerical methods (only arithmetic operations are required, not symbolic-type algebraic operations) these methods can be easily implemented on a digital computer. For all these reasons, Numerical Mathematics is of great importance today.

Summary

[ hide ]

  • 1 Story
  • 2 Sources of error
  • 3 Modeling and its errors
    • 1 Truncation errors
    • 2 Errors in the calculation process
      • 2.1 Observation errors
      • 2.2 Mistakes
      • 2.3 Rounding errors
    • 4 Examples
      • 1 Example # 1
    • 5 Applications in computing
    • 6 See also
    • 7 Bibliography
    • 8 External links

History

Although, as a structured and rigorous science, Numerical Mathematics is relatively young ( XIX and XX centuries ), from very remote times approximate numerical methods were used. In the Rhind papyrus (the oldest preserved mathematical document) dating from around 2000 years ago, the result of the development of the ancient Egyptian civilization , there are, among more than 80 solved problems, approximate methods to calculate the volume of a heap of fruits and the area of ​​a circle, taking it as that of a square whose side was 8/9 of the diameter of the circle. In babylon(centuries XX to III, ane) approximate methods for calculating square roots were already known. From ancient Greece , the works of Archimedes ( 3rd century BC) in squaring the circle that allowed him, approaching a circumference by means of inscribed and circumscribed polygons, to reach an approximation , are famous .

Regarding the mathematical knowledge of Egyptian culture, the first records that are available are the Moscow and Rhind Papyri , written approximately in 1850 BC and 1650 BC, respectively. Both documents include examples of calculations involving the handling of linear equations with one and two unknowns. As for geometry, they successfully determined the area and volume of various geometric figures: among them, the volume of a truncated pyramid.

It is with the Greeks that mathematics as a formal science appears for the first time in the 5th century BC, using the deductive method as a fundamental tool to prove that a result is true. The theorems that are attributed to Thales of Miletus and Pythagoras are some of the first examples in which this methodology is applied and the book of the Elements of Euclid is the most complete sample of it. Greek mathematics was concerned with studying problems of geometry , arithmetic , number theory, and algebra .

Archimedes ( 287 – 212 ) is possibly the most brilliant applied mathematician of antiquity; He owes several examples of very ingenious methods to approximate the solution of problems of hydrodynamics and statics. He wrote more than ten works; among them the study of the conics, the sphere and the cylinder, on the spiral and on the calculation of the volumes of revolution of ellipses, parabolas and hyperbolas that revolve around an axis of symmetry and the calculation of the area of ​​a parabola. From the end of the 17th century , the theory of infinite series began to emerge, linked to mathematicians such as the Swiss Euler , the German Leibniz and the English Newton andTaylor without which it would have been impossible to justify or deduct many of the numerical methods discussed later.

Archimedes’ method was later applied by other mathematicians and already in the first half of the 15th century the Arabic Kashi had obtained an approximation of 17 decimal places for π using polygons of up to 805,306,368 sides. A notable example of numerical calculations are the logarithm tables published in 1614 by the Dutchman Neper in which the logarithms of the trigonometric functions appear for 8 exact figures for angles from 0 to 90 degrees with the passage of one minute. Thanks to the gigantic numerical work of Neper himself and others such as the Swiss Bürgi , the Scottish Briggsand the Dutch Vlacq already in 1628 there were tables of decimal logarithms of the numbers from 1 to 100 000 calculated with 10 exact decimal places.

From the appearance of the first human settlements, stones, strings, rods were used as instruments of measurement and calculation; later, the appearance of the abacus greatly facilitated the arithmetic calculation. The introduction of decimal and zero notation in the 12th century by the Arabs standardized the notation and numerical calculation among the various peoples. But it was not until the beginning of the century XVII , with the invention of logarithms tables, the numerical calculation experienced a major breakthrough for the development of science in the century Siglo_XVII and XVIII . The logarithm table was created by John Napier (1550-1617), who was one of the first to study the notation and handling of different number bases such as binary or exponential. His studies on the relationship between geometric and arithmetic progressions led him to define the base logarithm 1 / e that he published in 1615 .

When Napier died, his friend Henry Briggs (1561-1630) , the first Savilian professor of geometry at Oxford , resumed and simplified his work in order to generalize it to any base, in particular the decimal base , which he published in 1617 with precision. fourteen figures. With the logarithm table, multi-figure multiplications are converted to simple sums, and raising a number to an exponent is reduced to a simple multiplication . This made it possible to tackle astronomical , ballistic and practical problems that seemed incalculable. Soon after, it made its appearance in 1624.the slide rule that remained a personal calculation instrument par excellence until the appearance of the first pocket calculators in 1970 .

With this background, the precursors of calculus: Descartes , Fermat , Pascal , Wallis , Barrow and Gregory , among others, developed analytical geometry , various methods to determine the equation of the tangent to a given curve; the calculation of maximums and minimums and the calculation of squares, among other topics. These results paved the way for that by the end of the century XVII , Leibnitz and Newton ‘s systematize, relate and unify in a powerful methodology: the calculation differential andintegral .

At the beginning of the 18th century , another great step took place with the appearance of the Finite Differences Calculation (founded by the English Taylor and Stirling ), which constitutes the theoretical basis to support various numerical methods.

Figures like Isaac Newton (1642-1727) made fundamental contributions to precisely define the concept of instantaneous speed, the force of attraction between bodies, the gravitational force and the decomposition of light , among many other things. From a numerical point of view, Newton invented several algorithms that are still used to this day, such as the method to find the zeros of a function or the approximation of derivatives by means of divided differences or the construction of interpolation polynomials .
At that same time the use of power series was introducedIt allowed a large set of functions to be approached locally with the desired precision and opened the possibility of attacking more complex problems that appear in the study of physical phenomena such as the vibrations of a string, the diffusion of heat or the behavior of fluids. For example, James Gregory (1638-1675) in 1671 determined the power series for the Arctang (x) function which allowed us to approximate, as much as desired, the value of π
(π / 4) = 1 – (1/3 ) + (1/5) – (1/7) + …

Following Newton’s example , several first-order mathematicians contributed to the solution of numerical problems: Leonard Euler (1707-1783) used the Taylor series to create the method that bears his name and that approximates the solution of problems with initial conditions in ordinary differential equations; Joseph Louis Lagrange (1736-1813) gave a way to construct interpolation polynomials. Karl Friedrich Gauss (1777-1855) contributed significantly with the method of least squares and its quadrature formulas that open the door to the use of families of orthogonal polynomials for the approximation of integrals; his contributions to the study of the solution of systems of linear equations continue to be fundamental in the teaching of linear algebra. He is also credited with inventing the fast Fourier transform, an algorithm that went unnoticed until it was rediscovered by Cooley and Tukey in 1963.

During the second half of the 19th century, mathematics entered a stage of rigorism necessary to firmly cement its extensive body of knowledge. Weierstrass and Cauchy, among others, are responsible for the rigorous concept of limit that is fundamental in analysis. This explains why the obtaining of numerical calculations passed to second term although the development of functional analysis is closely linked to the approximation of functions in normed spaces. Finally, it should be mentioned that, in the early 20th century, Richardson first applied the finite difference method for the analysis of stresses in different materials and that, in 1928, the famous article by Courant, Friedrichs and Lewy on the analysis appeared stability of these methods. To learn more about the history of numerical analysis, consult.

The emergence and consolidation of Functional Analysis from the end of the 19th century to the beginning of the 20th, allowed Numerical Mathematics to take a qualitative leap by clarifying the basic concepts of the functional approach. With the emergence of digital computers in the mid-twentieth century and its continuous development, Numerical Mathematics has received a strong stimulus, since the digital computer has made possible the practical application of many numerical methods, which with manual work, they would only have a theoretical value. On the other hand, digital computers have brought the need to develop new numerical methods to respond to new problems that previously could not even be imagined.

Sources of error

The fact that Numerical Mathematics places its attention on approximate methods does not mean that errors are unimportant; on the contrary: an approximate method is only valuable if it allows, in some way, to have an estimate of the magnitude of the error that is made with its application. For this reason, it is necessary to spend time studying the various types of errors that can occur in solving a real problem. Figure 1 schematically shows the steps that are usually followed to reach the solution of a real problem and the errors that can be introduced in the different steps. You might think that the way to go is to try to eliminate all possible sources of error, but it is not so: some types of error are inevitable and, as will be seen, some are advisable.

Modeling and its errors

The first step in solving a problem is to move from a real-world problem situation to a

Driagram 1

mathematical model. This mathematical model generally consists of a set of interrelated mathematical objects, such as differential equations, integrals, algebraic equations and inequalities, tables, diagrams, etc. trying to reflect (not copy) the essential aspects of the real world that constitute the problem situation of the natural world. This step is often called mathematical modeling of the problem.

Note that the model cannot, and should not, accurately reflect the real world but only the aspects of it that are important in the problem to be solved, according to the use to which the results will be put. Actually, mathematical modeling has a lot of art; if the model copies too many details of reality, the mathematical model is likely to be so complicated that it does not help to understand the essence of the problem, and even that it cannot be solved later; if important aspects of the real world are ignored then it may happen that the model is too crude an approximation of reality and that absurd conclusions can be reached from the model.

The art is to properly decide which aspects of the real world should be reflected in the model and which should not, so that modeling errors are acceptable for the objectives pursued. For example, for most mechanical problems it is often assumed that the acceleration produced by the force of gravity is 9.8 m / sec2, regardless of where on earth the phenomenon occurs; in reality this acceleration varies from 9,780 at the equator to 9,832 in the polar regions; This assumption does not cause great errors in common problems, but in launching rocket boosters from artificial satellites, it is necessary to take into account the gravitational acceleration of each place on Earth where the propeller rocket flies, otherwise they are introduced intolerable (modeling) errors.

For the purposes of Numerical Mathematics, modeling errors are usually classified (along with measurement errors) as inherent errors, in the sense that they cannot be eliminated or diminished by the mathematical treatment of the problem, since they are present from it. problem formulation.

Truncation errors

The second stage in solving a problem is to establish the methods or algorithms that will be used to solve the proposed mathematical model. Sometimes these methods are accurate, but almost always this is either not possible or not practical. Most of the exact methods only apply to very simple and specific situations that rarely occur in real problems. For example, algebraic equations of degree greater than 4 can only be solved by exact methods when they have integer or rational solutions (Rufini’s method) which always happens in school problems but almost never in reality; non-algebraic equations (that is, trigonometric, logarithmic, exponential, etc.) only admit solutions by exact methods in very trivial cases; the exact integration methods,

For all these reasons, on a large number of occasions it is necessary to resort to non-exact methods in the solution of the obtained mathematical model. The error introduced in the process due to the inaccuracy of the solution method used is usually called a truncation error. This word is used because the inaccuracy of the method used often comes from using somewhere in a process, only a finite number of terms in an infinite series (that is, truncating a series). However, this is not the only reason that a method is not exact; sometimes the error occurs by substituting a derivative for a finite quotient of increments or an integral with a finite sum of many small addends, or by stopping an infinite convergent process.

Errors in the calculation process

Once the mathematical model solution algorithm is defined, we proceed to the solution. At present, the solution is executed, for the most part, by means of an electronic calculator or by means of a digital computer with a suitable program. Three types of errors can be introduced at this stage of the process:

Observation errors

These are the errors contained in the data due to the imperfection of the measurement instruments or the observation methods used or the little information about the problem that is being solved. Sometimes the objectives pursued do not justify using higher quality data, which can be very expensive. For example, measuring a temperature with an error less than 0.01 degrees Celsius requires extremely expensive instruments that few laboratories in the world currently have and, possibly, the desired result will not be greatly affected by this small measurement error. . As already mentioned, measurement errors (along with modeling errors) are part of the so-called inherent errors, given their external nature to the mathematical processing of the model.

Mistakes

In manual work these are those frequent errors that are introduced, for example, when you say that “three times two is five” or when you press a wrong key on the calculator. With the use of computers, mistakes do not usually occur at the time the program is run, but they can be present in the elaborated program and its consequences can sometimes go unnoticed for years. When the numerical work was done by hand, the calculation algorithms were carried out using tables, and “check columns” always appeared in them, intended to perform redundant operations only with the aim of detecting mistakes. With the use of digital computers,

Rounding errors

These errors occur when one decimal number is replaced by another with fewer digits. Later on, this type of error will be explored, but for the moment it can be anticipated that they are constantly present, whether you work by hand or use a calculator or a sophisticated computer. They are due to the nature of the numbering system used, which is based on figures and does not allow all real numbers to be represented by a finite number of digits. For example, when using 0.333333 instead of 1/3 or 3.1416 instead of π, rounding errors are made.

Unlike mistakes where all you can do is try to avoid them, with rounding errors you have to learn to live together; they are unavoidable and all that is needed is, on the one hand, to keep them small enough so that they do not significantly affect the results you want to achieve and, on the other hand, not to try to make them overly small (for example, using a very small amount large decimal places) because this results in unnecessarily slow algorithms.

Examples

Example 1

From a certain point in space a small object is thrown to the ground (for example, a pebble) and you want to know how far it will travel in its path from the hand to the floor.

Solution: First it is necessary to mathematically model the problem. As it is a mechanical problem, it is necessary to resort to the laws of Mechanics to elaborate a suitable model. In the modeling process some approximations will have to be made that will introduce modeling errors.

The following hypotheses will be taken:

  • The thrown particle will be treated as if it were a point.
  • The particle will be considered to be only attracted to Earth and not to the Moon or other celestial bodies.
  • The value of 9.8 m / sec2 will be taken as the acceleration of gravity.
  • The effect of air pushing force on the particle will be ignored.
  • The friction between the air and the particle will not be taken into account.
  • It will be assumed that the air is at rest, that is, that there is no wind.
  • The ground surface will be approximated as a perfectly horizontal plane.

All these hypotheses are idealizations that will allow us to arrive at a sufficiently simple mathematical model, at the cost of introducing modeling errors. The modeling error introduced is assumed to be reasonably small for the purposes of the desired result. One of the first steps in the mathematical modeling of a problem is the definition of a suitable reference system. The moment in which the stone is thrown (in which it leaves the hand) will be taken as the initial moment (t = 0). Regarding the spatial reference system, a coordinate plane will be taken with its x axis placed on the ground and the vertical y axis passing through the point where the particle leaves the hand. The x axis is taken in such a direction that the path of the particle is carried out in the xy plane. The reference system is shown in figure 2,

To obtain the mathematical model, the well-known Newton’s Second Law of Mechanics will be used: “The sum of the forces acting on a particle is equal to the product of its mass due to its acceleration.” This law establishes a vector equality, which can be expressed as two scalar equality, taking the respective components of the resulting force and acceleration:
Fx = max (1)
Fy = may (2)
At any instant t = 0, according to the Initial hypotheses, the only force acting on the particle is due to gravitational attraction, which is a vertical force directed downward and of magnitude mg. Hence Fx = 0 and Fy = – mg. Substituting in equations (1) and (2):
max = 0 (3)
may = – mg (4)

From equations (3) and (4) we obtain immediately:

ax = 0 (5)
ay = – g (6)
Since acceleration is the second derivative of displacement with respect to time, equations (5) and (6) translate into:
(d²x) / (dt²) = 0 (7 )
(d²y) / (dt²) = -g (8) where t = 0.
To complete the mathematical model we must add to the equations (7) and (8) the initial conditions of the problem, some of which are a consequence of defined reference system:
x (0) = 0 (9)
y (0) = h (10)
vx (0) = v0 x (11)
vy (0) = v0 y (12)
where h, v0x and v0y are problem data to be obtained by measurement.

Equations (7) to (12) constitute the mathematical model of the problem. Operating with this mathematical model, many things can be predicted: the trajectory of the particle, the place where it collides with the ground, the maximum height it reaches in its path, and so on. Since the problem to be investigated is the distance the stone travels in its path, it will be necessary to work with the model to obtain:

Applications in computing

There are many ways of representing numbers, since ancient times the advantages of using powers of 10 have been known, which gives a decimal positional system in which the position of a digit is important. Using the powers of ten is natural because humans have ten fingers on their hands, but there are other systems that use the powers of other numbers. The Babylonians had a sexagesimal system and there are traces of it in our way of measuring time. For computers the most natural thing is to use powers of two, since they store the characters in bytes that in turn are made up of 8 bits. Each bit can take two values, one if it is on and zero if it is off. A byte allows to represent 256 different characters.
A computer word is made up of 4 bytes and a double word of 8 consecutive bytes. When using powers of two, it is said that we are working on a binary basis instead of the decimal base. Some modern computers work in octal base, base 8, or hexadecimal which is base 16.
The easiest way to represent a real number on a computer is in floating point notation. Below, for simplicity, this notation is presented in decimal basis, although computers use other bases. The notation is as follows:
X = + – d1d2d3 …… ..dkdk + 1 …… .. X 10 ^ n
where n is an integer, dk is an integer between 0 and 9, and d1 is nonzero. The sequence of digits dk is known as the mantissa and the integer n as the exponent.

Since the representation of a real number can have infinite mantissa and n can take any value in the integers, it is impossible for a calculation instrument to represent any number exactly; Each calculation instrument has an upper and lower bound for n and can only store a finite number of k digits of the mantissa. If a real with an exponent greater than an is stored; the computer marks an error known as an overflow. If the real has as an exponent an integer less than the lower bound, the machine generates an underflow or lower overflow error. When the mantissa has a number of digits greater than k then the computer rounds the number and stores only k digits.
The rounding procedure consists of the following: first we observe the value of the digit dk + 1; if this is less than or equal to 4, only the first k digits are stored; If dk + 1 is greater than or equal to 5, one is added to the k-th digit and the k digits of the resulting number are stored.
A single or double word can be used to represent a floating point number, the difference is in the number of digits k of the mantissa that they store. If simple words are used to represent the real ones, it is said that it is calculated in single precision or in double precision if double words are used.
How big is the mistake made when representing any real number on a computer? To estimate this, denote by fl (x) the floating point representation of a real number x on a computer with a k-digit mantissa. The relative error Er will be used to estimate the error and it can be proved that

This error is called a rounding error. Consequently, when solving a problem with a computer, most of the time, an approximate problem is solved and not the original one; the results obtained will have, at best, the precision of the computer.

 

Leave a Comment

Scroll to Top