Update to Tex

Added Legendre derivatives and separated the linear case