So if I am understanding correctly, you want to write

in terms of x where you use the equation

Well, we know that , thus

We also know the mother of all identities is which can be solved for as

Now, using the equation do you think you can finish this?