21
POLYNOMIAL EQUATIONS IN GEOMETRIC MODELLING, THE CONTROL OF UNWANTED VIBRATIONS IN MANUFACTURING, AND THE DEBLURRING OF IMAGES Joab Winkler Department of Computer Science The University of Sheffield Sheffield United Kingdom [email protected]

POLYNOMIALEQUATIONSINGEOMETRIC MODELLING ......POLYNOMIALEQUATIONSINGEOMETRIC MODELLING,THECONTROLOFUNWANTED VIBRATIONSINMANUFACTURING,ANDTHE DEBLURRINGOFIMAGES JoabWinkler DepartmentofComputerScience

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Page 1: POLYNOMIALEQUATIONSINGEOMETRIC MODELLING ......POLYNOMIALEQUATIONSINGEOMETRIC MODELLING,THECONTROLOFUNWANTED VIBRATIONSINMANUFACTURING,ANDTHE DEBLURRINGOFIMAGES JoabWinkler DepartmentofComputerScience

POLYNOMIAL EQUATIONS IN GEOMETRICMODELLING, THE CONTROL OF UNWANTEDVIBRATIONS IN MANUFACTURING, AND THE

DEBLURRING OF IMAGES

Joab WinklerDepartment of Computer Science

The University of SheffieldSheffield

United Kingdom

[email protected]

Page 2: POLYNOMIALEQUATIONSINGEOMETRIC MODELLING ......POLYNOMIALEQUATIONSINGEOMETRIC MODELLING,THECONTROLOFUNWANTED VIBRATIONSINMANUFACTURING,ANDTHE DEBLURRINGOFIMAGES JoabWinkler DepartmentofComputerScience

Contents

1 Applications2 MATLAB3 The computation of multiple roots4 Image deblurring5 Summary

Page 3: POLYNOMIALEQUATIONSINGEOMETRIC MODELLING ......POLYNOMIALEQUATIONSINGEOMETRIC MODELLING,THECONTROLOFUNWANTED VIBRATIONSINMANUFACTURING,ANDTHE DEBLURRINGOFIMAGES JoabWinkler DepartmentofComputerScience

Applications

Computer-aided geometric design:

Tangential intersections between curves and surfaces that are definedby polynomials are computed by solving a polynomial equation:

These intersections are defined by multiple roots of the polynomial

Tangential intersections are required for:Aesthetic appealEase of handling of an object (the avoidance of sharp edges andcorners)The formation of a blend between two surfaces

Page 4: POLYNOMIALEQUATIONSINGEOMETRIC MODELLING ......POLYNOMIALEQUATIONSINGEOMETRIC MODELLING,THECONTROLOFUNWANTED VIBRATIONSINMANUFACTURING,ANDTHE DEBLURRINGOFIMAGES JoabWinkler DepartmentofComputerScience

ApplicationsManufacturing:The vibrations of a cutter may excite one or more resonantfrequencies of an object being machined, in which case themachining operation must be terminated.

Resonant frequencies of components must be calculated in order todesign filters that damp out vibrations that may arise during theirmanufacture.

Figure: Two double eigenvalues (one at the top, and one at the bottom) of acomponent of a jet engine, and their frequency response functions

Page 5: POLYNOMIALEQUATIONSINGEOMETRIC MODELLING ......POLYNOMIALEQUATIONSINGEOMETRIC MODELLING,THECONTROLOFUNWANTED VIBRATIONSINMANUFACTURING,ANDTHE DEBLURRINGOFIMAGES JoabWinkler DepartmentofComputerScience

Difficulties of performing reliablecomputations on polynomials

Commonly used algorithms for computing the roots of a polynomialinclude:

Bairstow, Graeffe, Jenkins-Traub, Laguerre, Müller and NewtonThese methods yield satisfactory results if:

The polynomial is of moderate degreeThe roots are simple and well-separatedA good starting point in the iterative scheme is used

Page 6: POLYNOMIALEQUATIONSINGEOMETRIC MODELLING ......POLYNOMIALEQUATIONSINGEOMETRIC MODELLING,THECONTROLOFUNWANTED VIBRATIONSINMANUFACTURING,ANDTHE DEBLURRINGOFIMAGES JoabWinkler DepartmentofComputerScience

