# What is the correct way to solve the equation: $x^4-x^3+x^2-x+1=0$

Given the equation: $$x^4-x^3+x^2-x+1=0$$ we need to find both its real and complex roots. What is the easiest and correct method for solving the equation?

Here is my approach, but it gives wrong result on the end. Since the equation is symmetric we can group the terms.

$$x^4+1 - (x^3+x)+x^2=0 \text{ Divide everything by } x^2 \\(x^2+\frac{1}{x^2})-(x+\frac{1}{x})+1=0\\ \text{ Let } t = x + \frac{1}{x}, \text{ we can see that } x^2 + \frac{1}{x^2} = t^2 - 2 \\ \text{back in our equation: } t^2 - 2 - t + 1 = 0 \\ t_{12} = \frac{1 \pm \sqrt{5}}{2} \\ \text{however if we go back in } x+\frac{1}{x} = t_{12} \text{ we don't get the correct result }$$.

As given in the textbook the solutions are: $$x_{12}=\frac{1+\sqrt5 \pm \sqrt{10-2\sqrt5}}{4}, x_{34}=\frac{1-\sqrt5 \pm \sqrt{10-2\sqrt5}}{4}$$ Can someone say if those are the correct solutions or not?

• math.stackexchange.com/questions/403025/… – lab bhattacharjee Apr 24 at 5:58
• Multiply the equation by $(x+1)$ and find $x^5=-1$. – Empy2 Apr 24 at 6:04
• Your textbook's solutions are not the solutions to the equation you give. They are the solutions to $x^4+1=0$. The "answers in the back of the book" are not always right. – Lord Shark the Unknown Apr 24 at 6:09
• It turned out that I was looking at the solution of another task all the time, the given solutions are updated, can someone verify if they are correct or not? – someone123123 Apr 24 at 6:20
• As you've written them, all four of the new "solution" have the same imaginary part. That is not the case for the actual solutions. – Lord Shark the Unknown Apr 24 at 6:51

The easiest way to solve is to note that if $$x\neq-1$$ then $$\frac{x^5+1}{x+1}=x^4-x^3+x^2-x+1,$$ and so writing $$x=re^{\theta i}$$ quickly yields $$r=1$$ and $$\theta=\tfrac k5\pi$$ with $$k$$ odd.
Your approach is also fine; you get the same solutions by solving the two quadratics $$x+\frac1x=\frac12\pm\frac{\sqrt{5}}{2}.$$
• @someone123123 It seems you've posted the pair of solutions $x_{12}$ twice, and haven't posted $x_{34}$. And the pair you give is not a solution (but close); check your calculations again. – Inactive - Objecting Extremism Apr 24 at 6:22
{"ft_lang_label":"__label__en","ft_lang_prob":0.77582306,"math_prob":0.99990225,"size":854,"snap":"2019-51-2020-05","text_gpt3_token_len":323,"char_repetition_ratio":0.14705883,"word_repetition_ratio":0.0,"special_character_ratio":0.4262295,"punctuation_ratio":0.06153846,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":1.0000012,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-12-08T18:55:41Z\",\"WARC-Record-ID\":\"<urn:uuid:4b2d2c0c-25df-432d-ae29-c7820d4270bd>\",\"Content-Length\":\"144791\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:cc4ccc02-d6ff-42b4-bda6-e75b22b27471>\",\"WARC-Concurrent-To\":\"<urn:uuid:460ee51b-5ad2-4234-9128-76742feb7048>\",\"WARC-IP-Address\":\"151.101.129.69\",\"WARC-Target-URI\":\"https://math.stackexchange.com/questions/3200151/what-is-the-correct-way-to-solve-the-equation-x4-x3x2-x1-0\",\"WARC-Payload-Digest\":\"sha1:3V4KQ3PU3LFXRWC4AJWYUS53JXPQ6UOR\",\"WARC-Block-Digest\":\"sha1:RSJMQJQIREFKT6MLEDALQKQ33DWVRA25\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-51/CC-MAIN-2019-51_segments_1575540514475.44_warc_CC-MAIN-20191208174645-20191208202645-00041.warc.gz\"}"}