Chapter 6: Problem 15
Consider the degree-six polynomial $$ P(x)=924 x^{6}-2772 x^{5}+3150 x^{4}-1680 x^{3}+420 x^{2}-42 x+1 $$ There is no general formula for the roots of a polynomial of degree six, but one can find them easily enough using a computer. a) Make a plot of \(P(x)\) from \(x=0\) to \(x=1\) and by inspecting it find rough values for the six roots of the polynomial-the points at which the function is zero. b) Write a Python program to solve for the positions of all six roots to at least ten decimal places of accuracy, using Newton's method. Note that the polynomial in this example is just the sixth Legendre polynomial (mapped onto the interval from zero to one), so the calculation performed here is the same as finding the integration points for 6-point Gaussian quadrature (see Section 5.6.2), and indeed Newton's method is the method of choice for calculating Gaussian quadrature points.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.