NOTE:
  • i goes from 2 -> N-1, for 3N-3 equations
  • Apply end point values for 2 more
  • you still need to apply a1=0 for 3N unknown a,b,c's