For an interactive study experience with progress tracking, bookmarks, and solutions, try our reader.
Open in Interactive ReaderChapter Overview
Namaste students! Today we are diving into Numerical Computation, a vital branch of mathematics that focuses on solving problems through mathematical calculations known as 'computing'. From ancient times when humans used fingers and pebbles to count, to the invention of the decimal system by Hindus (400 A.D.) and logarithms by John Napier (1614 A.D.), we have always looked for better ways to calculate. Today, we use numerical methods—techniques involving a finite number of basic arithmetic operations—to solve complex problems that are either impossible or too lengthy for traditional analytical methods.
Think of numerical computation as a journey: You start at an initial point (your first guess), and through a systematic process, you step closer and closer to your destination (the true answer). This process is called iteration, and mastering it is the key to this chapter.
Think of numerical computation as a journey: You start at an initial point (your first guess), and through a systematic process, you step closer and closer to your destination (the true answer). This process is called iteration, and mastering it is the key to this chapter.
What this chapter covers
Understanding Errors in Computation: Round-off, Truncation, Absolute, and Relative ErrorsSignificant Digits and Rounding TechniquesFloating-Point Representation and Number FormatsRoot Finding: An Introduction to Numerical MethodsBisection Method: A Reliable Bracketing ApproachNewton-Raphson Method: A Fast Open-End ApproachConvergence Criteria and Stopping ConditionsPractical Applications and Problem-Solving StrategiesComparing Methods: Advantages and Disadvantages
Learning Objectives
1
Understand the sources of errors in numerical computation: round-off errors (from limitations in decimal representation) and truncation errors (from using finite terms).
2
Calculate absolute error ($|E| = |x_t - x_a|$) and relative error ($|E_r| = |x_t - x_a|/|x_t|$) for given approximations.
3
Represent numbers in floating-point form as $x = f \times 10^p$ where the mantissa satisfies $0.1 < |f| < 1$.
4
Apply symmetric rounding rules: if the next digit is 5 or greater, round up; otherwise, keep the digit.
5
Understand Bolzano's Theorem (Intermediate Value Theorem) and apply it to locate roots within intervals.
6
Use the Bisection Method to find roots by repeatedly halving the interval where a sign change occurs.
7
Calculate the number of iterations required for Bisection to achieve desired accuracy using $n \geq \frac{\log(b-a) - \log \epsilon}{\log 2}$.
8
Apply the Newton-Raphson Method using the iterative formula $x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}$.
9
Distinguish between algebraic equations (containing only polynomial terms) and transcendental equations (containing trigonometric, exponential, or logarithmic functions).
10
Recognize the advantages of each method: Bisection is slow but always converges; Newton-Raphson is fast but requires careful initial guesses.
11
Determine appropriate stopping conditions for iterative processes: function value near zero, consecutive approximations differ by less than tolerance, or maximum iterations reached.
The Power of Iteration: From Guessing to Knowledge
Key Insight
Imagine you're trying to find a person in a crowded room using only 'hot' and 'cold' clues. You make an initial guess about their location, get feedback ('colder!'), adjust your position, and repeat until you're standing right next to them. This is exactly what numerical methods do—they use feedback from the function to refine guesses systematically.
Real-World Application: Engineers designing bridges must solve equations like $f(x) = \text{(load capacity)} - \text{(weight)} = 0$ to find safe dimensions. These equations often cannot be solved with pen and paper. They use numerical methods that iterate: start with a reasonable guess, improve it step-by-step, and eventually find the answer to the required precision.
The Beautiful Truth: Even though we can't solve everything analytically, we can solve almost anything numerically—given enough time and the right method. This has transformed science and engineering, allowing us to build skyscrapers, design airplanes, and model weather patterns.
Your Challenge: In this chapter, you will learn two powerful root-finding methods. Bisection is like a cautious detective—slow but methodical. Newton-Raphson is like a confident athlete—fast and efficient but prone to missteps if not careful. Master both, and you unlock the power to solve problems that seemed impossible before.
Real-World Application: Engineers designing bridges must solve equations like $f(x) = \text{(load capacity)} - \text{(weight)} = 0$ to find safe dimensions. These equations often cannot be solved with pen and paper. They use numerical methods that iterate: start with a reasonable guess, improve it step-by-step, and eventually find the answer to the required precision.
The Beautiful Truth: Even though we can't solve everything analytically, we can solve almost anything numerically—given enough time and the right method. This has transformed science and engineering, allowing us to build skyscrapers, design airplanes, and model weather patterns.
Your Challenge: In this chapter, you will learn two powerful root-finding methods. Bisection is like a cautious detective—slow but methodical. Newton-Raphson is like a confident athlete—fast and efficient but prone to missteps if not careful. Master both, and you unlock the power to solve problems that seemed impossible before.
The key difference between Bisection and Newton-Raphson: Bisection always works (guaranteed convergence) but is slow. Newton-Raphson is fast but can fail. In exams, use Bisection when you need reliability, and Newton-Raphson when the problem specifically asks or when you're confident in your guess.
Key Definitions
Numerical Computation
The process of solving mathematical problems using a finite sequence of arithmetic operations (addition, subtraction, multiplication, division). It bridges the gap between theoretical mathematics (which often has no closed-form solution) and practical problem-solving.
Algorithm
A well-defined, step-by-step procedure that is followed repeatedly to solve a problem or perform a calculation. Examples include the bisection algorithm and the Newton-Raphson algorithm.
Iteration
The process of repeating a calculation or procedure, using the result from one step as the input for the next step. Each repetition is called an iteration, and the results typically get closer to the true solution.
Convergence
A sequence of approximations is said to converge when successive values get closer and closer to a limit (the true solution). Formally, $\lim_{n \to \infty} x_n = x^*$ where $x^*$ is the true root.
Round-off Error
An error that arises because we cannot represent all numbers exactly in decimal form. For example, $\pi = 3.14159265...$ cannot be written exactly with finite digits. When we use $3.14159$, the discarded digits contribute to round-off error.
Truncation Error
An error that arises when we approximate a mathematical expression (like a series or derivative) by using only a finite number of terms. For example, approximating $e^x \approx 1 + x + \frac{x^2}{2} + \frac{x^3}{6}$ (using 4 terms instead of the infinite series) introduces truncation error.
Absolute Error
The magnitude of the difference between the true value ($x_t$) and the approximate value ($x_a$). Formula: $|E| = |x_t - x_a|$. It has the same units as the quantities being compared.
Relative Error
The ratio of absolute error to the true value, measuring error as a fraction of the true value. Formula: $|E_r| = \frac{|x_t - x_a|}{|x_t|}$. Often expressed as a percentage: $\%|E_r| = |E_r| \times 100\%$.
Mantissa
In floating-point representation $x = f \times 10^p$, the mantissa is the decimal number $f$ where $0.1 \leq |f| < 1$. It contains the significant digits of the number.
Exponent
In floating-point representation $x = f \times 10^p$, the exponent is the integer $p$ that indicates the power of 10 by which the mantissa is multiplied.
Algebraic Equation
An equation of the form $f(x) = 0$ where $f(x)$ is a polynomial (e.g., $3x^2 - 5x + 2 = 0$). These contain only powers of $x$ and constants.
Transcendental Equation
An equation that contains non-algebraic functions such as trigonometric ($\sin x$, $\cos x$), exponential ($e^x$), or logarithmic ($\log x$) functions. Examples: $x - e^x = 0$ or $x - \cos x = 0$.
Root (or Zero)
A value $x = r$ such that $f(r) = 0$. Finding roots means solving the equation $f(x) = 0$. Graphically, it's where the curve crosses the x-axis.
Bracketing Method
A root-finding method that requires an initial interval $[a, b]$ where the root is known to lie (usually because $f(a)$ and $f(b)$ have opposite signs). The Bisection Method is a bracketing method.
Open-End Method
A root-finding method that requires only a single initial guess (not an interval). It does not need to 'bracket' the root. The Newton-Raphson Method is an open-end method. Such methods converge faster but can diverge if the initial guess is poor.
Significant Digits (or Significant Figures)
The digits in a number that carry meaningful information about its precision. Leading zeros are not significant, but trailing zeros after the decimal point are. Example: In $0.00305$, there are 3 significant digits (3, 0, 5).
Chopping
A method of shortening a number by simply dropping (truncating) all digits beyond a certain position, without any rounding adjustment. Example: $57.84293$ chopped to 4 digits is $57.84$.
Symmetric Rounding
A method of shortening a number by rounding. If the first digit to be dropped is 5 or greater, the last retained digit is increased by 1; otherwise, it remains unchanged. Example: $57.845$ rounded to 3 decimals is $57.85$ (because the next digit is 5).
Bisection vs Newton-Raphson: Choose Your Weapon
Two main methods dominate NEB exams for finding roots: Bisection and Newton-Raphson. Each has strengths and weaknesses. Understanding when to use each is crucial.
Bisection Method
$$Guaranteed to bracket the root: $c = \frac{a + b}{2}$$$
How It Works: Start with an interval $[a, b]$ where $f(a)$ and $f(b)$ have opposite signs (guaranteeing a root exists by Bolzano's Theorem). Find the midpoint $c = (a+b)/2$. If $f(c) = 0$, you've found the root. Otherwise, check which half contains the root (by comparing signs) and repeat.
Convergence: Linear convergence (slow but steady). Each iteration approximately halves the error.
Reliability: Guaranteed to converge if a root exists in the initial interval. Cannot fail mathematically.
Speed: Slow. Requires approximately $n \geq \frac{\log(b-a) - \log\epsilon}{\log 2}$ iterations to achieve accuracy $\epsilon$.
Requirements: Must find two values $a$ and $b$ where $f(a) \cdot f(b) < 0$ (opposite signs). Cannot find complex roots or multiple roots easily.
When to Use: When you need certainty and are willing to take time. Best for transcendental equations or when derivatives are hard to compute.
VS
Newton-Raphson Method
$$Uses tangent line: $x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}$$$
How It Works: Start with a single initial guess $x_0$. At each iteration, compute the tangent line to the curve at $(x_n, f(x_n))$, find where this tangent crosses the x-axis, and use that as the next guess $x_{n+1}$.
Convergence: Quadratic convergence (very fast). Roughly doubles the correct digits with each iteration.
Reliability: NOT guaranteed. Can diverge if the initial guess is poor or if $f'(x_n) = 0$ (tangent is horizontal).
Speed: Very fast when it works. Typically converges in 2-4 iterations for well-behaved functions.
Requirements: Must be able to compute the derivative $f'(x)$ analytically. Requires a good initial guess $x_0$ close to the true root.
When to Use: When you have a good initial guess and can easily compute the derivative. Ideal when you need speed and have confidence in your starting point.
Decision Rule: Use Bisection when you need guaranteed convergence and have an interval. Use Newton-Raphson when you have a good initial guess and derivatives are simple. In exams: if the problem says 'find the root using Bisection', use Bisection (even if slower). If it says 'Newton-Raphson', use that.
Complete Formula Sheet
Absolute Error
$$|E| = |x_t - x_a|$$
Measures the magnitude of difference between true value $x_t$ and approximate value $x_a$. Same units as the quantities.
Relative Error
$$|E_r| = \frac{|x_t - x_a|}{|x_t|}$$
Measures error as a fraction of the true value. Dimensionless (no units). Good for comparing errors across different scales.
Percentage Error
$$\%|E_r| = \frac{|x_t - x_a|}{|x_t|} \times 100\%$$
Relative error expressed as a percentage. More intuitive for interpreting accuracy levels.
Floating-Point Representation
$$x = f \times 10^p \text{ where } 0.1 \leq |f| < 1$$
Standard form for representing numbers in numerical computation. $f$ is the mantissa (significant digits), $p$ is the exponent (power of 10).
Bisection Midpoint
$$c_k = \frac{a_k + b_k}{2}$$
At each iteration $k$, compute the midpoint of interval $[a_k, b_k]$. This becomes the new approximation.
Number of Bisection Iterations Required
$$n \geq \frac{\log(b-a) - \log\epsilon}{\log 2}$$
Predicts how many iterations are needed to achieve accuracy $\epsilon$. $(b-a)$ is the initial interval width.
Newton-Raphson Iterative Formula
$$x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}$$
Starting from initial guess $x_n$, compute the next approximation using the function value and its derivative. Repeat until convergence.
Symmetric Rounding Rule
$$\text{If next digit} \geq 5, \text{ round up. Otherwise, keep as is.}$$
When truncating a number to a certain precision, look at the first digit being discarded. If it's 5 or larger, increase the last kept digit.
Condition for Root in Bisection
$$f(a) \cdot f(c) < 0 \implies \text{root in } [a, c]$$
If the signs are opposite, the root is in that interval (by Bolzano's Theorem).
Condition for Convergence (Relative Error)
$$\left|\frac{x_{n+1} - x_n}{x_{n+1}}\right| < \epsilon$$
Common stopping criterion: if the relative change between consecutive iterations is small enough, we've converged.
Newton-Raphson for Finding Square Roots
$$x_{n+1} = \frac{1}{2}\left(x_n + \frac{k}{x_n}\right)$$
Special case of Newton-Raphson when finding $\sqrt{k}$ (i.e., solving $x^2 - k = 0$). This is the Babylonian method.
Decision Tree: Which Root-Finding Method to Use?
When faced with a root-finding problem, follow this decision tree to choose the optimal method.
Does the problem specify which method to use (Bisection or Newton-Raphson)?
Yes
Use the specified method. The problem wants to test your understanding of that particular technique.
No
Continue to the next question.
Can you easily find an interval $[a,b]$ where $f(a)$ and $f(b)$ have opposite signs?
Yes
Consider using BISECTION METHOD. You have the bracketing interval needed. Proceed if you want guaranteed convergence.
No
Continue—you may need Newton-Raphson instead.
Can you easily compute the derivative $f'(x)$ analytically?
Yes
NEWTON-RAPHSON is viable. Do you have a good initial guess $x_0$ close to the root?
No
Use BISECTION METHOD instead (Newton-Raphson requires the derivative).
Do you have a good initial guess $x_0$ that is reasonably close to the root?
Yes
Use NEWTON-RAPHSON METHOD. It will converge rapidly from a good initial guess.
No
Use BISECTION METHOD for safety. It guarantees convergence from any bracketing interval.
How many iterations are you willing to perform?
Yes
undefined
No
undefined
Is this a transcendental equation (contains $\sin$, $\cos$, $e^x$, $\log x$, etc.)?
Yes
Either method works, but BISECTION is more reliable because transcendental functions can have multiple derivatives that complicate Newton-Raphson.
No
Both methods work equally well.
Top 8 Memory Tricks and Shortcuts
Trick: These tricks will save you time in exams and prevent common calculation errors.
Steps to Remember:
- Trick 1 - 'Bi' in Bisection = TWO boundaries: Remember, Bisection always uses TWO starting values $a$ and $b$ (not one). They must bracket the root, meaning $f(a)$ and $f(b)$ have opposite signs. Think 'Bi = 2'.
- Trick 2 - 'Start from the Middle' in Bisection: The first bisection point is always $c_1 = (a+b)/2$. For example, if $a=1$ and $b=3$, then $c_1 = 2$. This is so mechanical that you rarely make mistakes here.
- Trick 3 - Sign Check in Bisection: After computing $f(c)$, you need to decide which interval contains the root. Always check the sign. If $f(a) \cdot f(c) < 0$ (opposite signs), the root is in $[a,c]$. Otherwise, it's in $[c,b]$. Write out the signs explicitly to avoid errors.
- Trick 4 - Newton-Raphson = 'Slide Down' the Tangent: Imagine the tangent line as a slide. You're standing at point $(x_n, f(x_n))$ on the curve. The tangent slides down to the x-axis, hitting it at $x_{n+1}$. Geometrically, this helps you visualize why Newton-Raphson works.
- Trick 5 - Don't Forget to Differentiate in Newton-Raphson: The most common mistake is computing $f'(x)$ incorrectly. Always double-check your derivative before starting iterations. For $f(x) = x^3 - 5$, we have $f'(x) = 3x^2$ (not $x^2 - 5$). Write it separately on your paper.
- Trick 6 - Radians, Not Degrees, in Trigonometric Equations: If your equation contains $\sin x$ or $\cos x$, and you're using a calculator, SET TO RADIAN MODE. Using degrees will give completely wrong answers. This is a deadly trap in exams.
- Trick 7 - The Iteration Count Formula Has 'Subtraction' in the Log: The formula is $n \geq \frac{\log(b-a) - \log\epsilon}{\log 2}$. It's subtraction, not division. Use the log property: $\log A - \log B = \log(A/B)$. So the numerator becomes $\log\left(\frac{b-a}{\epsilon}\right)$.
- Trick 8 - Rounding: Is the Next Digit 5 or Greater?: For symmetric rounding, look at the FIRST digit you're about to discard. If it's 5, 6, 7, 8, or 9, round UP the last kept digit. Otherwise, keep it. Example: $2.345$ rounded to 2 decimals is $2.35$ (because the next digit is 5).
Mnemonic: Remember: 'BISection is two-point, New-RAP' (for Newton-Raphson, think 'rapid'). Bisection is guaranteed but slow. Newton-Raphson is fast but risky.
Common Exam Mistakes and How to Avoid Them
These errors appear in 60-70% of student submissions. Study them carefully and implement the fixes.
- Mistake 1 - Wrong Sign Check in Bisection: A student computes $f(a) \cdot f(c)$ but then checks $f(a) \cdot f(b)$ to decide the next interval. This is WRONG! Always check $f(a) \cdot f(c)$ and $f(c) \cdot f(b)$ to see which interval contains the root. Fix: Write the midpoint formula, compute $f(c)$, then explicitly compute the product signs before deciding.
- Mistake 2 - Incorrect Derivative in Newton-Raphson: A student sets $f(x) = \sin(2x) - 3x$ but computes $f'(x) = 2\cos(2x) - 3$ instead of $f'(x) = 2\cos(2x) - 3$. Wait, that's actually correct. But many students write $f'(x) = \cos(2x) - 3$ (forgetting the chain rule factor of 2). Fix: Use the chain rule carefully. For $\sin(2x)$, the derivative is $2\cos(2x)$, not just $\cos(2x)$.
- Mistake 3 - Degree Mode Instead of Radian Mode: A student tries to find the root of $x - \cos(x) = 0$ using Newton-Raphson but sets the calculator to degree mode. They get nonsense answers because $\cos(57.3°) \neq \cos(1 \text{ radian})$. Fix: Before working with trig functions, explicitly set calculator to RADIAN mode. Write it down to remind yourself.
- Mistake 4 - Negative Sign Error in Newton-Raphson: A student writes $x_{n+1} = x_n + \frac{f(x_n)}{f'(x_n)}$ instead of $x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}$ (missing the minus sign). This completely ruins the iteration. Fix: Memorize the minus sign. It's a subtraction, not an addition. The tangent line is 'sliding down' to the x-axis, hence we subtract.
- Mistake 5 - Confusing Absolute and Relative Error: A student calculates $|E| = |x_t - x_a|$ and calls it 'relative error' without dividing by $x_t$. Relative error must have $x_t$ in the denominator. Fix: Absolute error has no denominator (just the difference). Relative error divides by $x_t$. If the problem asks for percentage error, multiply relative error by 100%.
- Mistake 6 - Trying Both Signs at Once in Bisection: A student checks both $f(a) \cdot f(c)$ and $f(c) \cdot f(b)$ at the same iteration, then gets confused which interval is correct. Fix: Check $f(a) \cdot f(c)$ first. If it's negative, the root is in $[a,c]$—stop there. If it's positive, then the root must be in $[c,b]$. Don't check both simultaneously.
- Mistake 7 - Rounding vs Chopping Confusion: A student is asked to 'round' $2.3456$ to 3 significant figures and responds $2.34$. But the correct answer is $2.35$ (because the next digit is 5, so round up). They confused rounding with chopping. Fix: Rounding = look at the next digit and adjust. Chopping = just drop everything after that digit (no adjustment).
- Mistake 8 - Assuming Convergence Without Checking: A student uses Newton-Raphson with a very poor initial guess and gets wildly oscillating results but continues anyway, hoping it will converge. Fix: If consecutive iterations aren't getting closer or are alternating, Newton-Raphson may not be converging. Switch to Bisection or choose a different initial guess.
- Mistake 9 - Not Verifying Bolzano's Theorem Before Bisection: A student tries to bisect on an interval $[1, 2]$ without checking if $f(1)$ and $f(2)$ have opposite signs. They might not, and there might be no root there! Fix: Always compute $f(a)$ and $f(b)$ first. Check that $f(a) \cdot f(b) < 0$ (opposite signs) to guarantee a root exists in the interval.
- Mistake 10 - Arithmetic Errors in Long Iterations: By the 3rd or 4th iteration of Bisection or Newton-Raphson, calculation errors accumulate. Students make a small arithmetic mistake and then propagate it forward. Fix: Use a calculator for all arithmetic. Write down each value clearly. Double-check intermediate results before using them in the next iteration.
Solved Examples (Easy → Medium → Hard)
1
Find the absolute error and relative error if the true value of $\sqrt{2}$ is $1.41421356...$ and we approximate it as $1.414$.
Easy
2
Represent the number $0.005672$ in floating-point form with 4 significant digits.
Easy
3
Round $3.14159$ to 4 decimal places using symmetric rounding.
Easy
4
Use the Bisection Method to find the root of $f(x) = x^3 - 2$ in the interval $[1, 2]$ for 2 iterations.
Medium
5
Calculate how many iterations of the Bisection Method are needed to find the root of an equation in the interval $[1, 3]$ with desired accuracy $\epsilon = 0.001$.
Medium
6
Find $\sqrt{3}$ using the Newton-Raphson Method with initial guess $x_0 = 1.5$. Perform 3 iterations.
Hard
7
Find the root of $x - \cos(x) = 0$ in the interval $[0, 1]$ using Bisection for 3 iterations. (Use radian mode.)
Hard
8
Use Newton-Raphson Method to find the root of $f(x) = x^3 - x - 1 = 0$ near $x_0 = 1.3$. Perform 2 iterations and check the relative error between consecutive approximations.
Hard
MCQ Practice (10 Questions)
Mixed Level — MCQ
1
Who invented the decimal number system around 400 A.D.?
Correct!
Incorrect. Correct: Hindus
2
Which error arises from dropping terms in an infinite series?
Correct!
Incorrect. Correct: Truncation error
3
In floating-point form $x = f \times 10^p$, what is the condition for mantissa $f$?
Correct!
Incorrect. Correct: $0.1 \leq |f| < 1$
4
Bisection method is also known as:
Correct!
Incorrect. Correct: Binary chopping method
5
If $f(a)$ and $f(b)$ have opposite signs, there is at least one root in $(a, b)$. This is known as:
Correct!
Incorrect. Correct: Bolzano's Theorem
6
Newton-Raphson method fails if:
Correct!
Incorrect. Correct: $f'(x_n) = 0$
7
The number $0.28571428...$ chopped to five significant figures is:
Correct!
Incorrect. Correct: 0.28571
8
Which method is always guaranteed to converge?
Correct!
Incorrect. Correct: Bisection
9
A transcendental equation contains:
Correct!
Incorrect. Correct: Trigonometric or Logarithmic functions
10
If we want to find the root of $x^2 - 5 = 0$ using Newton-Raphson, the iterative formula is:
Correct!
Incorrect. Correct: Both A and B are equivalent
Short Answer Questions (10 Questions)
1
Define numerical stability in your own words.
[2 marks]
2
Represent $0.005672$ in floating-point form with 3 significant digits.
[2 marks]
3
Find the absolute error if $x_t = 1/3$ and $x_a = 0.33$.
[2 marks]
4
State two disadvantages of the Bisection Method.
[2 marks]
5
Describe what an iterative process is in numerical computation.
[2 marks]
6
If $f(x) = x^2 - 5$, write the Newton-Raphson iterative formula for $x_{n+1}$.
[2 marks]
7
Classify the equation $x + e^x = 5$ as algebraic or transcendental and explain.
[2 marks]
8
Using symmetric rounding, round $12.3456$ to 4 significant digits.
[2 marks]
9
State the criteria for stopping iterations in the Bisection Method.
[2 marks]
10
Why is Newton-Raphson called an 'Open-End' method? Contrast with Bisection.
[2 marks]
Long Answer Questions (10 Questions)
1
Use the Bisection Method to find the root of $f(x) = x^3 - 4x - 1 = 0$ in the interval $[2, 3]$ for 3 complete iterations. Organize your work in a table showing all calculations.
[6 marks]
2
Find the square root of 5 using the Newton-Raphson Method with initial guess $x_0 = 2$. Perform 3 iterations and display results in a table. Comment on the convergence rate.
[6 marks]
3
Calculate how many iterations of the Bisection Method are needed to find a root in the interval $[1, 3]$ with desired accuracy $\epsilon = 10^{-4}$. Show all work step-by-step.
[4 marks]
4
Explain (with a diagram or clear description) the geometric interpretation of the Newton-Raphson Method. Why does it converge so quickly?
[5 marks]
5
Find the root of $f(x) = x - \cos(x) = 0$ in the interval $[0, 1]$ using the Bisection Method for 2 iterations. (Calculator in RADIAN mode.)
[5 marks]
6
Use the Newton-Raphson Method to find the root of $f(x) = x^3 - x - 1 = 0$ starting from $x_0 = 1.3$. Perform 2 iterations and check convergence by computing the relative error between consecutive approximations.
[6 marks]
7
Explain the difference between Round-off Error and Truncation Error. Provide one example of each in the context of computing $e^x$.
[4 marks]
8
Compare and contrast the Bisection Method and Newton-Raphson Method in a detailed table. Include their convergence rates, requirements, advantages, disadvantages, and when each should be used.
[6 marks]
9
Discuss the limitations of Newton-Raphson Method with specific examples where it fails or behaves poorly.
[5 marks]
10
Use the Newton-Raphson Method to solve the transcendental equation $f(x) = 3x - \cos(x) - 1 = 0$ with an initial guess of $x_0 = 0.6$. Perform 2 iterations, display your calculations in a table, and check convergence.
[6 marks]
One-Page Revision Cheat Sheet
1
Key Definitions: Computation = mathematical calculation. Algorithm = step-by-step procedure. Iteration = repeating a calculation. Convergence = approximations approach the true answer.
2
Errors: Round-off error = limited decimal places (e.g., $\pi \approx 3.14$). Truncation error = finite approximation of infinite process (e.g., $e^x \approx 1 + x + x^2/2$).
3
Error Formulas: Absolute Error: $|E| = |x_t - x_a|$. Relative Error: $|E_r| = |E| / |x_t|$. Percentage: $\%|E_r| = |E_r| \times 100\%$.
4
Floating-Point: Form: $x = f \times 10^p$ where mantissa $0.1 \leq |f| < 1$. Example: $0.005672 = 0.5672 \times 10^{-2}$.
5
Rounding: Symmetric rounding: if next digit $\geq 5$, round UP. Chopping: just drop extra digits (no adjustment).
6
Bolzano's Theorem: If $f(a) \cdot f(b) < 0$ (opposite signs) and $f$ is continuous, then $\exists c \in (a,b)$ such that $f(c) = 0$. Foundation of Bisection Method!
7
Bisection Method: Two values $a, b$ with opposite signs. Midpoint: $c = (a+b)/2$. Check sign of $f(a) \cdot f(c)$ to decide new interval. Iterations needed: $n \geq \frac{\log(b-a) - \log\epsilon}{\log 2}$. Always converges!
8
Newton-Raphson Formula: $x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}$. For $\sqrt{k}$: $x_{n+1} = \frac{1}{2}(x_n + k/x_n)$. Quadratic convergence (fast)!
9
When Newton-Raphson Fails: If $f'(x_n) = 0$ → division by zero. If initial guess is bad → divergence. If oscillation occurs → non-convergence.
10
Algebraic vs Transcendental: Algebraic = polynomial only (e.g., $x^2 - 5 = 0$). Transcendental = contains sin, cos, $e^x$, $\log x$ (e.g., $x - \cos(x) = 0$).
11
Exam Tips: (1) Always verify Bolzano's Theorem before Bisection. (2) For trig functions, use RADIAN mode! (3) In Newton-Raphson, double-check your derivative. (4) Display all work in a table. (5) State the final answer clearly with proper accuracy.