How To Write Compound Function In Latex