Added derivatives, commentaries with expanded formula

Added derivative calculation to linear, quadratic and cubic curves.
Added commentary to explain the curve and derivative formulas