Instantaneous reactive power formula

Hi,

This is regarding Q4 of the on demand course quiz on power electronics:

I came across a different expression to compute the instantaneous reactive power in “Power system analysis and Design” by Glover and Sarma page 43 and 44:

Where lower case delta is the voltage angle and beta is the current angle.

The textbook formula makes sense because if we have a purely resistive load, the P_x(t) will be zero as I_x will be zero. However if the equation shown in class is used for a purely resistive load, you get a non zero value for reactive power.

I used the textbook formula to compute the instantaneous reactive power for the on-demand quiz question:

The answer is different to the correct answer for that quiz question.

Is my understanding correct? If not, I wish to know why we don’t use the textbook equation for this question.
Thank you!