At the risk of sounding like a broken record, look for a set of identities written pretty much exactly in the form I have given. You won't find f() around anything, but you will find exactly the same mathematical transformation applied.
When you find that pair of identities, you can determine...