First, we prove that each identity relation \mathsf {id}_{A}\colon A\mathbin {\nrightarrow } A is functional. Fixing a,a_1,a_2:A such that a=a_1 and a=a_2, we must show that a_1=a_2; this follows from transitivity and symmetry of equality.
Next, we fix partial functions f\colon A\mathbin {\rightharpoonup } B and g \colon B\mathbin {\rightharpoonup } C to check that g\circ f \colon A\mathbin {\nrightarrow } C is functional. Fixing a:A and c_1,c_2:C such that a\mathrel {{\mathopen {}\left (g\circ f\right )\mathclose {}}}c_1 and a\mathrel {{\mathopen {}\left (g\circ f\right )\mathclose {}}}c_2, we must check that c_1=c_2. By definition of the relational composite, we have b_1,b_2:B such that a\mathrel {f}b_1\mathrel {g}c_1 and a\mathrel {f}b_2\mathrel {g}c_2. Because f\colon A\mathbin {\rightharpoonup } B is functional, we note that b_1 = b_2. Writing b=b_1=b_2, we therefore have b\mathrel {g}c_1 and b\mathrel {g}c_2. Because g\colon B\mathbin {\rightharpoonup } C is functional, we conclude that c_1=c_2.