Program draws now derivatives successfully