Path: add derivative

closes #891