We need to have methods to calculate basis with continuous derivatives. Resulting system of equations involves derivatives of functions. Concrete example p(x) = a0*1 + a1*x + a2*x^2 + a3*x^3, and equations are p(-1), p'(-1), p(1), p'(1). Calculus is able to automatically differentiate this.