If you are emphasizing on the fact that these are its only real roots, then maybe the function has any other 2 imaginary roots, so there wouldn't be any specific equation that you're looking for.
However if you mean that these real roots are the only roots of this function, meaning that they are double roots, we can argue that: