chap1Gen.m: Approximations of u'(x) (a little more general than chap1example1.m)
Function u'(x) for chap1Gen.m