Appendix A Definition of Gâteaux and Fréchet derivatives