5 Linear Homotopy. 5-1 Introduction

Size: px
Start display at page:

Download "5 Linear Homotopy. 5-1 Introduction"

Transcription

1 Algebraic Geodesy and Geoinformatics PART I METHODS 5 Linear Homotopy 5-1 Introduction Most often, there exist a fundamental task of solving systems of equations in geodesy. In such cases, many geodetic problems are represented as systems of multivariate polynomials. Frequently the bottleneck in solving such systems is to find out proper initial starting values for iterative methods, which lead to convergence to solutions with physical meaning. Although symbolic methods such as Groebner basis or resultants have been shown to be very efficient, providing solutions for systems of only modest size. In addition, in some cases the nonlinear equations representing the geodetic problems are not polynomial ones. Therefore, in case of some real life problems one should employ global numerical methods to avoid initial value problem. Using numerical algorithms to solve polynomial systems with tools originating from algebraic geometry is the main activity in the so called Numerical Algebraic Geometry. This is a new developing field on the crossroads of algebraic geometry, numerical analysis, computer science and engineering. Homotopy continuation method is a global numerical method to solve not only polynomial systems, but also nonlinear system in general. 5-2 Definition and basic concepts The continuous deformation of an object to an other object is known as homotopy. Let us consider two univariate polynomials p1 and q1 of the same degree, p1 HxL = x2-3 q1 HxL = -x2 - x + 1 Define the linear convex function, H in variables x and Λ, called as homotopy function as, H Hx, ΛL = H1 - ΛL p1 HxL + Λ q1 HxL In geometric terms, the homotopy H provides us a continuous, smooth deformation from p1 -which is obtained for Λ = 0 by H(x, 0) - to q1 - which is obtained for Λ = 1 by H(x, 1). The homotopy function can be seen in the figure 5.1 for different Λ values, Λ = 0., 0.1,...,1. We call it linear homotopy because H is a linear function of the variable Λ. Let us define these functions,

2 2 Linear_Homotopy_05.nb Clear"Global " p 1 x_ : x 2 3 q 1 x_ : x 2 x 1 Hx_, Λ_ : 1 Λ p 1 x Λ q 1 x Now we can plot the homotopy function with different constant Λ values, illustrating the deformation of p 1 (x) into q 1 (x). Show PlotTableHx, Λ, Λ, 0, 1, 0.1, x, 2, 1.5, AxesLabel "x", ImageSize 300, GraphicsText"p 1 ", 0.5, 3., GraphicsText"q 1 ", 0.35, 0.8, GraphicsText"Hx,Λ", 0.3, q Fig. 5.1 Deformation of the function H from p 1 to q 1 as function of Λ Now let us consider two univariate polynomials p 2 and q 2 of the different degrees, Define the linear convex homotopy again with, Similarly, the functions are p 2 x_ : x 2 1 q 2 x_ : x x2 4 Hx_, Λ_ : 1 Λ p 2 x Λ q 2 x and

3 Linear_Homotopy_05.nb ShowPlotTableHx, Λ, Λ, 0, 1, 0.1, x, 2.5, 2.5, AxesLabel "x", GraphicsText"p 2 ", 1.5, 2., GraphicsText"q 2 ", 0.9, p q 2 Fig. 5.2 Deformation of the function H from p 2 to q 2 as function of Λ 5-3 Solving nonlinear equation via homotopy Homotopy continuation method deforms the known roots of the start system into the roots of the target system. Now, let us look at how homotopy can be used to solve a simple polynomial equation. Consider the polynomial equation of degree two, qx_ : x 2 8 x 9 By deleting the middle term, we can get a more simple equation, which can be solved easily by inspection, px_ : x 2 9 This equation also has two roots and will be considered as start system for the target system. The linear homotopy can be defined as it follows or Hx_, Λ_ : 1 Λ px Λ qx Hx, Λ Expand 9 x 2 8 x Λ Let us plot the homotopy H for the polynomials p(x) and q(x) ShowPlotTableHx, Λ, Λ, 0, 1, 0.1, x, 10, 10, AxesLabel "x", GraphicsText"px", 8, 35., GraphicsText"qx", 8, qx px

4 4 Linear_Homotopy_05.nb Fig. 5.3 Deformation of the function H from p x to q x as function of Λ Homotopy continuation method deforms p(x) = 0, the known roots of the start system, into q(x) = 0, the roots of the target system. Let us solve the equation H(x, Λ) = 0 for different values of Λ. Considering x 0 = 3 one of the solutions of p(x) = 0 as initial guess value, and solving H(x, Λ 1 ) = 0, where let Λ 1 = 0.2, employing Newton-Raphson method subsequently, we get x 0 3; Λ 1 0.2; x 1 x. FindRootHx, Λ 1 0, x, x Using the result as guess value for the next solution step Λ 2 0.4; x 2 x. FindRootHx, Λ 2 0, x, x and so on, Λ 3 0.6; x 3 x. FindRootHx, Λ 3 0, x, x Λ 4 0.8; x 4 x. FindRootHx, Λ 4 0, x, x Λ 5 1; x 5 x. FindRootHx, Λ 5 0, x, x 4 1. Let us display the transition of a root of the polynomial p(x) into a root of the polynomial q(x), ShowPlotTableHx, Λ, Λ, 0, 1, 0.2, x, 0, 5, AxesLabel "x", ListPlot3, 0, x 1, 0, x 2, 0, x 3, 0, x 4, 0, x 5, 0, PlotStyle PointSize0.016, RGBColor1, 0, 0, GraphicsText"px", 5, 10., GraphicsText"qx", 4, qx Fig. 5.4 The transition of the root from x = 3 to x = 1 during the deformation of the function H The homotopy path is the function x = x (Λ), where in every point H (x,λ) = 0. Fig. 5.5 shows the path of homotopy transition of the root of p(x) into the root of q(x). Λ 0 0.; ShowListPlotTableΛ i, x i, i, 0, 5, Joined True, AxesLabel "Λ", "xλ", ListPlotTableΛ i, x i, i, 0, 5, PlotStyle PointSize0.016, RGBColor1, 0, 0, GraphicsText"p3 0", 0.12, 2.95, Text"q1 0", 0.95, 1.25

5 Linear_Homotopy_05.nb p3 0 q1 0 Fig. 5.5 The homotopy path is the function x = x (Λ), where in every point H = Tracing homotopy path as initial value problem Comparing homotopy solution with the traditional Newton-Raphson solution, it is clear that if Λ is small enough, the convergence may be ensured in every step. However, one can consider this root tracing procedure as an initial value problem of an ordinary differential equation. Since H (x, Λ) = 0 for every Λ [0, 1], therefore Then the initial value problem is with Here H x is the Jacobian of H with respect to x i, i = 1,..., n, in case of n nonlinear equations with n variables. In our single variable case, the two partial derivates of the homotopy function are dhdλ DHx, Λ, Λ 8 x dhdx DHx, Λ, x 2 x 1 Λ 8 2 x Λ Then the right hand side of the differential equation to be solved is deqrhs dhdλ. x xλ dhdx 8 xλ 2 1 Λ xλ Λ 8 2 xλ The differential equation,

6 6 Linear_Homotopy_05.nb deq DxΛ, Λ deqrhs 8 xλ x Λ 2 1 Λ xλ Λ 8 2 xλ The initial value is x0 x 0 3 The numerical solution sol NDSolvedeq, x0 x0, xλ, Λ, 0, 1 xλ InterpolatingFunction 0., 1., Λ The trajectory is the homotopy path, PlotxΛ. sol, Λ, 0, 1, AxesLabel "Λ", "xλ", Epilog PointSize0.016, Blue, Point0, x0, PointSize0.016, Red, Point1, FirstxΛ. sol. Λ 1 Fig. 5.6 The trajectory of the solution as the homotopy path The value of the corresponding root of q(x) is x(λ) at Λ =1, FirstxΛ. sol. Λ Types of linear homotopy General linear homotopy As we have seen, the start system can be constructed intuitively, reducing the original system (target system) to a more simple system (start system), which roots can be easily computed. In order to get all of the roots of the target system, the start system should have so many roots as many the target system has. The start system can be constructed in different ways, however there are two typical techniques for generating the start sytems, which are usually employed.

7 Linear_Homotopy_05.nb Fixed-point homotopy The start system can be considered as where x 0 is a guess value for the root of the target system q x 0. In that case the homotopy function is Newton homotopy An other construction for the start system, when we consider p(x) as in that case the homotopy function is or There are other methods to construct start system for linear homotopy. In a section, following later, we shall see how one can define start system for polynomial systems automatically. It is known that local methods, like Newton-Raphson method, require initial guess of a root, which is close to the intended root for the particular application. Global methods, like homotopy continuation method can find solution from a start guess, which is far from the solution. Now, we shall illustrate some situations when Newton-Raphson method fails, but homotopy method can be successful. We shall consider two usual problems with the Newton-Raphson method, namely when the Jacobi matrix is singular or when the convergency is too slow. 5-6 Newton-Raphson vs. homotopy method Singular Jacobi matrix Let us consider the following univariate polynomial of degree three, This polynomial has one real and two conjugate complex roots. qx_ : 27 x x x 40 Plotqx, x, 3, 1, AxesLabel "x", "qx", ImageSize 350

8 8 Linear_Homotopy_05.nb Fig. 5.7 The real root of the polynomial Let us try to find the real root using Newton- Raphson method, with an initial guess value x 0-2, FindRootqx, x, 2 FindRoot::jsing: Encountered a singular Jacobian at the point x 2.. Try perturbing the initial points. x 2. This method also fails when x FindRootqx, x, 1.5 FindRoot::lstol: The line search decreased the step size to within tolerance specified by AccuracyGoal and PrecisionGoal but was unable to find a sufficient decrease in the merit function. You may need more than MachinePrecision digits of working precision to meet these tolerances. x Now we use homotopy method. Let us employ fixed- point homotopy with x 0-2, Fig. 5.8 shows the plot of fixed point homotopy curves for target system q x in case of x 0 2, x0 2; Hx_, Λ_ : 1 Λ x x0 Λ qx ShowPlotTableHx, Λ, Λ, 0, 1, 0.1, x, 3, 2, AxesLabel "x", "px,qx", PlotRange 10, 40, ImageSize 350, GraphicsText"px x x 0 ", 2.15, 1.5, Text"qx", 2.45, 31

