We can specify the slope at knots points using the control points on either side, and parameterize the wieghting factors: Repeating the same derivation gives:
Repeating the same derivation gives: