We can use numerical methods in all areas of mathematics where we would otherwise struggle to find a solution. Generally, this will include Differential Equations, solving linear systems (Simultaneous Equations in many variables) and finding the derivative of a function at a point. However, at A-Level, we will focus on root finding and Finding the Area under curves.
Numerical integration
Some Functions are not integrable, meaning that there is no antiderivative for that function. However, this doesn't mean that we cannot approximate the area underneath these Functions (ie find an approximate solution for a definite integral). We do this by splitting the area under the integral into smaller areas (or shapes that closely resemble the area of the integral), Finding the Area of each of these areas, and then summing these together to get an approximation.
At A-Level, we focus on a trapezoidal method. This is where we split the area into a series of trapeziums and then sum them. A sketch of how this happens is shown below.
Trapezial method of numerical intregration
The more trapeziums we add, the more accurate the approximation becomes.
Let's formalize this to obtain a formula. Suppose we have a function , and we want to approximate the integral of , with n equally spaced intervals. This means we need n + 1 data points. Let , and then
for . We then find the values of these data points evaluated on the function, so we have .
For any trapezium, the area is given as (width) * (average height of the uneven length sides). In this case, our width is given as . The average height for trapezium i is given as . This means that the area of trapezium i is given as . Summing all of these, we obtain the formula of . As each is counted twice apart from the two endpoints, we can simplify this to .
Find an approximation to using the trapezium rule, with four equally wide strips.
For four strips, we need 5 points. The points are 0, 0.5, 1, 1.5, 2.
The following table shows both and :
| 0 | 0.5 | 1 | 1.5 | 2 |
| 0 | 0.5 | 2 | 4.5 | |
By the given formula, . This means that our approximation to the integral is given by .
If we were to evaluate this integral 'properly', we would obtain , which is close to 5.5, which shows this is a good approximation.
Root finding
Not all Equations can be solved using algebraic methods. This is where using numerical methods to find roots comes in. Not all methods work in all cases, so sometimes we need to be selective about what method we use.
How to locate a root
Suppose there is a function, and we think a root may be located between points a and b. If there is a single root, then the sign of will be different to that of . If the interval is too large between a and b, there may be multiple roots, which could mean that the signs stay the same, even with multiple roots (this happens if there are an even Number of roots).
Locating a root using numerical methods
The image above should allow you to understand how the change of sign indicates a root.
Show there is a root of between -1.5 and -1.4.
and . As there is a change in sign, there is a root of f between -1.5 and -1.4.
How we ensure our content is accurate and trustworthy?
At StudySmarter, we have created a learning platform that serves millions of students. Meet
the people who work hard to deliver fact based content as well as making sure it is verified.
Content Creation Process:
Lily Hulatt is a Digital Content Specialist with over three years of experience in content strategy and curriculum design. She gained her PhD in English Literature from Durham University in 2022, taught in Durham University’s English Studies Department, and has contributed to a number of publications. Lily specialises in English Literature, English Language, History, and Philosophy.
Get to know Lily
Content Quality Monitored by:
Gabriel Freitas is an AI Engineer with a solid experience in software development, machine learning algorithms, and generative AI, including large language models’ (LLMs) applications. Graduated in Electrical Engineering at the University of São Paulo, he is currently pursuing an MSc in Computer Engineering at the University of Campinas, specializing in machine learning topics. Gabriel has a strong background in software engineering and has worked on projects involving computer vision, embedded AI, and LLM applications.
Get to know Gabriel