Explain this line of working when solving for the maximum power of a load resistor
They are writing the power as a function of Rl, taking the first derivative to find the maximum, and then using the second derivative test to ensure that it is a local maximum and not a minimum.  Since Vth is squared, and normally resistance is positive (though incremental resistance can often be negative) it's not hard to meet the second derivative test.