Welcome to Numerical Methods!
In your journey through Mathematics so far, you have probably spent a lot of time looking for "exact" answers—like \(x = 5\) or \(x = \sqrt{2}\). But in the real world, many equations are too messy to solve perfectly. This is where Numerical Methods come in! Think of this chapter as a toolkit of high-tech "approximation" strategies. We will learn how to find "good enough" answers to difficult problems using two main techniques: Locating Roots and the Trapezium Rule.
Don't worry if these terms sound fancy; by the end of these notes, you'll see they are just logical ways to use your calculator to solve tricky puzzles.
1. Locating Roots: The "Change of Sign" Method
A root is simply the value of \(x\) that makes an equation equal to zero. In other words, it is where the graph of \(y = f(x)\) crosses the x-axis.
How it Works: The Analogy
Imagine you are walking from one side of a fence (the negative side) to the other (the positive side). To get there, you must cross the fence at some point. In math, if a continuous function changes from a negative value to a positive value between two points, there must be a root (a zero) sitting between them!
Step-by-Step: Showing a Root Exists
If you are asked to show that a root of \(f(x) = 0\) lies in the interval \([a, b]\), follow these steps:
- Calculate the value of \(f(a)\).
- Calculate the value of \(f(b)\).
- Look at the signs. If one is positive and the other is negative, write a concluding sentence: "Since there is a change of sign and the function is continuous, there is at least one root in the interval \([a, b]\)."
Example
Show that \(f(x) = x^3 - 2x - 5\) has a root between \(x = 2\) and \(x = 3\).
\(f(2) = (2)^3 - 2(2) - 5 = 8 - 4 - 5 = -1\) (Negative)
\(f(3) = (3)^3 - 2(3) - 5 = 27 - 6 - 5 = 16\) (Positive)
Since there is a change of sign between \(f(2)\) and \(f(3)\), a root must exist between 2 and 3!
Common Mistake to Avoid!
Check your mode: If the equation involves trigonometry (like \(\sin x\) or \(\cos x\)), your calculator must be in Radians mode unless the question specifically uses degrees.
Quick Review: Locating Roots
- Rule: If \(f(a)\) and \(f(b)\) have different signs, a root exists between \(a\) and \(b\).
- Condition: The function must be continuous (no gaps or breaks in the graph).
2. Numerical Integration: The Trapezium Rule
Sometimes, we want to find the area under a curve, but the function is too difficult to integrate using normal methods. The Trapezium Rule lets us estimate the area by dividing it into several strips that look like trapezia (or trapezoids).
Understanding the Formula
The total area is approximately the sum of the areas of these trapezia. The formula looks like this:
\( \int_{a}^{b} y \, dx \approx \frac{1}{2}h [ (y_0 + y_n) + 2(y_1 + y_2 + ... + y_{n-1}) ] \)
Let's break that down into simple parts:
- \(h\) (the width of each strip): This is calculated as \(h = \frac{b - a}{n}\), where \(n\) is the number of strips.
- \(y_0\) and \(y_n\): These are the "end" heights (the first and last y-values).
- \(y_1, y_2, \dots\): These are the "middle" heights.
The "Memory Trick" for the Formula
Think of the formula as:
Area \(\approx \frac{1}{2} \times \text{width} \times [ (\text{Ends}) + 2 \times (\text{Middles}) ]\)
Step-by-Step Process
- Find \(h\): Subtract the start (\(a\)) from the end (\(b\)) and divide by the number of strips.
- Create a Table: List your \(x\) values (starting at \(a\) and adding \(h\) each time) and calculate the corresponding \(y\) values.
- Plug into the Formula: Add the first and last \(y\) values together. Then add up all the middle \(y\) values and multiply them by 2. Finally, multiply everything by \(\frac{1}{2}h\).
Is it an Overestimate or Underestimate?
Did you know that the accuracy of the Trapezium Rule depends on the shape of the curve?
- If the curve is convex (bending downwards like a bowl: \(\cup\)), the trapezia sit above the curve, giving an overestimate.
- If the curve is concave (bending upwards like a hill: \(\cap\)), the trapezia sit below the curve, giving an underestimate.
Did you know?
The more strips (\(n\)) you use, the smaller \(h\) becomes, and the more accurate your answer will be! It's like using more, thinner planks of wood to cover a curved floor—you'll get a much better fit.
Quick Review: Trapezium Rule
- \(h = \frac{\text{upper limit} - \text{lower limit}}{\text{number of strips}}\)
- Use the formula: \(\frac{h}{2} [\text{First } y + \text{Last } y + 2(\text{Rest of the } y\text{s})]\)
- Strips vs. Ordinates: If the question says "4 strips," you will have 5 \(x\) and \(y\) values (ordinates). Always check this carefully!
Summary Checklist
Before you head into your exam, make sure you can:
- Locate a root by checking for a sign change between two \(x\) values.
- Explain why a sign change might not mean a root exists (e.g., if the graph has a vertical asymptote/gap).
- Calculate the strip width (\(h\)) for the Trapezium Rule.
- Correctly use the Trapezium Rule formula to estimate an area.
- Identify if your estimate is an overestimate or underestimate by looking at the curve's shape.
Don't worry if this seems tricky at first! Numerical methods are all about following a clear sequence of steps. Practice a few table-style questions for the Trapezium Rule, and you'll be an expert in no time!