Help with Scientific Computing I (Python programming)

I’m stuck on a Python question and need an explanation.

For each of the following polynomials, apply either the Muller’s method or the Bairstow’s method to find all real or complex roots. Analyze and contrast performance between the two methods. Plot the functions to choose root guesses appropriately. You can apply any simplifications you deem appropriate prior to applying the numerical methods.

1. f(x) = x3 – x2 + 2x – 2

2. f(x) = 2×4 + 6×2 + 8

3. f(x) = -2 + 6.2x – 4×2 + 0.7×3

4. f(x) = x4 – 2×3 + 6×2 – 2x + 5

Here is the link to the text book: http://mechfamilyhu.net/download/uploads/mech144232415981.pdf

Write python programing for this. Send me the py file and analysis in word docment.