Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "The formulae for the roots of a 3rd degree polynomial are given below"— Presentation transcript:

1 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)

2 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 = i i 0.5207 >>p=[ ]; roots(p) Example: Find the roots of the given polynomial. ans = i i i i 0.9793 >>p=[ ]; roots(p) All coefficients including those with zero must be specified. Otherwise the polynomial degree will be reduced.

3 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)

4 θ 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 2.3536 0.6738 1.6738 0.4368 3.6534 1.5542 0.0139 3.4213 1.5501 3.4134 3.95e-5

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.1905 6.6229 0.2247 0.4152 0.1569 7.8429 0.3952 7.7801 -3.32e-5

6 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 ?

7 Solutions of Nonlinear Equations:
The following changes are made in the program (newtonrn) to solve the problem. 1 2 3 4 9 x y (-1.82, 3.321) (2.643, 6.987) Sub newtonrn_Click() - - - 40 n=2 41 xb(1)=1:xb(2)=-1:xh(1)=.001:xh(2)=.001 - - 45 ‘…Error equations… a(1,1)=2*(xb(1)-3):a(1,2)=2*(xb(2)-2) a(2,1)=-2*xb(1):a(2,2)=1 b(1)=-((xb(1)-3)^2+(xb(2)-2)^2-25) b(2)=-(xb(2)-xb(1)^2) 46 ‘... End sub 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.


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

Similar presentations


Ads by Google