Composite and inverse functions