Solving equations numerically The sign - change rule If the function f(x) is continuous for an interval a  x  b of its domain, if f(a) and f(b) have.

Slides:



Advertisements
Similar presentations
“Teach A Level Maths” Vol. 2: A2 Core Modules
Advertisements

“Teach A Level Maths” Vol. 2: A2 Core Modules
Coursework Requirements Numerical Methods. 1.Front Cover indicating that the coursework is about the numerical Solution of Equations. Include your name,
Rational Root Theorem.
Increasing/Decreasing
Extremum. Finding and Confirming the Points of Extremum.
Solving equations involving exponents and logarithms
Lectures on Numerical Methods 1 Numerical Methods Charudatt Kadolkar Copyright 2000 © Charudatt Kadolkar.
NUMERICAL METHODS WITH C++ PROGRAMMING
FP1: Chapter 2 Numerical Solutions of Equations
2.5 Descartes’ Rule of Signs To apply theorems about the zeros of polynomial functions To approximate zeros of polynomial functions.
2.8 - Solving Equations in One Variable. By the end of today you should be able to……. Solve Rational Equations Eliminate Extraneous solutions Solve Polynomial.
1.Definition of a function 2.Finding function values 3.Using the vertical line test.
Definition of Functions The basic object of study in calculus is a function. A function is a rule or correspondence which associates to each number x in.
REVIEW 7-2. Find the derivative: 1. f(x) = ln(3x - 4) x f(x) = ln[(1 + x)(1 + x2) 2 (1 + x3) 3 ] ln(1 + x) + ln(1 + x 2 ) 2 + ln(1 + x.
FUNCTIONS : Domain values When combining functions using the composite rules, it is necessary to check the domain for values that could be restricted.
Continuity ( Section 1.8) Alex Karassev. Definition A function f is continuous at a number a if Thus, we can use direct substitution to compute the limit.
Introduction This chapter gives you several methods which can be used to solve complicated equations to given levels of accuracy These are similar to.
Unit 6 GA2 Test Review. Find the indicated real n th root ( s ) of a. a. n = 3, a = –216 b. n = 4, a = 81 SOLUTION b. Because n = 4 is even and a = 81.
Bellwork: Graph each line: 1. 3x – y = 6 2. Y = -1/2 x + 3 Y = -2
Solving Quadratic Equations by Factoring. Solution by factoring Example 1 Find the roots of each quadratic by factoring. factoring a) x² − 3x + 2 b) x².
The Quadratic Formula. What does the Quadratic Formula Do ? The Quadratic formula allows you to find the roots of a quadratic equation (if they exist)
© T Madas Trial and Improvement. © T Madas Find the solution of x 2 + 2x = 39 to 1 decimal place, given that x lies between 5 and 6. too high
Without using gsolv, equation solver, etc. Only calculator operations: x,+,-,^.
Using square roots to solve quadratic equations. 2x² = 8 22 x² = 4 The opposite of squaring a number is taking its square root √ 4= ± 2.
Numerical Methods.
Sign Change Re-cap Show that each of the following have a solution for x: 1.The intersection of (between 1.8 and 1.9) and 2.The intersection of(between.
1 Solve each: 1. 5x – 7 > 8x |x – 5| < 2 3. x 2 – 9 > 0 :
Sullivan Algebra and Trigonometry: Section 5.2 Objectives Use the Remainder and Factor Theorems Use Descartes’ Rule of Signs Use the Rational Zeros Theorem.
Example 1A Solve the equation. Check your answer. (x – 7)(x + 2) = 0
Properties of Logarithms Change of Base Formula:.
4.8 Newton’s Method Mon Nov 9 Do Now Find the equation of a tangent line to f(x) = x^5 – x – 1 at x = 1.
Recursive Methods for Finding Roots of Functions Bisection & Newton’s Method.
Solving Polynomials.
Solving Equations Using Logs. True or False? 1.Log 4 = log Log 15 = log 3 x log 5 3.Log 4 = log 8 – log 2 4.Log 64 = 2 log 8 5.Log 64 = 8 log 2.
Iteration The solution lies between 0 and 1. e.g. To find integer bounds for we can sketch and  0 and 1 are the integer bounds. We often start by finding.
LECTURE 2 OF NUMERICAL METHODS 7.2 Solutions of Non-Linear Equations.
Lecture 4 Numerical Analysis. Solution of Non-Linear Equations Chapter 2.
P2 Chapter 8 CIE Centre A-level Pure Maths © Adam Gibson.
Numerical Solution Of Equations
Rearranging the equation f(x)=0 into the form x=g(x)
The Quadratic Formula..
LECTURE 4 OF SOLUTIONS OF NON-LINEAR EQUATIONS OBJECTIVES
Numerical Methods.
LECTURE 3 OF SOLUTIONS OF NON -LINEAR EQUATIONS.
Calculus section 1.1 – 1.4 Review algebraic concepts
2.2 Polynomial Function of Higher Degrees
F(x) = x2 x > 3 Find the range of f(x) f(x) > 9.
Numerical Methods.
A function is given by a formula. Determine whether it is one-to-one
The graph of a function f(x) is given below
Important Values for Continuous functions
Intermediate Value Theorem
Intermediate Value Theorem
Chapter 3 Section 6.
Iterative Formulae Saturday, 23 February 2019.
A step-by-step process of trial and improvement
Continuity Alex Karassev.
Solving Equations f(x) = g(x)
Solving Linear Equations by Graphing
Solving Systems of Equations by Elimination Part 2
The Quadratic Formula..
Copyright © Cengage Learning. All rights reserved.
MATH 1910 Chapter 3 Section 8 Newton’s Method.
The Quadratic Formula..
Trigonometric Equations
Numerical Methods for solutions of equations
FUNCTIONS & THEIR GRAPHS
Presentation transcript:

Solving equations numerically The sign - change rule If the function f(x) is continuous for an interval a  x  b of its domain, if f(a) and f(b) have opposite signs, then there is at least one root of f(x) = 0 between a and b. Consider an equation f(x) = x 2 -5x + 2 = 0 y x f(0) = 2 f(1) = -2 There is a sign-change This means that there is a solution between x = 0 and x = 1.

Solving equations numerically The sign - change rule Consider an equation f(x) = (2x – 1)(x – 1)(2x – 3) f(0) = -3 f(2) = 3 There is a sign-change x y It is clear from the graph that there are three roots between x = 0 and x = 2

Examples Show that a root of the equation x 3 – 5x – 4 = 0 lies in the interval [2, 3]. f(2) = 2 3 – 5  2 – 4 = 8 – 10 – 4 = - 6 < 0 f(3) = 3 3 – 5  3 – 4 = 27 – 15 – 4 = 8 > 0 There is a change of sign so the root lies in the interval [2, 3] 4.32 is an approximation to a root of the equation xlnx – 2 – x = 0. Check its accuracy to 2 decimal places. f(4.315) =  ln4.315 – 2 – = < 0 f(4.325) =  ln4.325 – 2 – = > 0 Change of sign, so the root is accurate to 2 decimal places.

Decimal search Consider f(x) = x 3 – 5x – 4 ; f(2) = - 6 and f(3) = 8 f(2.5) = – 5  2.5 – 4 = f(2.6) = – 5  2.6 – 4 = f(2.55) = – 5  2.55 – 4 = For 1 decimal place the root is 2.5 or 2.6 x = 2.5 is ignored so the root must be x = 2.6 for one decimal place. y x

Use decimal search to find each root correct to two decimal places. (i) f(x) = x +  (x 3 + 1) - 7 xf(x)sign negative negative negative positive A root lies between 2 and 3 and it is probably closer to negative positive A root lies between 2.6 and 2.7 and it is probably closer to negative positive A root lies between 2.62 and 2.63 and it is probably closer to negative This confirms that the root is 2.63

Use decimal search to find each root correct to two decimal places. (ii) f(x) = x 5 + x xf(x)sign negative negative negative positive A root lies between 4 and negative positive A root lies between 4.5 and positive positive A root lies between 4.52 and negativeThis confirms that the root is negative

Iteration Consider the equation f(x) = x 2 – 5x + 2 = 0 The graph of f(x) shows that one root lies between 0 and 1 and the other root lies between 4 and 5. f(x) x First step is rearrange x 2 – 5x + 2 = 0 in the form x = g(x) Possible rearrangements: x 2 = 5x – 2 x =  (5x – 2) 5x = x x = (x 2 + 2)/5 x 2 – 5x = - 2 x(x – 5) = -2 x = 2/(5 – x) x 2 = 5x – 2 x = 5 – 2/x

Graph of rearranged equations x =  (5x – 2) x = (x 2 + 2)/5 x = 5 – 2/x x = 2/(5-x)

Using x n+1 = g(x n ) f(x) = x 2 – 5x + 2 = 0  x n+1 =  (5x n – 2) Starting value x 0 = 4 x 1 =  (5  4 – 2) = x 2 = x 3 = x 4 = x 5 = x 6 = x 7 = x 8 = x 9 = x 10 = x 11 = x 12 = x 13 = x 14 = x 15 = x 16 = root = 4.56 (2 d.p.)

f(x) = x 2 – 5x + 2 = 0 x n+1 = (x n 2 + 2)/5 x 0 = 4 x 1 = x 2 = x 3 = x 4 = x 5 = x 6 = x 7 = x 8 = x 9 = x 10 = x 11 = x n+1 = 2/(5 – x) x 1 = x 0 = 4 x 2 = x 3 = x 4 = x 5 = x 6 = x 7 = x 8 = x n+1 = 5 – 2/x n x 0 = 4 x 2 = x 3 = x 4 = x 5 = x 1 =

x 0 = 4.5 x n+1 = 5 – 2/x n

Example Consider x 3 – 5x – 4 = 0, rearrange in the form x n+1 = f(x n ) x 3 = 5x + 4  Let x 0 = 2 x 1 = x 2 = x 3 = x 4 = x 5 = x 6 = x 7 = x 8 = x 9 = x 10 =

Example Using iteration method formula x n+1 = 2 + ln(x n ), find a root of the equation ln(x) – x + 2 = 0, (correct to 3 s.f.) and starting with x 0 = 2. x 0 = 2 x 1 = x 2 = x 3 = x 4 = x 5 = x 6 = x 7 = x 8 = x 9 = y x So a root is 3.15 (3 s.f.)