Sketching f' given f