9 Linear_Homotopy_05.nb qx px x x Fig. 5.8 The homotopy function of the problem with parameter Λ Let us generate the fixed pont homotopy path for q x 0 in case of x 0 2, DHx, Λ, Λ rhs. x xλ; 0 DHx, Λ, x sol NDSolveDxΛ, Λ rhs, x0 x0, xλ, Λ, 0, 1; PlotxΛ. sol, Λ, 0, 1, PlotRange 1.9, 2.9, AxesLabel "Λ", "xλ", Epilog PointSize0.016, Blue, Point0, x0, PointSize0.016, Red, Point1, FirstxΛ. sol. Λ 1, ImageSize Fig. 5.9 The homotopy path of the problem A value of the real root is FirstxΛ. sol. Λ This fixed-point homotopy also works with x 0 = Slow convergency Let us consider now a two- dimensional problem. The target sytem is

10 10 Linear_Homotopy_05.nb Fig shows the contour plot of the system of equations in case of f 1 0 and f 2 0 f1x_, y_ : x ^ 2 x y 1 f2x_, y_ : Sqrtx 1 y ShowContourPlotf1x, y 0, f2x, y 0, x, 1.1, 2, y, 2, 1, FrameLabel "x", "y", ImageSize 350, GraphicsText"f 1 x, y 0", 1.43, 0, Text"f 2 x, y 0", 0.5, 1, Text"f 1 x, y 0", 0.45, f 1 x, y f 1 x, y f 2 x, y We try Newton-Raphson method with x 0 = and y 0 = 0.5, x0 0.1; y0 0.5; Fig The real roots of the nonlinear system FindRootf1x, y, f2x, y, x, x0, y, y0 FindRoot::cvmit: Failed to converge to the requested accuracy or precision within 100 iterations. x , y Now let us employ Newton homotopy, f1x0, y0 Hx_, y_, Λ_ : Flatten1 Λ f2x0, y0 Hx, y, Λ f1x, y f2x, y 1 x 2 x y Λ, 1 x y Λ Let us generate the contour plot of the start system in case of Newton homotopy with x and y 0 0.5,

11 Linear_Homotopy_05.nb ShowContourPlotHx, y, 01 0, x, 1, 2, y, 2, 1, FrameLabel "x", "y", ImageSize 350, GraphicsText"Hx,y,0 0", 0.75, 1, ContourPlotHx, y, 02 0, x, 1, 2, y, 2, 1, ImageSize y Hx,y, Fig The homotopy function contours at H = 0 Let us define a function for the Jacobi computation as it follows, JacobiF_, X_ : OuterD, F, X Then the total Jacobian, ( H x H H ) y Λ JxyΛ JacobiHx, y, Λ, x, y, Λ; MatrixFormJxyΛ 2 x y x x The Jacobian respecting to x and y Jxy TakeJxyΛ, 1, 2, 1, 2; MatrixFormJxy 2 x y x 1 2 1x 1 Now, in case of system of two variables, X ={x, y}, we should solve a linear system in order to get explicit form of the differential equation system, namely

12 12 Linear_Homotopy_05.nb The right hand side of the linear system b TakeJxyΛ, 1, 2, 2 1; MatrixFormb Solving the linear system, we get rhs LinearSolveJxy, b Simplify. Map Λ &, x, y Flatten 1. xλ xλ yλ xλ yλ, 2. xλ 1. yλ 0.5 xλ 2. xλ 1. xλ xλ yλ xλ 2. xλ xΛ 0.5 xλ 1.xΛ yλ 1. yλ Then the left hand side of the differential equation system is, lhs MapDΛ, Λ, 1 &, x, y x Λ, y Λ Therefore the differential equation system, deqs MapThread1 2 &, lhs, SetPrecisionrhs, 20 x Λ xλ xλ yλ xλ yλ xλ yλ xλ xλ xλ xλ yλ, y Λ xλ yλ xλ xλ xλ xλ yλ Here we used an extra precision because this system is stiff. The initial values are also given in rational form representing infinite precision. The numerical solution, sol NDSolveJoindeqs, x0 1 10, y0 1 2, xλ, yλ, Λ, 0, 1, WorkingPrecision 20 xλ InterpolatingFunction 0, , Λ, yλ InterpolatingFunction 0, , Λ The plot of the homotopy solution of the system in case of Newton homotopy with x and y 0 0.5,

13 Linear_Homotopy_05.nb ShowPlotxΛ, yλ. sol, Λ, 0, 1, FrameLabel "Λ", "xλ, yλ", Frame True, Epilog PointSize0.016, Blue, Point0, x0, 0, y0, PointSize0.016, Red, Point1, FirstxΛ. sol. Λ 1, 1, FirstyΛ. sol. Λ 1, GraphicsText"xΛ", 0.6, 0.6, GraphicsText"yΛ", 0.4, yλ xλ, yλ xλ Fig The homotopy paths of the solution The solution of the system, xs, ys FlattenxΛ, yλ. sol. Λ , We can round these values, xs, ys xs, ys Round 1, Regularization of the homotopy function Sometimes this form of homotopy methods may also fail, because of singularity resulting diverging path. Let us consider the following system, f1x_, y_ : x ^ 2 y 3 f2x_, y_ : x 1 8 y ^ 2 1

14 14 Linear_Homotopy_05.nb ShowContourPlotf1x, y 0, f2x, y 0, x, 10, 10, y, 10, 10, FrameLabel "x", "y", GraphicsText"f 1 x,y 0", 0, 9, Text"f 2 x,y 0", 8, y f 1 x,y Fig The real roots of the polynomial system First, let us try to solve the problem using Newton- Rapson method, starting with x 0 = - 1 and y 0 = -1, FindRootf1x, y, f2x, y, x, 1, y, 1 FindRoot::lstol: The line search decreased the step size to within tolerance specified by AccuracyGoal and PrecisionGoal but was unable to find a sufficient decrease in the merit function. You may need more than MachinePrecision digits of working precision to meet these tolerances. x , y This result is not correct, f1x, y, f2x, y , or with x 0 = 1 and y 0 = -1, FindRootf1x, y, f2x, y, x, 1, y, 1 FindRoot::lstol: The line search decreased the step size to within tolerance specified by AccuracyGoal and PrecisionGoal but was unable to find a sufficient decrease in the merit function. You may need more than MachinePrecision digits of working precision to meet these tolerances. x , y again, this is not a solution f1x, y, f2x, y , These mean that none of them is a correct solution, Newton - Raphson method fails.

15 Linear_Homotopy_05.nb Let us try to solve the problem with homotopy method. We consider the following obvious functions as start system of { f 1, f 2 } by deleting the low order terms, g1x_, y_ : x ^ 2 1 g2x_, y_ : y ^ 2 1 Remark: The degree of the start and the target system should be the same. Solveg1x, y 0, g2x, y 0, x, y x 1, y 1, x 1, y 1, x 1, y 1, x 1, y 1 The zeros of this system are (1, 1), (-1, 1), (-1, -1) and (1, -1). Let us consider x0 1; y0 1; The homotopy function is g1x, y Hx_, y_, Λ_ : Flatten1 Λ g2x, y Hx, y, Λ Λ f1x, y f2x, y 1 x 2 1 Λ 3 x 2 y Λ, 1 y 2 1 Λ The total Jacobian, 1 x y2 8 Λ JxΛ JacobiHx, y, Λ, x, y, Λ; MatrixFormJxΛ 2 x 1 Λ 2 x Λ Λ 2 y The Jacobian respecting to x and y Λ 2 y 1 Λ y Λ 4 x 7 y2 8 Jx TakeJxΛ, 1, 2, 1, 2; MatrixFormJx 2 x 1 Λ 2 x Λ Λ Λ 2 y 1 Λ y Λ 4 Now, we set up the differential equation system for tracing homotopy paths. Explicit form of the differential equation system should be expressed. The right hand side of the linear system b TakeJxΛ, 1, 2, 2 1; MatrixFormb 2 y x 7 y2 8 Solving the linear system, we get the right hand side, rhs LinearSolveJx, b Simplify. Map Λ &, x, y Flatten 8 Λ xλ Λ yλ 16 7 Λ yλ2, 8 xλ2 4 Λ 2 yλ 7 xλ yλ Λ Λ xλ yλ 2 2 Λ Λ xλ yλ The left hand side is, lhs MapDΛ, Λ, 1 &, x, y x Λ, y Λ

16 16 Linear_Homotopy_05.nb Then the differential equation system can be written as, deqs MapThread1 2 &, lhs, rhs x Λ 8 Λ xλ Λ yλ 16 7 Λ yλ2, 4 2 Λ Λ xλ yλ y Λ 8 xλ2 4 Λ 2 yλ 7 xλ yλ Λ Λ xλ yλ The numerical solution of the system with the initial values {x0, y0}, or sol NDSolveJoindeqs, x0 x0, y0 y0, xλ, yλ, Λ, 0, 1, Method "ExplicitRungeKutta " NDSolve::ndstf : At Λ , system appears to be stiff. Methods Automatic, BDF or StiffnessSwitching may be more appropriate. xλ InterpolatingFunction 0., , Λ, yλ InterpolatingFunction 0., , Λ sol NDSolveJoindeqs, x0 x0, y0 y0, xλ, yλ, Λ, 0, 1, Method "StiffnessSwitching " NDSolve::ndsz: At Λ , step size is effectively zero; singularity or stiff system suspected. xλ InterpolatingFunction 0., , Λ, yλ InterpolatingFunction 0., , Λ The integration has failed because singularity of the Jacobi matrix of H(x, y, Λ) occured. In order to avoid singularity in real field, we consider a modified complex homotopy function, where Γ is a complex number. For almost all choices of a complex constant Γ, all solution paths defined by the homotopy above are regular, i.e.: for all Λ [0, 1], the Jacobian matrix of H (x, Λ) is regular and no path diverges. Let us now consider, Γ 1 ; Then the homotopy function, g1x, y Hx_, y_, Λ_ : FlattenΓ 1 Λ g2x, y Hx, y, Λ Λ f1x, y f2x, y 1 1 x 2 1 Λ 3 x 2 y Λ, 1 1 y 2 1 Λ The total Jacobian, JxΛ JacobiHx, y, Λ, x, y, Λ; MatrixFormJxΛ 1 x y2 8 Λ 2 2 x 1 Λ 2 x Λ Λ 3 x x 2 y Λ 2 2 y 1 Λ y Λ 1 x y y2 The Jacobian respecting to x and y

