application of derivatives in mechanical engineering