Applications of derivatives