Using the method of integration