17 Linear_Homotopy_05.nb Jx TakeJxΛ, 1, 2, 1, 2; MatrixFormJx 2 2 x 1 Λ 2 x Λ Λ Λ 2 2 y 1 Λ y Λ 4 The right hand side of the linear system b TakeJxΛ, 1, 2, 2 1; MatrixFormb 3 x x 2 y 1 x y y2 Solving the linear system, rhs LinearSolveJx, b Simplify. Map Λ &, x, y Flatten 8 Λ 1 xλ Λ 1 2 xλ 2 yλ Λ yλ Λ Λ 7 8 Λ 2 xλ yλ, Λ xλ 2 4 Λ 1 2 yλ 1 Λ xλ yλ Λ Λ 7 8 Λ 2 xλ yλ Then the differential equation system is, lhs MapDΛ, Λ, 1 &, x, y x Λ, y Λ deqs MapThread1 2 &, lhs, rhs x Λ 8 Λ 1 xλ Λ 1 2 xλ 2 yλ Λ yλ Λ Λ 7 8 Λ 2 xλ yλ, y Λ Λ xλ 2 4 Λ 1 2 yλ 1 Λ xλ yλ Λ Λ 7 8 Λ 2 xλ yλ The numerical solution sol NDSolveJoindeqs, x0 x0, y0 y0, xλ, yλ, Λ, 0, 1 xλ InterpolatingFunction 0., 1., Λ, yλ InterpolatingFunction 0., 1., Λ The solution of the polynomial system, xλ, yλ. sol. Λ , Now we have got a complex root,

18 18 Linear_Homotopy_05.nb ShowParametricPlotReyΛ, ImyΛ. sol, Λ, 0, 1, PlotRange All, FrameLabel "Re", "Im", Frame True, Epilog PointSize0.02, Blue, PointRey0, Imy0, PointSize0.02, Red, PointFirstReyΛ. sol. Λ 1, FirstImyΛ. sol. Λ 1, PointSize0.02, Blue, PointRex0, Imx0, PointSize0.02, Red, PointFirstRexΛ. sol. Λ 1, FirstImxΛ. sol. Λ 1, ParametricPlotRexΛ, ImxΛ. sol, Λ, 0, 1, PlotRange All, GraphicsText"xΛ", 1.5, 0.5, GraphicsText"yΛ", 0.5, xλ Im yλ Fig The homotopy paths on complex plain Basically, our original system, the target system has four solutions, NSolvef1x, y 0, f2x, y 0, x, y x , y , x , y , x , y , x , y The other roots can be also computed using different start values, namely x0 1; y0 1; sol NDSolveJoindeqs, x0 x0, y0 y0, xλ, yλ, Λ, 0, 1; xλ, yλ. sol. Λ , and the real roots x0 1; y0 1; sol NDSolveJoindeqs, x0 x0, y0 y0, xλ, yλ, Λ, 0, 1; xλ, yλ. sol. Λ ,

19 Linear_Homotopy_05.nb These complex "tails" can be eliminated by using computation with high precision, sol NDSolveJoindeqs, x0 x0, y0 y0, xλ, yλ, Λ, 0, 1, AccuracyGoal 20, PrecisionGoal 20, WorkingPrecision 30; xλ, yλ. sol. Λ , Chop N , The other real root can be computed similarly, x0 1; y0 1; sol NDSolveJoindeqs, x0 x0, y0 y0, xλ, yλ, Λ, 0, 1; xλ, yλ. sol. Λ , Now, again complex "tails" can be eliminated, sol NDSolveJoindeqs, x0 x0, y0 y0, xλ, yλ, Λ, 0, 1, AccuracyGoal 20, PrecisionGoal 20, WorkingPrecision 30; xλ, yλ. sol. Λ , Chop N , Start system for polynomial systems How we can find the proper start system, which will provide all of the solutions of the target system automatically? This problem can be solved if the nonlinear system is specially a system of polynomial equations. Let us consider the case when we are looking for the homotopy solution of f(x) = 0, where f(x) is a polynomial system, f(x): n n. To get all of the solutions, one should find out a proper polynomial system, as start system, g(x) = 0, where g(x): n n with known or easily computable solutions. An appropriate start system can be generated in the following way, Let f i x 1,..., x n, i 1,..., n be a system of n polynomials. We are interested of the common zeros of the system, namely f f 1 x,..., f n x 0. Let d j denote the degree of the j th polynomial that is the degree of the highest order monomial in the equation. Then such a starting system is, where Φ j and Θ j are random real numbers in the interval [0, 2 Π]. The equation above has the obvious particular solution x j = i Θ j and the complete set of the starting solutions for j = 1,..., n is given by

20 20 Linear_Homotopy_05.nb Bezout s theorem states that the number of isolated roots of such a system is bounded by the total degree of the system, n i 1 d i = d 1 d 2...d n. Let us consider the following system f1x_, y_ : x ^ 2 y ^ 2 1 f2x_, y_ : x ^ 3 y ^ 3 1 The degrees of the polynomials are d1 2; d2 3; Indeed, this system has the following six roots (d 1 d 2 = 2 * 3 = 6), as it is expected. Indeed using built-in Global Numerical Solver, NSolvef1x, y 0, f2x, y 0, x, y x , y , x , y , x 1., y 0., x 1., y 0., x 0., y 1., x 0., y 1. Length 6 Now, we compute the start system. We generate random real numbers in the interval [0, 2Π] as it follows Φ1 RandomReal, 0, 2 Π Φ2 RandomReal, 0, 2 Π Θ1 RandomReal, 0, 2 Π Θ2 RandomReal, 0, 2 Π The start system is, g1x_, y_ : Φ1 x d1 Θ1 d1 g2x_, y_ : Φ2 y d2 Θ2 d2 g1x, y x 2 g2x, y y 3 Then the complete set of the starting solutions, Xi TableExp Θ1 2 Π k d1, k, 0, d ,

