Local derivative pattern implementation