In a question I was given, in order to solve it, I needed to simplify to . This is "obvious" related to the identity .?

So my question is, what's the rule (if any) to simplify these forms of expressions?

Lets use the example of or , what do those simplify to?