21 Linear_Homotopy_05.nb and Yi TableExp Θ2 2 Π k d2, k, 0, d , , We need all of the combination of the initial values {X i, Y j, i = 1, 2, j = 1, 2 X0 TuplesXi, Yi , , , , , , , , , , , These values are satisfy the start system, Mapg11, 2 &, X , 0. 0., 0. 0., , , Chop 0, 0, 0, 0, 0, 0 Mapg21, 2 &, X , , , 0. 0., , Chop 0, 0, 0, 0, 0, 0 So we have six initial values for solving our homotopy equations. These initial values will provide the start point of the six homotopy paths. The end points of these paths are the six solutions of the target system. Before carring out the computation, it is high time to implement four Mathematica functions to carry out linear homotopy computations in Mathematica environment. 5-9 Implementation of homotopy methods in Mathematica Function for computing start system for polynomials This function will compute the start system as well as the initial values for the computation of the homotopy paths in case of polynomial system. Input variables F - list of functions of the polynomial system to be solved, F = { f 1 (x), f 2 (x),..., f n (x)} X - list of the independent variables, X = {x 1,x 2,...,x n } d - list of the degrees of the polynomials, d = {d 1,d 2,...,d n } Output variables

22 22 Linear_Homotopy_05.nb G - list of start system, G = {g 1 (x), g 2 (x),...,g n (x)} X0 - list of initial values, X0 = {{x0 1,x0 2,...,x0 n 1,{x0 1,x0 2,...,x0 n 2,...,{x0 1,x0 2,...,x0 n m } where m is the number of the roots of F StartingSystemF_, X_, d_ : Modulen, k, Φ, Θ, G, Xi, X0, n LengthX; Φ TableRandomReal, 0, 2 Π, n; Θ TableRandomReal, 0, 2 Π, n; G MapThread &, Φ, d, Θ, X; Xi MapThreadTableExp 1 2 Π k 2, k, 0, 2 1 &, Θ, d; X0 TuplesXi; G, X0 Now, let us create the start system with this function. The list of the functions of the system we considered above is, F f1x, y, f2x, y 1 x 2 y 2, 1 x 3 y 3 The list of variables X x, y x, y The list of the degrees of the polynomials, d d1, d2 2, 3 Now, employing our function sol StartingSystemF, X, d; The start system is G sol x 2, y 3 and the initial values are X0 sol , , , , , , , , , , , They are the solutions of the start system, MapG1. x 1, y 2 &, X0 Chop 0, 0, 0, 0, 0, 0

23 Linear_Homotopy_05.nb MapG2. x 1, y 2 &, X0 Chop 0, 0, 0, 0, 0, Function for direct path tracing This function will compute the homotopy paths using Newton-Raphson method successively. Input variables F - list of functions of the polynomial system to be solved, F = { f 1 (x), f 2 (x),..., f n (x)} G - list of the start system, G = g 1 x,g 2 (x),...,g n x}, X - list of the independent variables X = {x 1,x 2,...,x n } X0 - list of initial values, X0 = {{x0 1,x0 2,...,x0 n 1,{x0 1,x0 2,...,x0 n 2,...,{x0 1,x0 2,...,x0 n m } where m is the number of the roots of F Γ - list of complex numbers, {Γ 1, Γ 2,...,Γ n }, it means Γ i can be different for every g i (x), If the start system is generated for polynomials all Γ i = 1. n - number of the subintervalls in [0, 1]. Output variables sol[1] sol[2] - list of the i-th solutions correspondig to the i-th initial values, {x0 1,x0 2,...,x0 n i, i = 1...m - list of the path of i-th solutions in form of interpolating functions of the variables correspondig with the i-th initial values, {x0 1,x0 2,...,x0 n i, i = 1...m, {{φ 1, φ 2,..., φ n 1,{φ 1, φ 2,..., φ n 2,...,{φ 1, φ 2,..., φ n m }, φ i =φ i (Λ) LinearHomotopyFR F_, G_, X_, X0_, Γ_, n_ : ModuleH, X0L, Λ0, i, Β, m, R, RR, j, k, sol, OffFindRoot::"lstol"; Λ0 Tablei 1, i, 0, n; n H Flatten1 Β ThreadG Γ Β F; m LengthX; k LengthX0; RR ; Do X0L X0j; DoAppendToX0L, Map2 &, FindRootH. Β Λ0i 1, MapThread1, 2 &, X, X0Li, i, 1, n; R ; DoAppendToR, InterpolationMapThread1, 2i &, Λ0, X0L, i, 1, m; AppendToRR, MapChopN1 &, R, R, j, 1, k; sol TransposeRR; sol1, TableMapThread1Λ 2Λ &, X, sol2, i, i, 1, LengthX0 Remark: It is reasonable to carry out computation with n = 100, however sometimes one may need more subintervalls, but it also possible that less will enough to get satisfactory result. In case of polynomial system, when we generate a start system in complex domain, we do not need to use complex Γ, Γ 1, 1;

24 24 Linear_Homotopy_05.nb sol LinearHomotopyFR F, G, X, X0, Γ, 100; The first output gives the roots of the system, sol1fr Chopsol1, , 0, 0, 1., 1., 0, , , 0, 1., , The second output is the list of the interpolation functions of the paths, sol2fr sol2 xλ InterpolatingFunction 0., 1., Λ, yλ InterpolatingFunction 0., 1., Λ, xλ InterpolatingFunction 0., 1., Λ, yλ InterpolatingFunction 0., 1., Λ, xλ InterpolatingFunction 0., 1., Λ, yλ InterpolatingFunction 0., 1., Λ, xλ InterpolatingFunction 0., 1., Λ, yλ InterpolatingFunction 0., 1., Λ, xλ InterpolatingFunction 0., 1., Λ, yλ InterpolatingFunction 0., 1., Λ, xλ InterpolatingFunction 0., 1., Λ, yλ InterpolatingFunction 0., 1., Λ Function for path tracing with integration This function will compute the homotopy paths using numerical integration of the differencial equation system employing Runge-Kutta method. In this implementation we compute the inverse of the Jacobian, namely the initial value problem will be expressed as with Here H x 1 is the inverse of the Jacobian (H x ) with respect to x i, i = 1,..., n, in case of n nonlinear equations with n variables. The inverse will be computed in symbolic way therefore the number of equations may be limited by n = 6-8. Input variables F - list of functions of the polynomial system to be solved, F = { f 1 (x), f 2 (x),..., f n (x)} G - list of the start system, G = g 1 x,g 2 (x),...,g n x}, X - list of the independent variables X = {x 1,x 2,...,x n } X0 - list of initial values, X0 = {{x0 1,x0 2,...,x0 n 1,{x0 1,x0 2,...,x0 n 2,...,{x0 1,x0 2,...,x0 n m } where m is the number of the roots of F Γ - list of complex numbers, {Γ 1, Γ 2,...,Γ n }, it means Γ i can be different for every g i (x), If start system is generated for polynomials all Γ i = 1. p - indicating numerical precision of the computation., p = 0 standard precision, p =1 high precision Output variables

25 Linear_Homotopy_05.nb sol[1] sol[2] - list of the i-th solutions correspondig to the i-th initial values, {x0 1,x0 2,...,x0 n i, i = 1...m - list of the path of i-th solutions in form of interpolating functions of the variables correspondig with the i-th initial values, {x0 1,x0 2,...,x0 n i, i = 1...m, {{φ 1, φ 2,..., φ n 1,{φ 1, φ 2,..., φ n 2,...,{φ 1, φ 2,..., φ n m }, where φ i =φ i (Λ) LinearHomotopyNDS01 X_, F_, G_, X0_, Γ_, p_ : ModuleH, n, JΛ, J, u, i, j, b, A, a, B, rhs, lhs, deqs, sol, pa, pp, wp, OffNDSolve::"precw"; H Flatten1 Λ ThreadG Γ Λ F; n LengthX; JΛ OuterD, H, JoinX, Λ; J TakeJΛ, 1, n, 1, n; u TakeJΛ, 1, n, n 1; A Tablea i,j, i, 1, n, j, 1, n; B Tableb i, i, 1, n; rhs SimplifyLinearSolveA, B. JoinTableb i ui, i, 1, n, FlattenTable a i,j Ji, j, i, 1, n, j, 1, n. Map Λ &, X Flatten; lhs MapDΛ, Λ, 1 &, X; deqs MapThread1 2 &, lhs, rhs; pa, pp, wp Ifp 1, AccuracyGoal 20, PrecisionGoal 20, WorkingPrecision 30,,, ; sol MapFlattenNDSolveJoindeqs, MapThread10 2 &, X,, MapΛ &, X, Λ, 0, 1, pa, pp, wp &, X0; MapChopNMapΛ &, X.. Λ 1 &, sol, sol Now we solve the same problem. First, we use standard precision, sol LinearHomotopyNDS01 X, F, G, X0, Γ, 0; sol , , , , , , , , , , , Chopsol1, , 0, 0, 1., 1., 0, , , 0, 1., , Using higher precision, the computation takes a considerably longer time, sol LinearHomotopyNDS01 X, F, G, X0, Γ, 1; sol1nds sol1 1., , , 1., 1., , , , , 1., , but we have smaller values for the "tails",

26 26 Linear_Homotopy_05.nb Chopsol1NDS, , 0, 0, 1., 1., 0, , , 0, 1., , The interpolation functions for the paths sol2nds sol2 xλ InterpolatingFunction 0, , Λ, yλ InterpolatingFunction 0, , Λ, xλ InterpolatingFunction 0, , Λ, yλ InterpolatingFunction 0, , Λ, xλ InterpolatingFunction 0, , Λ, yλ InterpolatingFunction 0, , Λ, xλ InterpolatingFunction 0, , Λ, yλ InterpolatingFunction 0, , Λ, xλ InterpolatingFunction 0, , Λ, yλ InterpolatingFunction 0, , Λ, xλ InterpolatingFunction 0, , Λ, yλ InterpolatingFunction 0, , Λ Remarks : 1) To get explicit form for the differential equation system, the linear equation system is solved in symbolic way. Therefore, the maximum number of equation can be about n = 6-8, 2) High precision solution (p = 1) would take much longer time than standard precision does ( p = 0). In order to avoid to compute the inverse in this implementation, we consider a new parameter, t, namely this means with s(t) = {x (t), Λ(t)} we get where H s is the Jacobian of the homotopy function respect to vector s having n 1 dimensions. Then the i th derivate function can be expressed as where H i s is the i th column of the Jacobian matrix H s s t. However, in that case one need to check the upper bound of the integration parameter, while integration should be carried out up to t, where Λ t 0. Therefore it is reasonable to eliminate the last derivate of vector s, namely Considering that for i = 1, 2,..., n.

27 Linear_Homotopy_05.nb now the integration can be carried out with independent variable Λ on [0, 1]. The new implementation considering these changes is the following, LinearHomotopyNDS02 X_, F_, G_, X0_, Γ_, p_ : ModuleH, n, JΛ, rhs, rhs0, i, lhs, deqs, sol, pa, pp, wp, OffNDSolve::"precw"; H Flatten1 Λ ThreadG Γ Λ F; n LengthX; JΛ OuterD, H, JoinX, Λ; rhs0 Table1 i1 DetTransposeDropTransposeJΛ, i, i, i, 1, n 1; rhs DropMap Lastrhs0 &, rhs0, n 1, n 1. Map Λ &, X Flatten; lhs MapDΛ, Λ, 1 &, X; deqs MapThread1 2 &, lhs, rhs; pa, pp, wp Ifp 1, AccuracyGoal 20, PrecisionGoal 20, WorkingPrecision 30,,, ; sol MapFlattenNDSolveJoindeqs, MapThread10 2 &, X,, MapΛ &, X, Λ, 0, 1, pa, pp, wp &, X0; MapChopNMapΛ &, X.. Λ 1 &, sol, sol The input and output are the same as in case of the function LinearHomotopyNDS01. sol LinearHomotopyNDS02 X, F, G, X0, Γ, 1; sol1 1., , , 1., 1., , , , , 1., , Chopsol1, , 0, 0, 1., 1., 0, , , 0, 1., , Function for visualization of paths This function plots the homotopy paths computed by either direct method or by integration. Input variables X - the list of the independent variables X = {x 1, x 2,...,x n } sol - list of the interpolation functions of the variables {{φ 1, φ 2,..., φ n 1,{φ 1, φ 2,..., φ n 2,...,{φ 1, φ 2,..., φ n m } X0 - list of initial values, X0 = {{x0 1,x0 2,...,x0 n 1,{x0 1,x0 2,...,x0 n 2,...,{x0 1,x0 2,...,x0 n m } where m is the number of the roots of F, PathsX_, sol_, X0_ : GraphicsArrayTableParametricPlotReXiΛ, ImXiΛ. solj, Λ, 0, 1, PlotRange All, BaseStyle FontSize 10, FontFamily "Times", Axes None, FrameLabel "Re", "Im", Frame True, AspectRatio 0.6, PlotLabel StringJoinToStringXi, "Λ ", Epilog PointSize0.02, Blue, PointReX0j, i, ImX0j, i, PointSize0.02, Red, Point ReXiΛ. solj. Λ 1, ImXiΛ. solj. Λ 1, j, 1, LengthX0, i, 1, LengthX;

28 28 Linear_Homotopy_05.nb Let us plot the result of the solution of system above pnds PathsX, sol2, X0

29 Linear_Homotopy_05.nb 29 Im Im Im Im Im Im Im Im yλ Re Fig The homotopy paths Remark: These functions are implemented in the GeoAlgebra application package and you can use them, but in a slightly different way, see in Chapters of Part II.

30 30 Linear_Homotopy_05.nb Remark: These functions are implemented in the GeoAlgebra application package and you can use them, but in a slightly different way, see in Chapters of Part II Examples D Resection Problem The three-dimensional resection problem concerns itself with the determination of position and orientation of point P 0 connected by angular observations, φ i, j, i,,j = 1,2,3 to three known stations, P i, i = 1,2,3, see Fig It means, that the space angles, φ i, j as well as the distances S i, j, i,,j = 1, 2, 3 are known and the distances S i, i = 1, 2, 3 should be computed. Fig The geometrical interpretation of the 3D resection problem Grunert proposed the following distance equations, This is a system of polynomial equations for the variables S 1 S 2 and S 3 representing distances. Let us intruduce the folllowing variables then our system can be written in the following form, p1 x1 2 2 f12 x1 x2 x2 2 d12; p2 x2 2 2 f23 x2 x3 x3 2 d23; p3 x3 2 2 f31 x1 x3 x1 2 d31; Data are data SetPrecisiond , d , d , f12 Cos , f23 Cos , f31 Cos , 20; X x1, x2, x3;

31 Linear_Homotopy_05.nb F p1, p2, p3. data x x1 x2 x2 2, x x2 x3 x3 2, x x1 x3 x3 2 d 2, 2, 2; The start system ss StartingSystemF, X, d; G ss x1 2, x2 2, x3 2 The initial values X0 ss , , , , , , , , , , , , , , , , , , , , , , , The upper bound of the number of the estimated isolated roots LengthX0 8 Let Γ 1, 1, 1; Employing direct path tracing algorithm sol LinearHomotopyFR F, G, X, X0, Γ, 100; The solutions are sol , , , , , , , , , , , , , , , , , , , , , , , Selecting real, positive solution Selectsol1, Im Im Im & Flatten , ,

32 32 Linear_Homotopy_05.nb The position of the this solution p Positionsol1, Flatten First 4 Homotopy solution paths of the 3D resection problem, P PathsX, sol2, p, X0p Im Fig The real root of the polynomial

33 Linear_Homotopy_05.nb GPS Positioning 4-point Problem Throughout history, position determination has been one of the most important tasks of mountaineers, pilots, sailor, civil engineers etc. In modern times, Global Positioning System (GPS) employing Global Navigation Satellite Systems (GNSS) provide an ultimate method to accomplish this task. If one has a hand held GPS receiver, the receiver measures the travel time of the signal transmitted from the satellites. Then this distance can be computed by multiplying the measured time by the speed of light in vacuum. The distance of the receiver from the i-th satellite, d i is related to the unknown position of the receiver, {X,Y, Z} where a i, b i, c i, i are the coordinates of the i th satellite. The distance is influenced also by the satellite and receiver clock biases. The satellite clock biases can be modeled while the receiver clock biases have to be considered as an unknown variable, Ξ. This means, we have four unknowns, consequently we need four satellite signals as minimum observation. Let us employ x 1, x 2, x 3 and x 4 variables for the four unknowns, {X,Y, Z, Ξ,} then our equations are, e i = 0, i = 1...4, where Cleard, b or e1 x1 a 0 2 x2 b 0 2 x3 c 0 2 x4 d 0 2 ; e2 x1 a 1 2 x2 b 1 2 x3 c 1 2 x4 d 1 2 ; e3 x1 a 2 2 x2 b 2 2 x3 c 2 2 x4 d 2 2 ; e4 x1 a 3 2 x2 b 3 2 x3 c 3 2 x4 d 3 2 ; f1, f2, f3, f4 e1, e2, e3, e4 Expand x1 2 x2 2 x3 2 x4 2 2 x1 a 0 a x2 b 0 b x3 c 0 c x4 d 0 d 0 2, x1 2 x2 2 x3 2 x4 2 2 x1 a 1 a x2 b 1 b x3 c 1 c x4 d 1 d 1 2, x1 2 x2 2 x3 2 x4 2 2 x1 a 2 a x2 b 2 b x3 c 2 c x4 d 2 d 2 2, x1 2 x2 2 x3 2 x4 2 2 x1 a 3 a x2 b 3 b x3 c 3 c x4 d 3 d 3 2 Now let us create the start system in a different way. We consider the univariable parts of the equations as start system. Namely, g1 a 0 2 b 0 2 c 0 2 d 0 2 Coefficientf1, x1, 1 x1 Coefficientf1, x1, 2 x1 2 x1 2 2 x1 a 0 a 0 2 b 0 2 c 0 2 d 0 2 g2 a 1 2 b 1 2 c 1 2 d 1 2 Coefficientf2, x2, 1 x2 Coefficientf2, x2, 2 x2 2 x2 2 a x2 b 1 b 1 2 c 1 2 d 1 2 g3 a 2 2 b 2 2 c 2 2 d 2 2 Coefficientf3, x3, 1 x3 Coefficientf3, x3, 2 x3 2 x3 2 a 2 2 b x3 c 2 c 2 2 d 2 2 g4 a 3 2 b 3 2 c 3 2 d 3 2 Coefficientf4, x4, 1 x4 Coefficientf4, x4, 2 x4 2 x4 2 a 3 2 b 3 2 c x4 d 3 d 3 2 The observation data are,

34 34 Linear_Homotopy_05.nb data a , a , a , a , b , b , b , b , c , c , c , c , d , d , d , d ; The target system, F f1, f2, f3, f4. data x1 x x2 x x3 x x4 x4 2, x1 x x2 x x3 x x4 x4 2, x1 x x2 x x3 x x4 x4 2, x1 x x2 x x3 x x4 x4 2 The start system consisting of univariate polynomials, G g1, g2, g3, g4. data x1 x1 2, x2 x2 2, x3 x3 2, x4 x4 2 Let us compute the initial values as the solution of the start system, X x1, x2, x3, x4; X0 TransposePartitionMap2 &, FlattenMapThreadNSolve1 0, 2 &, G, X, , , , , , , , Employing the path tracing algorithm by integration, Γ 1, 1, 1, 1; OffNDSolve::"ndsz"; OffInterpolatingFunction ::"dmval"; OffNDSolve::"mxst"; sol LinearHomotopyNDS01 X, F, G, X0, Γ, 1; AbsoluteTiming , Null sol , , , , 0, 0, 0, 0 Eliminating imaginary tails Chop, , , , , 0, 0, 0, 0 The first (real) solution has physical meaning,

35 Linear_Homotopy_05.nb NumberForm1, , , , The direct path search is much faster, sol LinearHomotopyFR F, G, X, X0, Γ, 100; AbsoluteTiming , Null and gives practically one solution sol , , , , , , , or NumberForm1, , , , The built function NSolve employing numerical Groebner basis provides the same result, NSolveF, X x , x , x , x , x , x , x , x NumberForm, 16 & x , x , x , x Parallel Computing Having acces to more processors and/ or more cores, homotopy solution can be computed in parallel way, since every homotopy path belonging to different start values can be traced independently, simultaneously. Mathematica can utilize such hardware configuration. You need a very small modification in calling our function. Let us compute the GPS solution with single and with double core. The computation time can be reduced considerably, especially when the original running time is high. Here, in case of direct path tracing we used 1000 subintervall instead of 100 in order to stress the difference in the running time, between one and double core computations. AbsoluteTimingsol LinearHomotopyFR F, G, X, X0, Γ, 1000; , Null Now, we employ a pure function for the elements of the list of the initial values (start values), AbsoluteTimingsol ParallelTryLinearHomotopyFR F, G, X,, Γ, 1000 &, X0; , Null Now employing the path tracing algorithms by integration with high precision,

36 36 Linear_Homotopy_05.nb AbsoluteTimingsol LinearHomotopyNDS01 X, F, G, X0, Γ, 1; , Null AbsoluteTimingsol ParallelTryLinearHomotopyNDS01 X, F, G,, Γ, 1 &, X0; , Null and using numerical inverse, AbsoluteTimingsol LinearHomotopyNDS02 X, F, G, X0, Γ, 1; , Null AbsoluteTimingsol ParallelTryLinearHomotopyNDS02 X, F, G,, Γ, 1 &, X0; , Null If the computation time with one core is short then the improvement using two cores is small because of the communication time consumption between the cores. However in case of longer time, the improvement can be considerable.

11 Ranging by Global Navigation Satellite Systems (GNSS)

11 Ranging by Global Navigation Satellite Systems (GNSS) Algebraic Geodesy and Geoinformatics - 2009 - PART II APPLICATIONS 11 Ranging by Global Navigation Satellite Systems (GNSS) Overview First the observation equations are developed for implicit and explicit

More information

13 Positioning by Photogrammetric Resection

13 Positioning by Photogrammetric Resection Algebraic Geodesy and Geoinformatics - 2009 - PART II APPLICATIONS 13 Positioning by Photogrammetric Resection Overview First the 3- point photogrammetric resection model is solved following the Grafarend-

More information

16 Conformal Mapping. Overview

16 Conformal Mapping. Overview Algebraic Geodesy and Geoinformatics - 2009 - PART II APPLICATIONS 16 Conformal Mapping Overview First, the 3- point problem is discussed. A preliminary elimination of the translation vector reduces the

More information

17 Affine Mapping. Overview

17 Affine Mapping. Overview Algebraic Geodesy and Geoinformatics - 2009 - PART II APPLICATIONS 17 Affine Mapping Overview The number of equations of the 3 - point problem can be reduced to 6 equations by eliminating the 3 translation

More information

2 Basics of Polynomials

2 Basics of Polynomials Algebraic Geodesy and Geoinformatics - 2009 PART I - METHODS 2 Basics of Polynomials 2-1 Representations of Polynomials 2-1- 1 List of monomials In Geodesy and Geoinformatics, most observations are related

More information

Now let us consider the solutions of the combinatorial pairs. the weights are the square of the corresponding determinants,

Now let us consider the solutions of the combinatorial pairs. the weights are the square of the corresponding determinants, Algebraic Geodesy and Geoinformatics - 2009 - PART I METHODS 7 Gauss- Jacobi Combinatorial Algorithm 7-1 Linear model Another technique to solve overdetermined system is proposed by Gauss and Jacobi. The

More information

Class 4: More Pendulum results

Class 4: More Pendulum results Class 4: More Pendulum results The pendulum is a mechanical problem with a long and interesting history, from Galileo s first ansatz that the period was independent of the amplitude based on watching priests

More information

The original expression can be written as, 4-2 Greatest common divisor of univariate polynomials. Let us consider the following two polynomials.

The original expression can be written as, 4-2 Greatest common divisor of univariate polynomials. Let us consider the following two polynomials. Algebraic Geodesy and Geoinformatics 2009 PART I - METHODS 4 Groebner Basis 4- Greatest common divisor of integers Let us consider the following integer numbers 2, 20 and 8. Factorize them, Clear@"Global

More information

COMPUTATIONAL EXPLORATIONS IN MAGNETRON SPUTTERING

COMPUTATIONAL EXPLORATIONS IN MAGNETRON SPUTTERING COMPUTATIONAL EXPLORATIONS IN MAGNETRON SPUTTERING E. J. McInerney Basic Numerics Press 4. ELECTRON MOTION With the groundwork laid in the last two chapters, we can now simulate the motion of electrons

More information

Quantum Mechanics using Matrix Methods

Quantum Mechanics using Matrix Methods Quantum Mechanics using Matrix Methods Introduction and the simple harmonic oscillator In this notebook we study some problems in quantum mechanics using matrix methods. We know that we can solve quantum

More information

The Ramsey model - linearization, backward integration, relaxation (complete)

The Ramsey model - linearization, backward integration, relaxation (complete) The Ramsey model - linearization, backward integration, relaxation (complete) (Quantitative Dynamic Macroeconomics, Lecture Notes, Thomas Steger, University of Leipzig) Ramsey Model: linearized version

More information

3.2. The Ramsey model - linearization, backward integration, relaxation (complete)

3.2. The Ramsey model - linearization, backward integration, relaxation (complete) 3.. The Ramsey model - linearization, backward integration, relaxation (complete) (Quantitative Dynamic Macroeconomics, Lecture Notes, Thomas Steger, University of Leipzig, winter term /3) Ramsey Model:

More information

259 Lecture 27: Numerical Computation

259 Lecture 27: Numerical Computation 259 Lecture 27: Numerical Computation Note: To type a command in a Mathematica notebook, use the mouse to move the cursor until it is horizontal, click the left mouse button, and type the command. To enter

More information

NONLINEAR EQUATIONS AND TAYLOR S THEOREM

NONLINEAR EQUATIONS AND TAYLOR S THEOREM APPENDIX C NONLINEAR EQUATIONS AND TAYLOR S THEOREM C.1 INTRODUCTION In adjustment computations it is frequently necessary to deal with nonlinear equations. For example, some observation equations relate

More information

Numerical Methods in Physics and Astrophysics

Numerical Methods in Physics and Astrophysics Kostas Kokkotas 2 October 20, 2014 2 http://www.tat.physik.uni-tuebingen.de/ kokkotas Kostas Kokkotas 3 TOPICS 1. Solving nonlinear equations 2. Solving linear systems of equations 3. Interpolation, approximation

More information

AIMS Exercise Set # 1

AIMS Exercise Set # 1 AIMS Exercise Set #. Determine the form of the single precision floating point arithmetic used in the computers at AIMS. What is the largest number that can be accurately represented? What is the smallest

More information

Numerical Methods in Physics and Astrophysics

Numerical Methods in Physics and Astrophysics Kostas Kokkotas 2 October 17, 2017 2 http://www.tat.physik.uni-tuebingen.de/ kokkotas Kostas Kokkotas 3 TOPICS 1. Solving nonlinear equations 2. Solving linear systems of equations 3. Interpolation, approximation

More information

17 Solution of Nonlinear Systems

17 Solution of Nonlinear Systems 17 Solution of Nonlinear Systems We now discuss the solution of systems of nonlinear equations. An important ingredient will be the multivariate Taylor theorem. Theorem 17.1 Let D = {x 1, x 2,..., x m

More information

CHAPTER 4. Interpolation

CHAPTER 4. Interpolation CHAPTER 4 Interpolation 4.1. Introduction We will cover sections 4.1 through 4.12 in the book. Read section 4.1 in the book on your own. The basic problem of one-dimensional interpolation is this: Given

More information

1 Solutions to selected problems

1 Solutions to selected problems Solutions to selected problems Section., #a,c,d. a. p x = n for i = n : 0 p x = xp x + i end b. z = x, y = x for i = : n y = y + x i z = zy end c. y = (t x ), p t = a for i = : n y = y(t x i ) p t = p

More information

1. Method 1: bisection. The bisection methods starts from two points a 0 and b 0 such that

1. Method 1: bisection. The bisection methods starts from two points a 0 and b 0 such that Chapter 4 Nonlinear equations 4.1 Root finding Consider the problem of solving any nonlinear relation g(x) = h(x) in the real variable x. We rephrase this problem as one of finding the zero (root) of a

More information

CS 323: Numerical Analysis and Computing

CS 323: Numerical Analysis and Computing CS 323: Numerical Analysis and Computing MIDTERM #2 Instructions: This is an open notes exam, i.e., you are allowed to consult any textbook, your class notes, homeworks, or any of the handouts from us.

More information

Exact and Approximate Numbers:

Exact and Approximate Numbers: Eact and Approimate Numbers: The numbers that arise in technical applications are better described as eact numbers because there is not the sort of uncertainty in their values that was described above.

More information

Numerical Analysis Solution of Algebraic Equation (non-linear equation) 1- Trial and Error. 2- Fixed point

Numerical Analysis Solution of Algebraic Equation (non-linear equation) 1- Trial and Error. 2- Fixed point Numerical Analysis Solution of Algebraic Equation (non-linear equation) 1- Trial and Error In this method we assume initial value of x, and substitute in the equation. Then modify x and continue till we

More information

On Q-derived Polynomials

On Q-derived Polynomials On Q-derived Polynomials R.J. Stroeker Econometric Institute, EUR Report EI 2002-0 Abstract A Q-derived polynomial is a univariate polynomial, defined over the rationals, with the property that its zeros,

More information

8. Limit Laws. lim(f g)(x) = lim f(x) lim g(x), (x) = lim x a f(x) g lim x a g(x)

8. Limit Laws. lim(f g)(x) = lim f(x) lim g(x), (x) = lim x a f(x) g lim x a g(x) 8. Limit Laws 8.1. Basic Limit Laws. If f and g are two functions and we know the it of each of them at a given point a, then we can easily compute the it at a of their sum, difference, product, constant

More information

Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 9

Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 9 Lecture Notes to Accompany Scientific Computing An Introductory Survey Second Edition by Michael T. Heath Chapter 9 Initial Value Problems for Ordinary Differential Equations Copyright c 2001. Reproduction

More information

Root Finding (and Optimisation)

Root Finding (and Optimisation) Root Finding (and Optimisation) M.Sc. in Mathematical Modelling & Scientific Computing, Practical Numerical Analysis Michaelmas Term 2018, Lecture 4 Root Finding The idea of root finding is simple we want

More information

Scientific Computing: An Introductory Survey

Scientific Computing: An Introductory Survey Scientific Computing: An Introductory Survey Chapter 9 Initial Value Problems for Ordinary Differential Equations Prof. Michael T. Heath Department of Computer Science University of Illinois at Urbana-Champaign

More information

PART I Lecture Notes on Numerical Solution of Root Finding Problems MATH 435

PART I Lecture Notes on Numerical Solution of Root Finding Problems MATH 435 PART I Lecture Notes on Numerical Solution of Root Finding Problems MATH 435 Professor Biswa Nath Datta Department of Mathematical Sciences Northern Illinois University DeKalb, IL. 60115 USA E mail: dattab@math.niu.edu

More information

Solution of Algebric & Transcendental Equations

Solution of Algebric & Transcendental Equations Page15 Solution of Algebric & Transcendental Equations Contents: o Introduction o Evaluation of Polynomials by Horner s Method o Methods of solving non linear equations o Bracketing Methods o Bisection

More information

Computational Study of 3D Affine Coordinate Transformation

Computational Study of 3D Affine Coordinate Transformation Computational Study of D Affine Coordinate Transformation Part I. -point Problem Bela Palancz 1, Robert H. Lewis 2, Piroska Zaletnyik and Joseph Awange 4 1 Department of Photogrammetryand Geoinformatics

More information

Homotopies and polynomial system solving I: Basic Principles

Homotopies and polynomial system solving I: Basic Principles ACM SIGSAM Bulletin, Vol 35, No, March 00 Homotopies and polynomial system solving I: Basic Principles Ilias S Kotsireas University of Western Ontario Computer Science Department Ontario Research Centre

More information

Numerical Analysis: Solutions of System of. Linear Equation. Natasha S. Sharma, PhD

Numerical Analysis: Solutions of System of. Linear Equation. Natasha S. Sharma, PhD Mathematical Question we are interested in answering numerically How to solve the following linear system for x Ax = b? where A is an n n invertible matrix and b is vector of length n. Notation: x denote

More information

Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 5. Nonlinear Equations

Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 5. Nonlinear Equations Lecture Notes to Accompany Scientific Computing An Introductory Survey Second Edition by Michael T Heath Chapter 5 Nonlinear Equations Copyright c 2001 Reproduction permitted only for noncommercial, educational

More information

Solving Algebraic Systems of Equations

Solving Algebraic Systems of Equations Solving Algebraic Systems of Equations Daniel Lichtblau Wolfram Research, Inc. July 2000 Presented at: SCI2000, Orlando Overview Systems of polynomial equations with finitely many solutions arise in many

More information

CS 450 Numerical Analysis. Chapter 9: Initial Value Problems for Ordinary Differential Equations

CS 450 Numerical Analysis. Chapter 9: Initial Value Problems for Ordinary Differential Equations Lecture slides based on the textbook Scientific Computing: An Introductory Survey by Michael T. Heath, copyright c 2018 by the Society for Industrial and Applied Mathematics. http://www.siam.org/books/cl80

More information

Exam in TMA4215 December 7th 2012

Exam in TMA4215 December 7th 2012 Norwegian University of Science and Technology Department of Mathematical Sciences Page of 9 Contact during the exam: Elena Celledoni, tlf. 7359354, cell phone 48238584 Exam in TMA425 December 7th 22 Allowed

More information

Concepts of Approximate Error: Approximate Error, Absolute Approximate Error, Relative Approximate Error, and Absolute Relative Approximate Error

Concepts of Approximate Error: Approximate Error, Absolute Approximate Error, Relative Approximate Error, and Absolute Relative Approximate Error Concepts of Approximate Error: Approximate Error, Absolute Approximate Error, Relative Approximate Error, and Absolute Relative Approximate Error Sean Rodby, Luke Snyder, Autar Kaw University of South

More information

Phase Portraits of Nonlinear Differential Equations

Phase Portraits of Nonlinear Differential Equations ODE4-net.nb Phase Portraits of Nonlinear Differential Equations Nonlinear Differential Equations: x' = f (x, y) (1) Consider the system where f and g are functions of two y' = g(x, y) () variables x and

More information

MSE 310/ECE 340. Instructor: Bill Knowlton. Initialize data Clear somedata, someplot. Place data in list somedata

MSE 310/ECE 340. Instructor: Bill Knowlton. Initialize data Clear somedata, someplot. Place data in list somedata MSE 3/ECE 340 Instructor: Bill Knowlton Examples of Plotting Functions ü Example 1: Using the command ListPlot[ ] to plot data in a scatter plot In[1]:= Initialize data Clear somedata someplot Place data

More information

EAD 115. Numerical Solution of Engineering and Scientific Problems. David M. Rocke Department of Applied Science

EAD 115. Numerical Solution of Engineering and Scientific Problems. David M. Rocke Department of Applied Science EAD 115 Numerical Solution of Engineering and Scientific Problems David M. Rocke Department of Applied Science Taylor s Theorem Can often approximate a function by a polynomial The error in the approximation

More information

Chapter 1 Mathematical Preliminaries and Error Analysis

Chapter 1 Mathematical Preliminaries and Error Analysis Numerical Analysis (Math 3313) 2019-2018 Chapter 1 Mathematical Preliminaries and Error Analysis Intended learning outcomes: Upon successful completion of this chapter, a student will be able to (1) list

More information

Chapter 1. Root Finding Methods. 1.1 Bisection method

Chapter 1. Root Finding Methods. 1.1 Bisection method Chapter 1 Root Finding Methods We begin by considering numerical solutions to the problem f(x) = 0 (1.1) Although the problem above is simple to state it is not always easy to solve analytically. This

More information

COURSE Iterative methods for solving linear systems

COURSE Iterative methods for solving linear systems COURSE 0 4.3. Iterative methods for solving linear systems Because of round-off errors, direct methods become less efficient than iterative methods for large systems (>00 000 variables). An iterative scheme

More information

SYSTEMS OF NONLINEAR EQUATIONS

SYSTEMS OF NONLINEAR EQUATIONS SYSTEMS OF NONLINEAR EQUATIONS Widely used in the mathematical modeling of real world phenomena. We introduce some numerical methods for their solution. For better intuition, we examine systems of two

More information

INTRODUCTION TO NUMERICAL ANALYSIS

INTRODUCTION TO NUMERICAL ANALYSIS INTRODUCTION TO NUMERICAL ANALYSIS Cho, Hyoung Kyu Department of Nuclear Engineering Seoul National University 3. SOLVING NONLINEAR EQUATIONS 3.1 Background 3.2 Estimation of errors in numerical solutions

More information

Chapter 3 Numerical Methods

Chapter 3 Numerical Methods Chapter 3 Numerical Methods Part 3 3.4 Differential Algebraic Systems 3.5 Integration of Differential Equations 1 Outline 3.4 Differential Algebraic Systems 3.4.1 Constrained Dynamics 3.4.2 First and Second

More information

2 EBERHARD BECKER ET AL. has a real root. Thus our problem can be reduced to the problem of deciding whether or not a polynomial in one more variable

2 EBERHARD BECKER ET AL. has a real root. Thus our problem can be reduced to the problem of deciding whether or not a polynomial in one more variable Deciding positivity of real polynomials Eberhard Becker, Victoria Powers, and Thorsten Wormann Abstract. We describe an algorithm for deciding whether or not a real polynomial is positive semidenite. The

More information

THEODORE VORONOV DIFFERENTIABLE MANIFOLDS. Fall Last updated: November 26, (Under construction.)

THEODORE VORONOV DIFFERENTIABLE MANIFOLDS. Fall Last updated: November 26, (Under construction.) 4 Vector fields Last updated: November 26, 2009. (Under construction.) 4.1 Tangent vectors as derivations After we have introduced topological notions, we can come back to analysis on manifolds. Let M

More information

1 Solutions to selected problems

1 Solutions to selected problems Solutions to selected problems Section., #a,c,d. a. p x = n for i = n : 0 p x = xp x + i end b. z = x, y = x for i = : n y = y + x i z = zy end c. y = (t x ), p t = a for i = : n y = y(t x i ) p t = p

More information

Review for Exam 2 Ben Wang and Mark Styczynski

Review for Exam 2 Ben Wang and Mark Styczynski Review for Exam Ben Wang and Mark Styczynski This is a rough approximation of what we went over in the review session. This is actually more detailed in portions than what we went over. Also, please note

More information

NUMERICAL AND STATISTICAL COMPUTING (MCA-202-CR)

NUMERICAL AND STATISTICAL COMPUTING (MCA-202-CR) NUMERICAL AND STATISTICAL COMPUTING (MCA-202-CR) Autumn Session UNIT 1 Numerical analysis is the study of algorithms that uses, creates and implements algorithms for obtaining numerical solutions to problems

More information

Outline. Scientific Computing: An Introductory Survey. Nonlinear Equations. Nonlinear Equations. Examples: Nonlinear Equations

Outline. Scientific Computing: An Introductory Survey. Nonlinear Equations. Nonlinear Equations. Examples: Nonlinear Equations Methods for Systems of Methods for Systems of Outline Scientific Computing: An Introductory Survey Chapter 5 1 Prof. Michael T. Heath Department of Computer Science University of Illinois at Urbana-Champaign

More information

Sample Mathematica code for the paper "Modeling a Diving Board"

Sample Mathematica code for the paper Modeling a Diving Board Sample Mathematica code for the paper "Modeling a Diving Board" Michael A. Karls and Brenda M. Skoczelas, Department of Mathematical Sciences, Ball State University, Muncie, IN 47306 Beam Data Original

More information

On the positivity of linear weights in WENO approximations. Abstract

On the positivity of linear weights in WENO approximations. Abstract On the positivity of linear weights in WENO approximations Yuanyuan Liu, Chi-Wang Shu and Mengping Zhang 3 Abstract High order accurate weighted essentially non-oscillatory (WENO) schemes have been used

More information

What is r 2 0? 4 Feb 2010

What is r 2 0? 4 Feb 2010 What is r 2 0? 4 Feb 2010 The FRW metric is ds 2 =-dt 2 + ahtl 2 A dr 2 ëi1 - Hrêr 0 L 2 M + r 2 Id q 2 + sin 2 q d f 2 ME Galaxies are at fixed Hr, q, fl. Let time be fixed. Consider the spatial part

More information

Motivation: We have already seen an example of a system of nonlinear equations when we studied Gaussian integration (p.8 of integration notes)

Motivation: We have already seen an example of a system of nonlinear equations when we studied Gaussian integration (p.8 of integration notes) AMSC/CMSC 460 Computational Methods, Fall 2007 UNIT 5: Nonlinear Equations Dianne P. O Leary c 2001, 2002, 2007 Solving Nonlinear Equations and Optimization Problems Read Chapter 8. Skip Section 8.1.1.

More information

Computing the common zeros of two bivariate functions via Bézout resultants Colorado State University, 26th September 2013

Computing the common zeros of two bivariate functions via Bézout resultants Colorado State University, 26th September 2013 Work supported by supported by EPSRC grant EP/P505666/1. Computing the common zeros of two bivariate functions via Bézout resultants Colorado State University, 26th September 2013 Alex Townsend PhD student

More information

x x2 2 + x3 3 x4 3. Use the divided-difference method to find a polynomial of least degree that fits the values shown: (b)

x x2 2 + x3 3 x4 3. Use the divided-difference method to find a polynomial of least degree that fits the values shown: (b) Numerical Methods - PROBLEMS. The Taylor series, about the origin, for log( + x) is x x2 2 + x3 3 x4 4 + Find an upper bound on the magnitude of the truncation error on the interval x.5 when log( + x)

More information

Introduction to Numerical Analysis

Introduction to Numerical Analysis Introduction to Numerical Analysis S. Baskar and S. Sivaji Ganesh Department of Mathematics Indian Institute of Technology Bombay Powai, Mumbai 400 076. Introduction to Numerical Analysis Lecture Notes

More information

Solving Algebraic Computational Problems in Geodesy and Geoinformatics

Solving Algebraic Computational Problems in Geodesy and Geoinformatics Solving Algebraic Computational Problems in Geodesy and Geoinformatics The Answer to Modern Challenges Bearbeitet von Joseph L Awange, Erik W Grafarend 1. Auflage 2004. Buch. XVII, 333 S. Hardcover ISBN

More information

10.34 Numerical Methods Applied to Chemical Engineering Fall Quiz #1 Review

10.34 Numerical Methods Applied to Chemical Engineering Fall Quiz #1 Review 10.34 Numerical Methods Applied to Chemical Engineering Fall 2015 Quiz #1 Review Study guide based on notes developed by J.A. Paulson, modified by K. Severson Linear Algebra We ve covered three major topics

More information

CS520: numerical ODEs (Ch.2)

CS520: numerical ODEs (Ch.2) .. CS520: numerical ODEs (Ch.2) Uri Ascher Department of Computer Science University of British Columbia ascher@cs.ubc.ca people.cs.ubc.ca/ ascher/520.html Uri Ascher (UBC) CPSC 520: ODEs (Ch. 2) Fall

More information

Physics 229& 100 Homework #1 Name: Nasser Abbasi

Physics 229& 100 Homework #1 Name: Nasser Abbasi Physics 229& 100 Homework #1 Name: Nasser Abbasi (converted to 6.0) 1. Practice in transcribing expressions into Mathematica syntax a) Find the determinant of this matrix: In[94]:= a = {{1, 2, 3, 4}, {1,

More information

Optimization. Escuela de Ingeniería Informática de Oviedo. (Dpto. de Matemáticas-UniOvi) Numerical Computation Optimization 1 / 30

Optimization. Escuela de Ingeniería Informática de Oviedo. (Dpto. de Matemáticas-UniOvi) Numerical Computation Optimization 1 / 30 Optimization Escuela de Ingeniería Informática de Oviedo (Dpto. de Matemáticas-UniOvi) Numerical Computation Optimization 1 / 30 Unconstrained optimization Outline 1 Unconstrained optimization 2 Constrained

More information

x n+1 = x n f(x n) f (x n ), n 0.

x n+1 = x n f(x n) f (x n ), n 0. 1. Nonlinear Equations Given scalar equation, f(x) = 0, (a) Describe I) Newtons Method, II) Secant Method for approximating the solution. (b) State sufficient conditions for Newton and Secant to converge.

More information

Simplifying Rational Expressions and Functions

Simplifying Rational Expressions and Functions Department of Mathematics Grossmont College October 15, 2012 Recall: The Number Types Definition The set of whole numbers, ={0, 1, 2, 3, 4,...} is the set of natural numbers unioned with zero, written

More information

Part 4: Active-set methods for linearly constrained optimization. Nick Gould (RAL)

Part 4: Active-set methods for linearly constrained optimization. Nick Gould (RAL) Part 4: Active-set methods for linearly constrained optimization Nick Gould RAL fx subject to Ax b Part C course on continuoue optimization LINEARLY CONSTRAINED MINIMIZATION fx subject to Ax { } b where

More information

QR Decomposition. When solving an overdetermined system by projection (or a least squares solution) often the following method is used:

QR Decomposition. When solving an overdetermined system by projection (or a least squares solution) often the following method is used: (In practice not Gram-Schmidt, but another process Householder Transformations are used.) QR Decomposition When solving an overdetermined system by projection (or a least squares solution) often the following

More information

CS 450 Numerical Analysis. Chapter 5: Nonlinear Equations

CS 450 Numerical Analysis. Chapter 5: Nonlinear Equations Lecture slides based on the textbook Scientific Computing: An Introductory Survey by Michael T. Heath, copyright c 2018 by the Society for Industrial and Applied Mathematics. http://www.siam.org/books/cl80

More information

, b = 0. (2) 1 2 The eigenvectors of A corresponding to the eigenvalues λ 1 = 1, λ 2 = 3 are

, b = 0. (2) 1 2 The eigenvectors of A corresponding to the eigenvalues λ 1 = 1, λ 2 = 3 are Quadratic forms We consider the quadratic function f : R 2 R defined by f(x) = 2 xt Ax b T x with x = (x, x 2 ) T, () where A R 2 2 is symmetric and b R 2. We will see that, depending on the eigenvalues

More information

Preliminary Examination in Numerical Analysis

Preliminary Examination in Numerical Analysis Department of Applied Mathematics Preliminary Examination in Numerical Analysis August 7, 06, 0 am pm. Submit solutions to four (and no more) of the following six problems. Show all your work, and justify

More information

We consider the problem of finding a polynomial that interpolates a given set of values:

We consider the problem of finding a polynomial that interpolates a given set of values: Chapter 5 Interpolation 5. Polynomial Interpolation We consider the problem of finding a polynomial that interpolates a given set of values: x x 0 x... x n y y 0 y... y n where the x i are all distinct.

More information

Numerical Analysis: Solving Nonlinear Equations

Numerical Analysis: Solving Nonlinear Equations Numerical Analysis: Solving Nonlinear Equations Mirko Navara http://cmp.felk.cvut.cz/ navara/ Center for Machine Perception, Department of Cybernetics, FEE, CTU Karlovo náměstí, building G, office 104a

More information

COMPUTER ARITHMETIC. 13/05/2010 cryptography - math background pp. 1 / 162

COMPUTER ARITHMETIC. 13/05/2010 cryptography - math background pp. 1 / 162 COMPUTER ARITHMETIC 13/05/2010 cryptography - math background pp. 1 / 162 RECALL OF COMPUTER ARITHMETIC computers implement some types of arithmetic for instance, addition, subtratction, multiplication

More information

Part 2: Linesearch methods for unconstrained optimization. Nick Gould (RAL)

Part 2: Linesearch methods for unconstrained optimization. Nick Gould (RAL) Part 2: Linesearch methods for unconstrained optimization Nick Gould (RAL) minimize x IR n f(x) MSc course on nonlinear optimization UNCONSTRAINED MINIMIZATION minimize x IR n f(x) where the objective

More information

Chapter 8. Exploring Polynomial Functions. Jennifer Huss

Chapter 8. Exploring Polynomial Functions. Jennifer Huss Chapter 8 Exploring Polynomial Functions Jennifer Huss 8-1 Polynomial Functions The degree of a polynomial is determined by the greatest exponent when there is only one variable (x) in the polynomial Polynomial

More information

Scientific Computing: An Introductory Survey

Scientific Computing: An Introductory Survey Scientific Computing: An Introductory Survey Chapter 5 Nonlinear Equations Prof. Michael T. Heath Department of Computer Science University of Illinois at Urbana-Champaign Copyright c 2002. Reproduction

More information

Parallel Methods for ODEs

Parallel Methods for ODEs Parallel Methods for ODEs Levels of parallelism There are a number of levels of parallelism that are possible within a program to numerically solve ODEs. An obvious place to start is with manual code restructuring

More information

Module 6 : Solving Ordinary Differential Equations - Initial Value Problems (ODE-IVPs) Section 1 : Introduction

Module 6 : Solving Ordinary Differential Equations - Initial Value Problems (ODE-IVPs) Section 1 : Introduction Module 6 : Solving Ordinary Differential Equations - Initial Value Problems (ODE-IVPs) Section 1 : Introduction 1 Introduction In this module, we develop solution techniques for numerically solving ordinary

More information

MATH 1902: Mathematics for the Physical Sciences I

MATH 1902: Mathematics for the Physical Sciences I MATH 1902: Mathematics for the Physical Sciences I Dr Dana Mackey School of Mathematical Sciences Room A305 A Email: Dana.Mackey@dit.ie Dana Mackey (DIT) MATH 1902 1 / 46 Module content/assessment Functions

More information

you expect to encounter difficulties when trying to solve A x = b? 4. A composite quadrature rule has error associated with it in the following form

you expect to encounter difficulties when trying to solve A x = b? 4. A composite quadrature rule has error associated with it in the following form Qualifying exam for numerical analysis (Spring 2017) Show your work for full credit. If you are unable to solve some part, attempt the subsequent parts. 1. Consider the following finite difference: f (0)

More information

Chapter 11 Parametric Equations, Polar Curves, and Conic Sections

Chapter 11 Parametric Equations, Polar Curves, and Conic Sections Chapter 11 Parametric Equations, Polar Curves, and Conic Sections ü 11.1 Parametric Equations Students should read Sections 11.1-11. of Rogawski's Calculus [1] for a detailed discussion of the material

More information

CS 323: Numerical Analysis and Computing

CS 323: Numerical Analysis and Computing CS 323: Numerical Analysis and Computing MIDTERM #2 Instructions: This is an open notes exam, i.e., you are allowed to consult any textbook, your class notes, homeworks, or any of the handouts from us.

More information

Definition 5.1. A vector field v on a manifold M is map M T M such that for all x M, v(x) T x M.

Definition 5.1. A vector field v on a manifold M is map M T M such that for all x M, v(x) T x M. 5 Vector fields Last updated: March 12, 2012. 5.1 Definition and general properties We first need to define what a vector field is. Definition 5.1. A vector field v on a manifold M is map M T M such that

More information

An Overly Simplified and Brief Review of Differential Equation Solution Methods. 1. Some Common Exact Solution Methods for Differential Equations

An Overly Simplified and Brief Review of Differential Equation Solution Methods. 1. Some Common Exact Solution Methods for Differential Equations An Overly Simplified and Brief Review of Differential Equation Solution Methods We will be dealing with initial or boundary value problems. A typical initial value problem has the form y y 0 y(0) 1 A typical

More information

MATH 315 Linear Algebra Homework #1 Assigned: August 20, 2018

MATH 315 Linear Algebra Homework #1 Assigned: August 20, 2018 Homework #1 Assigned: August 20, 2018 Review the following subjects involving systems of equations and matrices from Calculus II. Linear systems of equations Converting systems to matrix form Pivot entry

More information

Computational Methods

Computational Methods Numerical Computational Methods Revised Edition P. B. Patil U. P. Verma Alpha Science International Ltd. Oxford, U.K. CONTENTS Preface List ofprograms v vii 1. NUMER1CAL METHOD, ERROR AND ALGORITHM 1 1.1

More information

Bindel, Fall 2011 Intro to Scientific Computing (CS 3220) Week 12: Monday, Apr 18. HW 7 is posted, and will be due in class on 4/25.

Bindel, Fall 2011 Intro to Scientific Computing (CS 3220) Week 12: Monday, Apr 18. HW 7 is posted, and will be due in class on 4/25. Logistics Week 12: Monday, Apr 18 HW 6 is due at 11:59 tonight. HW 7 is posted, and will be due in class on 4/25. The prelim is graded. An analysis and rubric are on CMS. Problem du jour For implicit methods

More information

Algorithms for constrained local optimization

Algorithms for constrained local optimization Algorithms for constrained local optimization Fabio Schoen 2008 http://gol.dsi.unifi.it/users/schoen Algorithms for constrained local optimization p. Feasible direction methods Algorithms for constrained

More information

Mathematical Olympiad Training Polynomials

Mathematical Olympiad Training Polynomials Mathematical Olympiad Training Polynomials Definition A polynomial over a ring R(Z, Q, R, C) in x is an expression of the form p(x) = a n x n + a n 1 x n 1 + + a 1 x + a 0, a i R, for 0 i n. If a n 0,

More information

Numerical Analysis Comprehensive Exam Questions

Numerical Analysis Comprehensive Exam Questions Numerical Analysis Comprehensive Exam Questions 1. Let f(x) = (x α) m g(x) where m is an integer and g(x) C (R), g(α). Write down the Newton s method for finding the root α of f(x), and study the order

More information

LECTURE NOTES ELEMENTARY NUMERICAL METHODS. Eusebius Doedel

LECTURE NOTES ELEMENTARY NUMERICAL METHODS. Eusebius Doedel LECTURE NOTES on ELEMENTARY NUMERICAL METHODS Eusebius Doedel TABLE OF CONTENTS Vector and Matrix Norms 1 Banach Lemma 20 The Numerical Solution of Linear Systems 25 Gauss Elimination 25 Operation Count

More information

Students should read Sections of Rogawski's Calculus [1] for a detailed discussion of the material presented in this section.

Students should read Sections of Rogawski's Calculus [1] for a detailed discussion of the material presented in this section. Chapter 3 Differentiation ü 3.1 The Derivative Students should read Sections 3.1-3.5 of Rogawski's Calculus [1] for a detailed discussion of the material presented in this section. ü 3.1.1 Slope of Tangent

More information

Chapter 2. Solving Systems of Equations. 2.1 Gaussian elimination

Chapter 2. Solving Systems of Equations. 2.1 Gaussian elimination Chapter 2 Solving Systems of Equations A large number of real life applications which are resolved through mathematical modeling will end up taking the form of the following very simple looking matrix

More information

ter. on Can we get a still better result? Yes, by making the rectangles still smaller. As we make the rectangles smaller and smaller, the

ter. on Can we get a still better result? Yes, by making the rectangles still smaller. As we make the rectangles smaller and smaller, the Area and Tangent Problem Calculus is motivated by two main problems. The first is the area problem. It is a well known result that the area of a rectangle with length l and width w is given by A = wl.

More information

1. Nonlinear Equations. This lecture note excerpted parts from Michael Heath and Max Gunzburger. f(x) = 0

1. Nonlinear Equations. This lecture note excerpted parts from Michael Heath and Max Gunzburger. f(x) = 0 Numerical Analysis 1 1. Nonlinear Equations This lecture note excerpted parts from Michael Heath and Max Gunzburger. Given function f, we seek value x for which where f : D R n R n is nonlinear. f(x) =

More information

POLYNOMIALS. x + 1 x x 4 + x 3. x x 3 x 2. x x 2 + x. x + 1 x 1

POLYNOMIALS. x + 1 x x 4 + x 3. x x 3 x 2. x x 2 + x. x + 1 x 1 POLYNOMIALS A polynomial in x is an expression of the form p(x) = a 0 + a 1 x + a x +. + a n x n Where a 0, a 1, a. a n are real numbers and n is a non-negative integer and a n 0. A polynomial having only

More information

Numerical Methods I Solving Nonlinear Equations

Numerical Methods I Solving Nonlinear Equations Numerical Methods I Solving Nonlinear Equations Aleksandar Donev Courant Institute, NYU 1 donev@courant.nyu.edu 1 MATH-GA 2011.003 / CSCI-GA 2945.003, Fall 2014 October 16th, 2014 A. Donev (Courant Institute)

More information