Using inverse and composite functions