Demonstration of how to differentiate equations using the first principle as well as differential rules