Composite and inverse function