Welcome to Further Numerical Methods!

In your standard A Level Maths course, you learned how to solve equations and integrate functions using exact algebraic methods. But here is a secret: in the real world, most complex equations are actually impossible to solve "perfectly"! Engineers, climate scientists, and economists often use numerical methods—clever ways to find extremely accurate approximations instead of exact answers. In this chapter, we will learn how to turn difficult calculus problems into simple arithmetic that even a basic calculator can handle.

1. Solving Differential Equations Numerically

Sometimes we have a differential equation (an equation involving derivatives like \( \frac{dy}{dx} \)) that we can’t solve using standard integration. Instead of finding a general formula for \( y \), we calculate specific values of \( y \) at small intervals.

The Concept of Step Size (\( h \))

Imagine you are walking along a curved path in a thick fog. You can’t see the whole path, but you have a compass telling you the slope at your current position. If you take a tiny step in that direction, you’ll be close to the path. In math, this tiny step is called the step size, denoted by \( h \). The smaller the \( h \), the more accurate your journey will be!

Approximating the First Derivative

There are two main ways to approximate a gradient at a specific point \( n \):

1. The Forward Difference Method:
This uses the current point and the next point. It's like looking slightly ahead to guess the slope.
\( \left(\frac{dy}{dx}\right)_n \approx \frac{y_{n+1} - y_n}{h} \)

2. The Central Difference Method:
This is usually more accurate! It looks at the point before and the point after to find a "balanced" gradient at the middle point.
\( \left(\frac{dy}{dx}\right)_n \approx \frac{y_{n+1} - y_{n-1}}{2h} \)

Quick Review: Why \( 2h \)? Because the distance from \( y_{n-1} \) to \( y_{n+1} \) is two steps! Think of it as a see-saw balanced at the center point.

Approximating the Second Derivative

To find the rate of change of the gradient (the second derivative), we use values from three consecutive points. This is always done using the Central Difference approach for accuracy:
\( \left(\frac{d^2y}{dx^2}\right)_n \approx \frac{y_{n+1} - 2y_n + y_{n-1}}{h^2} \)

Don't worry if this seems tricky at first! You are essentially just replacing the calculus terms in an equation with these algebraic fractions, then rearranging to find the "next" value, \( y_{n+1} \).

Step-by-Step: Solving a Problem

  1. Identify the differential equation and the given starting values (e.g., \( x_0, y_0 \)).
  2. Substitute the derivative approximations (shown above) into the original equation.
  3. Rearrange the equation to make \( y_{n+1} \) the subject.
  4. Plug in your known values to find the next value in the sequence.
  5. Repeat as many times as the question asks!

Common Mistake to Avoid: When using the Central Difference for the first derivative, remember the denominator is \( 2h \), but for the second derivative, it is \( h^2 \). Don't mix them up!

Key Takeaway: Numerical methods turn "unsolvable" calculus into a series of logical steps using specific coordinates.


2. Simpson’s Rule

In standard A Level Maths, you used the Trapezium Rule to find the area under a curve by drawing straight-topped pillars. Simpson’s Rule is like the Trapezium Rule's much smarter sibling. Instead of straight lines, it uses parabolas (curves) to "hug" the function more closely.

The Formula

The area under a curve between \( x = a \) and \( x = b \) is approximately:
\( \int_{a}^{b} y \, dx \approx \frac{h}{3} [ (y_0 + y_n) + 4(y_1 + y_3 + ... + y_{n-1}) + 2(y_2 + y_4 + ... + y_{n-2}) ] \)

Where:
- \( h \) is the width of each strip: \( h = \frac{b - a}{n} \)
- \( n \) is the number of strips (this must be an even number).
- \( y_0, y_n \) are the "End" values.
- \( y_1, y_3, ... \) are the "Odd" position values.
- \( y_2, y_4, ... \) are the "Even" position values.

Memory Aid: The "1-4-2" Pattern

To remember the coefficients in the brackets, think of this pattern:
First + Last + 4 \(\times\) (Odds) + 2 \(\times\) (remaining Evens)

It always starts with a coefficient of 1, ends with 1, and the middle ones alternate 4, 2, 4, 2...

Example Analogy: If the Trapezium Rule is like measuring a curved field with a straight ruler, Simpson's Rule is like using a flexible tape measure that can bend to match the curves of the fence.

Did you know? Simpson’s Rule is so accurate that if you use it on a cubic function (\( x^3 \)), it actually gives the 100% exact answer, even though it's technically an "approximation" method!

Conditions for Success

  • The strips must be of equal width (\( h \)).
  • There must be an even number of strips (which means an odd number of ordinates/\( y \)-values). If a question gives you 5 \( y \)-values, that means you have 4 strips—which is perfect!

Quick Review Box:
- Forward Difference: Uses \( y_{n+1} \) and \( y_n \).
- Central Difference: Uses \( y_{n+1} \) and \( y_{n-1} \). More accurate.
- Simpson's Rule: Uses curves to find area. Requires even number of strips.
- Formula Pattern: \( \frac{h}{3} [ \text{Ends} + 4(\text{Odds}) + 2(\text{Evens}) ] \).

Key Takeaway: Simpson's Rule is a powerful tool for integration when you can't integrate a function normally. Just watch your even/odd labels carefully!


Summary of Further Numerical Methods

By now, you should feel more confident in realizing that Numerical Methods are just tools to help us navigate complex math. Whether you are using difference approximations to solve a differential equation or Simpson's Rule to find an area, the process is the same: break the big problem into small, manageable steps! Keep your \( h \) values consistent, label your \( y_n \) terms carefully, and always double-check your arithmetic.