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

Slides:



Advertisements
Similar presentations
Numerical Solution of Nonlinear Equations
Advertisements

Solutions of system of nonlinear equations: Newton-Raphson Example 4: The kinematic equations for a Four-Bar mechanism can be written as (5th semester,
Chapter 4 Roots of Equations
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Martin Mendez UASLP Chapter 61 Unit II.
The Derivative. Objectives Students will be able to Use the “Newton’s Quotient and limits” process to calculate the derivative of a function. Determine.
Solving Quadratic Equation by Graphing
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.
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.
5.5 – The Quadratic formula Objectives: Use the quadratic formula to find real roots of quadratic equations. Use the roots of a quadratic equation to locate.
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)
Iteration Methods “Mini-Lecture” on a method to solve problems by iteration Ch. 4: (Nonlinear Oscillations & Chaos). Some nonlinear problems are solved.
Solutions of system of nonlinear equations: Newton-Raphson Example 4: The kinematic equations for a Four-Bar mechanism can be written as (5th semester,
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 –
Chapter 1: Linear and Quadratic functions By Chris Muffi.
9.1 Solving Differential Equations Mon Jan 04 Do Now Find the original function if F’(x) = 3x + 1 and f(0) = 2.
The formulae for the roots of a 3rd degree polynomial are given below
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.
The formulae for the roots of a 3rd degree polynomial are given below
Quadratic Functions, Quadratic Expressions, Quadratic Equations
4.5: Linear Approximations, Differentials and Newton’s Method
LECTURE 3 OF SOLUTIONS OF NON -LINEAR EQUATIONS.
3.1 – Derivative of a Function
3.1 – Derivative of a Function
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
Chapter 6.
Computers in Civil Engineering 53:081 Spring 2003
Comparing and Contrasting Functions
Solving Quadratic Equation by Graphing
Solving Quadratic Equation by Graphing
Section 2.3 Polynomial Functions and Their Graphs
Section 3.2 Polynomial Functions and Their Graphs
Solving Quadratic Equation by Graphing
Solving Quadratic Equation
Newton’s Method and Its Extensions
The formulae for the roots of a 3rd degree polynomial are given below
Some Comments on Root finding
Roots of Polynomials Chapter 7 The Islamic University of Gaza
Chapter 6.
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;err=0.001; niter=20; %---------------------------------------------- for n=1:niter f=5*x-cos(3*x)-1.6; df=5+3*sin(3*x); eps=-f/df; x =x+eps; if abs(f)<err break end display('Answer is='),x clc, clear x=1;err=0.001; niter=20; %---------------------------------------------- for n=1:niter f=x^2-4+sqrt(x+1); df=2*x+0.5/(sqrt(x+1)); eps=-f/df; x =x+eps; if abs(f)<err break end display('Answer is='),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 equation and unknown variable, 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 and x2 are assigned and the iteration procedure is started by making the necessary changes in the computer program (newtonrn). The variables are stated as x() 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 left hand side. How do you find the intersection point of this circle and the parabola y=x2 ?

err=transpose(abs(err)); for n=1:niter2 x Solutions of Nonlinear Equations: The following changes are made in the program (nr.m) to solve the problem. clc, clear x=[1 4] ; err=[0.01 0.01]; niter1=10;niter2=50; err=transpose(abs(err)); for n=1:niter2 x %Error Equations--------------------------- 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)<err break else display ('Roots are not found') end 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. clc;clear [x,y]=solve('(x-3)^2+(y-2)^2=25','y-x^2=0'); vpa(x,6) vpa(y,6)