Example 1 Consider the polynomial

y4 − 4y3 + 6y2 − 4y + 1 = (y − 1)4

whose root is y = 1 with multiplicity 4. MATLAB returns the roots

1.0002, 1.0000 + 0.0002i , 1.0000 - 0.0002i , 0.9998

Example 2 The roots of the polynomial (y − 1)100 were computed byMATLAB.

Figure: The computed roots of (y − 1)100.

Page 7: POLYNOMIALEQUATIONSINGEOMETRIC MODELLING ......POLYNOMIALEQUATIONSINGEOMETRIC MODELLING,THECONTROLOFUNWANTED VIBRATIONSINMANUFACTURING,ANDTHE DEBLURRINGOFIMAGES JoabWinkler DepartmentofComputerScience

Example 3 The computation of multiple roots in the presence of noise.

Figure: The distribution of the roots of four perturbed polynomials.

Page 8: POLYNOMIALEQUATIONSINGEOMETRIC MODELLING ......POLYNOMIALEQUATIONSINGEOMETRIC MODELLING,THECONTROLOFUNWANTED VIBRATIONSINMANUFACTURING,ANDTHE DEBLURRINGOFIMAGES JoabWinkler DepartmentofComputerScience

Example 4

εc =componentwise noise amplitudecomponentwise signal amplitude

= 10−8

multiplicity exact root computed root relative error4 -6.7547000000e-1 -6.7547000082e-1 1.2139725913e-96 5.7335000000e+0 5.7335000822e+0 1.4344694923e-87 2.1747000000e+0 2.17469999237+0 3.5069931355e-910 -9.5568000000e+0 -9.5567996740e+0 3.4111255034e-811 -6.5553000000e+0 -6.5553001701e+0 2.5954947075e-8

The multiplicities of the exact roots are preserved, and the (small)errors are in the values of the roots.

Page 9: POLYNOMIALEQUATIONSINGEOMETRIC MODELLING ......POLYNOMIALEQUATIONSINGEOMETRIC MODELLING,THECONTROLOFUNWANTED VIBRATIONSINMANUFACTURING,ANDTHE DEBLURRINGOFIMAGES JoabWinkler DepartmentofComputerScience

Example 5

εc =componentwise noise amplitudecomponentwise signal amplitude

= 10−8

multiplicity exact root computed root relative error4 -1.1539000000e+0 -1.1539000316e+0 2.7389266674e-85 4.0809000000e+0 4.0808998890e+0 2.7198581384e-86 -2.1059000000e+0 -2.1058999294e+0 3.2521823798e-87 3.6683000000e+0 3.6683000481e+0 1.3110114060e-813 -9.6084000000e+0 -9.6084001121e+0 1.1664214687e-8

The multiplicities of the exact roots are preserved, and the (small)errors are in the values of the roots.

Page 10: POLYNOMIALEQUATIONSINGEOMETRIC MODELLING ......POLYNOMIALEQUATIONSINGEOMETRIC MODELLING,THECONTROLOFUNWANTED VIBRATIONSINMANUFACTURING,ANDTHE DEBLURRINGOFIMAGES JoabWinkler DepartmentofComputerScience

MATLAB

MATLAB was used exclusively for the work in this presentation forseveral reasons:

FamiliarityIt is used in many universities for pure and applied researchExcellent references, including books with many examples frommathematics and engineering, and links on the internetEstablished record of high quality software, and continual updatesand improvementsAn extensive library of functions in all branches of appliedmathematicsThe support of a well-established company in scientific softwaredevelopmentThe pricing policy - users need only purchase the toolboxes theyrequire

Page 11: POLYNOMIALEQUATIONSINGEOMETRIC MODELLING ......POLYNOMIALEQUATIONSINGEOMETRIC MODELLING,THECONTROLOFUNWANTED VIBRATIONSINMANUFACTURING,ANDTHE DEBLURRINGOFIMAGES JoabWinkler DepartmentofComputerScience

The computation of multiple roots

Why are the multiplicities of the multiple roots of the exact polynomialpreserved in the computed roots of an inexact form of the givenpolynomial?

Most polynomial root solvers use Newton’s iteration, or a variant ofit, and successive estimates of the root yj of the polynomial f (y) aregiven by

y (i+1)j = y (i)

