Start
Let $R$ be a relation from $A$ to $B$, and let $S$ be a relation from $B$ to $C$. The composite of $R$ and $S$ is $$S \circ R = \{(a, c):\text{ there exists $b \in B$ such that $(a, b) \in R$ and }(b, c) \in S\}.$$
pf. $(x,y) \in (S \circ R)^{-1}$ $$\text{ iff }{(a, c): ∃b \in B\text{ such .that }(a, b)\in R \text{ and }(b, c) \in S}$$ $$\text{iff }{(a,c): ∃b \in B\text{ such that }(b,a)\in R\text{ and }(a,c) \in S} $$
I am lost at this point. I am pretty sure I have to do an iff proof, and just use the definitions properly, but I seem to not clearly understand them. If I could get some assistance that would be great. And I believe my formatting is off, but I have no clue how line up the iff, so, if someone could show me that too. Thank you.
The following statements are (evidently) equivalent:
Looking at first and last we conclude that: $$(S\circ R)^{-1}=R^{-1}\circ S^{-1}$$