# How to Solve a Complex Cubic Equation?

**URL:** <https://community.wolfram.com/t/how-to-solve-a-complex-cubic-equation/15291>\
**Category:** Questions\
**Tags:** equation-solving\
**Created:** [January 23, 2020, 4:53pm UTC](https://community.wolfram.com/t/how-to-solve-a-complex-cubic-equation/15291 "2020-01-23T16:53:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jholivier](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@jholivier](https://community.wolfram.com/u/jholivier)\
**Post date:** [January 23, 2020, 4:53pm UTC](https://community.wolfram.com/t/how-to-solve-a-complex-cubic-equation/15291/1 "2020-01-23T16:53:20Z")

</div>

I am aiming to solve the following cubic equation for x.

```
x^3*a^2(r-1)+x^2*a*(a-2*(r-1)) - x*(2a+1)+1 = 0

```

Essentially, I would like to express x as a function of the variable r and a. Any pointer as of how I should tackle this problem. Thanks

---

<div class="post-metadata">

**Author:** ![rohitnamjoshi](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rohitnamjoshi](https://community.wolfram.com/u/rohitnamjoshi)\
**Post date:** [January 23, 2020, 5:10pm UTC](https://community.wolfram.com/t/how-to-solve-a-complex-cubic-equation/15291/2 "2020-01-23T17:10:11Z")

</div>

Try

```
Solve[{x^3 a^2 (r - 1) + x^2 a (a - 2 (r - 1)) - x*(2 a + 1) + 1 == 0}, x]

```