j −f(y (i)j

)f (1)

(y (i)j

) , i = 0, 1, . . . ,

which causes major problems at and near multiple roots of f (y).This iteration is applied to all polynomials, without a prior test todetermine if f (y) has multiple roots.

Should the multiplicities of the roots be calculated before the valuesof the roots are computed?

Page 12: POLYNOMIALEQUATIONSINGEOMETRIC MODELLING ......POLYNOMIALEQUATIONSINGEOMETRIC MODELLING,THECONTROLOFUNWANTED VIBRATIONSINMANUFACTURING,ANDTHE DEBLURRINGOFIMAGES JoabWinkler DepartmentofComputerScience

A polynomial root solver that is explicitly designed to compute multipleroots has two stages:

Stage 1: Compute the multiplicities of the rootsStage 2: Use the multiplicities of the roots to compute the values

of the roots

But how can the multiplicities of the roots be computed?

Gauss developed an algorithm that allows the multiplicities of the rootsof a polynomial to be computed. See

J. V. Uspensky, Theory of Equations, McGraw-Hill, New York, 1948,pages 65− 68.

The algorithm has numerous greatest common divisor (GCD)computations and deconvolutions, and structure-preserving matrixmethods are therefore used extensively.

Page 13: POLYNOMIALEQUATIONSINGEOMETRIC MODELLING ......POLYNOMIALEQUATIONSINGEOMETRIC MODELLING,THECONTROLOFUNWANTED VIBRATIONSINMANUFACTURING,ANDTHE DEBLURRINGOFIMAGES JoabWinkler DepartmentofComputerScience

The geometry of multiple roots

How does a polynomial that has one or more of whose distinct rootsdiffer from a polynomial that only has simple roots?

Let f (y) have p distinct roots yi , i = 1, . . . , p, and let the multiplicity ofthe ith root be mi

f (y) =m∑

i=0

aiym−i =

p∏i=1

(y − yi )mi , a0 = 1,

p∑i=1

mi = m

The roots yi introduce∑p

i=1(mi − 1) = m − p constraints on thecoefficients of f (y).A monic polynomial of degree m has m degrees of freedom.The polynomial f (y) therefore lies on a manifold of dimensionm − (m − p) = p in a space of dimension m.This manifold is called a pejorative manifold because polynomialsnear this manifold are ill-conditioned.

Page 14: POLYNOMIALEQUATIONSINGEOMETRIC MODELLING ......POLYNOMIALEQUATIONSINGEOMETRIC MODELLING,THECONTROLOFUNWANTED VIBRATIONSINMANUFACTURING,ANDTHE DEBLURRINGOFIMAGES JoabWinkler DepartmentofComputerScience

Example of a pejorative manifold

Example 6: Consider a quartic polynomial f (y) with real roots y1, y2, y3and y4:

f (y) = y4 − (y1 + y2 + y3 + y4)y3 +

(y1y2 + y1y3 + y1y4 + y2y3 + y2y4 + y3y4)y2 −(y1y2y3 + y1y2y4 + y1y3y4 + y2y3y4)y + y1y2y3y4

If f (y) has a quartic root, then y1 = y2 = y3 = y4, then

f (y) = y4 − 4y1y3 + 6y21 y2 − 4y3

1 y + y41

The pejorative manifold of this quartic polynomial is(−4y1 6y2

1 −4y31 y4

1)

Page 15: POLYNOMIALEQUATIONSINGEOMETRIC MODELLING ......POLYNOMIALEQUATIONSINGEOMETRIC MODELLING,THECONTROLOFUNWANTED VIBRATIONSINMANUFACTURING,ANDTHE DEBLURRINGOFIMAGES JoabWinkler DepartmentofComputerScience

Example of a pejorative manifold cont’d

If f (y) has one treble root and one simple root, theny1 = y2 = y3 6= y4, and

f (y) = y4 − (3y1 + y4)y3 + 3(y21 + y1y4)y2 − (y3

1 + 3y21 y4)y + y3

1 y4

The pejorative manifold of this quartic polynomial is(−(3y1 + y4) 3(y2

1 + y1y4) −(y31 + 3y2

1 y4) y31 y4

)If f (y) has two double roots, then y1 = y2 and y3 = y4 6= y1, and

