I had a question relating to a math problem that I'm doing. Let's say I have a heater that produces heat until it reaches a specific temperature, after which it turns off until it reaches a minimum value, and then it turns on again. I can model this by creating a simple sin curve equation, y= sin(x)+2. The x-axis of this graph is time (in minutes), and the y axis is temperature (in celsius). How can I calculate the total heat energy produced by the heater from time = 0 to time= 20? How can I calculate the energy efficiency of the heater? Thank you!