Ch 5.1 - Power Electronics Q#4 - Instantaneous Reactive Power

Hey everyone, where do we get this instantaneous reactive power formula from in the handbook? I could find the formula from the pre-work to do the problem.