The formulae for the roots of a 3rd degree polynomial are given below

Slides:



Advertisements
Similar presentations
Numerical Solution of Nonlinear Equations
Advertisements

Chapter 4 Roots of Equations
The Derivative. Objectives Students will be able to Use the “Newton’s Quotient and limits” process to calculate the derivative of a function. Determine.
1 Chapter 9 Differential Equations: Classical Methods A differential equation (DE) may be defined as an equation involving one or more derivatives of an.
Section 3.2 Polynomial Functions and Their Graphs.
MATH 117 Pre-calculus Outline Part 1: Review of basic algebra and graphs, and Straight lines (constant slope) Part 2: Functions, quadratic functions (slope.
Secant Method Another Recursive Method. Secant Method The secant method is a recursive method used to find the solution to an equation like Newton’s Method.
Roots of a Polynomial: Root of a polynomial is the value of the independent variable at which the polynomial intersects the horizontal axis (the function.
Taylor Series.
If x=3 and y=0.5 then what is the value for z when z=(2x+1)(x+3y)?
Numerical Methods Applications of Loops: The power of MATLAB Mathematics + Coding 1.
AP CALCULUS AB Chapter 4: Applications of Derivatives Section 4.5:
From a vibration measurement on a machine, the damping ratio and undamped vibration frequency are calculated as 0.36 and 24 Hz, respectively. Vibration.
Business Mathematics MTH-367 Lecture 21. Chapter 15 Differentiation.
Loop Application: Numerical Methods, Part 1 The power of Matlab Mathematics + Coding.
4.5: Linear Approximations, Differentials and Newton’s Method.
Chapter 8 Integration Techniques. 8.1 Integration by Parts.
CHAPTER 3 NUMERICAL METHODS
Newton’s Method, Root Finding with MATLAB and Excel
Dr. Jie Zou PHY Chapter 2 Solution of Nonlinear Equations: Lecture (II)
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 7 Roots of Polynomials.
Solving Non-Linear Equations (Root Finding)
Linearization, Newton’s Method
Do Now 11/28/11 In your notebook, explain if the equations below are the same line. y – 5 = 3(x + 2) y – 2 = 3(x + 5) y = 3x + 11 y = 3x + 17 No No y –
9.1 Solving Differential Equations Mon Jan 04 Do Now Find the original function if F’(x) = 3x + 1 and f(0) = 2.
PreCalculus Section 1.6 Solve quadratic equations by: a. Factoring b. Completing the square c. Quadratic formula d. Programmed calculator Any equation.
The formulae for the roots of a 3rd degree polynomial are given below
MA2213 Lecture 9 Nonlinear Systems. Midterm Test Results.
Calculus Section 3.1 Calculate the derivative of a function using the limit definition Recall: The slope of a line is given by the formula m = y 2 – y.
CSE 330: Numerical Methods. Introduction The bisection and false position method require bracketing of the root by two guesses Such methods are called.
Introduction to Differential Equations
Modeling of geochemical processes Numeric Mathematics Refreshment
CHAPTER 3 NUMERICAL METHODS
Section 3.2 Polynomial Functions and Their Graphs
Today's Contents Review Answer of homework
Solving Quadratic Equation by Graphing
Today's Contents Review Elliptic expansion parallelogram.
Tangent Lines (Sections 2.1 and 3.1 )
The formulae for the roots of a 3rd degree polynomial are given below
4.5: Linear Approximations, Differentials and Newton’s Method
LECTURE 3 OF SOLUTIONS OF NON -LINEAR EQUATIONS.
Smooth, Continuous Graphs
Copyright © Cengage Learning. All rights reserved.
Solving Quadratic Equation and Graphing
Section 3.2 Polynomial Functions and Their Graphs
The formulae for the roots of a 3rd degree polynomial are given below
Solving Quadratic Equation by Graphing
Warmup Solve:
Computers in Civil Engineering 53:081 Spring 2003
Solving Quadratic Equation by Graphing
Simpson’s Rule: Example: Calculate the integral of the given function.
Section 2.3 Polynomial Functions and Their Graphs
Section 3.2 Polynomial Functions and Their Graphs
Solving Quadratic Equation
4.8: Linear Approximations, Differentials and Newton’s Method
Newton’s Method and Its Extensions
The formulae for the roots of a 3rd degree polynomial are given below
Some Comments on Root finding
CPE 332 Computer Engineering Mathematics II
Roots of Polynomials Chapter 7 The Islamic University of Gaza
Copyright © Cengage Learning. All rights reserved.
MATH 1910 Chapter 3 Section 8 Newton’s Method.
Newton-Raphson Example 4:
Newton-Raphson Example 4:
The formulae for the roots of a 3rd degree polynomial are given below
Newton-Raphson Example 4:
The formulae for the roots of a 3rd degree polynomial are given below
Presentation transcript:

The formulae for the roots of a 3rd degree polynomial are given below Roots of a Polynomial: Root of a polynomial is the value of the independent variable at which the polynomial intersects the horizontal axis (the function has zero value) . The formulae for the roots of a 2nd degree polynomial are given below The formulae for the roots of a 3rd degree polynomial are given below First root (of three)

Example: Find the roots of the given polynomial. Roots of a Polynomial: The Matlab program can be used to calculate the roots of an n degree polynomial. Example: Find the roots of the given polynomial. ans = -1.0604 + 1.0863i -1.0604 - 1.0863i 0.5207 >>p=[5 8 6 -6]; roots(p) Example: Find the roots of the given polynomial. ans = 1.0043 + 2.7517i 1.0043 - 2.7517i -1.4940 + 0.3852i -1.4940 - 0.3852i 0.9793 >>p=[1 0 4 16 0 -20]; roots(p) All coefficients including those with zero must be specified. Otherwise the polynomial degree will be reduced.

NEWTON-RAPHSON ITERATION METHOD Solutions of Nonlinear Equations: Solutions of Nonlinear Equations: NEWTON-RAPHSON ITERATION METHOD f(x) x xi (İnitial value) f(xi)-0 Xi+1 Slope at this point is f'(xi) f(xi) Tangent line The Newton-Raphson method, or Newton’s method, is a powerful technique for solving equations numerically. Like so much of the differential calculus, it is based on the simple idea of linear approximation. This method is a method for finding successively better approximations to the real roots (or zeroes) of a real valued function. ε (error)

θ f f ' ε Newton-Raphson Example 1: Solutions of Nonlinear Equations: Newton-Raphson Example 1: Find one of the θ values, which satisfies the given equation. θ f f ' ε 1 -1.5858 2.3536 0.6738 1.6738 0.4368 3.6534 -0.1196 1.5542 0.0139 3.4213 -0.0041 1.5501 -0.00013 3.4134 3.95e-5

u f f ' ε Newton-Raphson Example 2: Solutions of Nonlinear Equations: Newton-Raphson Example 2: Find one of the u values, which satisfies the given equation. u f f ' ε 1 4.3899 5.4233 -0.8094 0.1905 -1.4883 6.6229 0.2247 0.4152 0.1569 7.8429 -0.0200 0.3952 0.00025 7.7801 -3.32e-5

Newton-Raphson Example 1: Newton-Raphson Example 2: clc, clear Solutions of Nonlinear Equations: MATLAB CODES The following changes are made in the program (nr1.m) to solve the problems. Newton-Raphson Example 1: Newton-Raphson Example 2: clc, clear x=1;xe=0.001*x; niter=20; %---------------------------------------------- for n=1:niter f=x^2-4+sqrt(x+1); df=2*x+0.5/(sqrt(x+1)); x1=x x=x1-f/df if abs(x-x1)<xe kerr=0;break end kerr,x clc, clear x=1;xe=0.001*x; niter=20; %---------------------------------------------- for n=1:niter f=5*x-cos(3*x)-1.6; df=5+3*sin(3*x); x1=x x=x1-f/df if abs(x-x1)<xe kerr=0;break end kerr,x x = fzero(@(x)x^2-4+sqrt(x+1),1) x = fzero(@(x)5*x-cos(3*x)-1.6,1)

f1(x1,x2)=0 f2(x1,x2)=0 Newton-Raphson Example 3: Solutions of Nonlinear Equations: Newton-Raphson iteration method is used to solve the nonlinear system of equations. Since there are more than one equations and unknown variables, partial derivatives of the equations with respect to each unkown variable are used in the solution procedure. f1(x1,x2)=0 f2(x1,x2)=0 Arbitrary initial values for x1 ve x2 are assigned and the iteration procedure is started by making the necessary changes in the computer program (newtonrn). The variables are stated as xb() in the program. Newton-Raphson Example 3: The equation of a circle with center coordinates (3,2) and a radius 5 is given on the right hand side. How do you find the intersection point of this circle and the parapola y=x2 ?

%---------------------------------------------- Solutions of Nonlinear Equations: The following changes are made in the program (nr.m) to solve the problem. clc, clear x=[1 4] ;xe=0.001*x; niter1=5;niter2=50; %---------------------------------------------- xe=transpose(abs(xe));kerr=1; for n=1:niter2 a(1,1)=2*(x(1)-3);a(1,2)=2*(x(2)-2); a(2,1)=-2*x(1);a(2,2)=1; b(1)=-((x(1)-3)^2+(x(2)-2)^2-25); b(2)=-(x(2)-x(1)^2); %---------------------------------------------- bb=transpose(b);eps=inv(a)*bb;x=x+transpose(eps) if n>niter1 if abs(eps)<xe kerr=0;break end x 1 2 3 4 9 x y (-1.82, 3.321) (2.643, 6.987) As shown in the figure, there are two valid solution sets. The output solution set is determined by the initial values of the unkown variables.