f (y) = y4 − 2(y1 + y4)y3 + (y21 + 4y1y4 + y2

4 )y2

−2(y21 y4 + y1y2

4 )y + y21 y2

4

The pejorative manifold of this quartic polynomial is(−2(y1 + y4) (y2

1 + 4y1y4 + y24 ) −2(y2

1 y4 + y1y24 ) y2

1 y24)

Page 16: POLYNOMIALEQUATIONSINGEOMETRIC MODELLING ......POLYNOMIALEQUATIONSINGEOMETRIC MODELLING,THECONTROLOFUNWANTED VIBRATIONSINMANUFACTURING,ANDTHE DEBLURRINGOFIMAGES JoabWinkler DepartmentofComputerScience

Example of a pejorative manifold cont’d

(a) (b)

Figure: The pejorative manifolds of a cubic polynomial that has (a) a realcubic root, and (b) a real double root and a real simple root.

Page 17: POLYNOMIALEQUATIONSINGEOMETRIC MODELLING ......POLYNOMIALEQUATIONSINGEOMETRIC MODELLING,THECONTROLOFUNWANTED VIBRATIONSINMANUFACTURING,ANDTHE DEBLURRINGOFIMAGES JoabWinkler DepartmentofComputerScience

The computation of a pejorative manifold

The GCD computations and polynomial divisions enable themultiplicities mi of the roots of f (y) to be computed, and theytherefore identify the pejorative manifoldM on which f (y) lies.An iterative search is then performed on the manifold in order toidentify the point onM that represents f (y).It can be shown that computations performed on a manifold arenumerically stable because, by definition of a pejorative manifold, allpoints on it represent the set of polynomials whose roots havemultiplicities mi . It follows that iterations that are restricted toMchange the values of the roots, but not their multiplicities.

Mathematical techniques required for the computation of the roots off (y):

Computational linear algebra, non-linear structure-preserving matrixmethods, linear programming, constrained optimisation

Page 18: POLYNOMIALEQUATIONSINGEOMETRIC MODELLING ......POLYNOMIALEQUATIONSINGEOMETRIC MODELLING,THECONTROLOFUNWANTED VIBRATIONSINMANUFACTURING,ANDTHE DEBLURRINGOFIMAGES JoabWinkler DepartmentofComputerScience

Image deblurring

A blurred image is formed by the convolution of an exact image anda blurring function, called a point spread functionThe multiplication of two polynomials reduces to the convolution oftheir coefficients

It follows that:

If an image is considered a bivariate polynomial, then polynomialmethods (greatest common divisor, deconvolution, and moregenerally, algebraic geometry) can be used to deblur an image

Page 19: POLYNOMIALEQUATIONSINGEOMETRIC MODELLING ......POLYNOMIALEQUATIONSINGEOMETRIC MODELLING,THECONTROLOFUNWANTED VIBRATIONSINMANUFACTURING,ANDTHE DEBLURRINGOFIMAGES JoabWinkler DepartmentofComputerScience

Two examples of image deblurring using polynomial methods

Page 20: POLYNOMIALEQUATIONSINGEOMETRIC MODELLING ......POLYNOMIALEQUATIONSINGEOMETRIC MODELLING,THECONTROLOFUNWANTED VIBRATIONSINMANUFACTURING,ANDTHE DEBLURRINGOFIMAGES JoabWinkler DepartmentofComputerScience
Page 21: POLYNOMIALEQUATIONSINGEOMETRIC MODELLING ......POLYNOMIALEQUATIONSINGEOMETRIC MODELLING,THECONTROLOFUNWANTED VIBRATIONSINMANUFACTURING,ANDTHE DEBLURRINGOFIMAGES JoabWinkler DepartmentofComputerScience

Summary

There are several applications in which it is required to computeroots of a polynomial.Multiple roots break up into simple roots in the presence of noise,and it is therefore necessary to ‘sew’ together the simple roots thatbelong to the same multiple roots.Structure-preserving matrix methods and computational linearalgebra enable multiple roots of a polynomial to be computed.The geometry of polynomials that have one or more multiple rootscan be considered from its pejorative manifolds.Polynomial computations can be used to deblur an image.The MATLAB code for the work on polynomials was easily adaptedto image deblurring.