Expectation value for a random event is the sum of each of the possible outcomes multiplied with the chance of that outcome.
What that gives you is basically the average result if you were to repeat that random event an infinite amount of times.
As an intuitive example regarding winrates:
If you have a 60% chance to win (and thus a 40% chance to lose), and a loss is considered a "negative win", that would mean the expected outcome of one single game is
0.6*1 + 0.4*(-1) = 0.6 - 0.4 = 0.2
So a fifth of a win.
Now, with just one game that seems a bit weird, since you can only win or lose, but if you scale it up to a large amount of games, it's more obvious what this means:
If you play 100 games, the expectation value of those games would be 20. (Simply the 0.2 of one game multiplied by 100)
Of those 100 games, you would expect to win about 60 and lose about 40. And since a loss on average cancels out a win, this is effectively as if you had won 20 games and lost none. And that's what the expectation value corresponds to.
So, let's cover the first formula:
Expectation value of the outcome of the current game if not surrendered:
p_cur - (1 - p_cur) = 2*p_cur - 1
p_cur here is the chance to win one game, also technically already multiplied with the outcome of a win (which would be +1).
The (1 - p_cur) part is the chance to lose (100% minus the chance to win). Since we multiply it with the outcome of a loss, we subract it.
The right side of the equation is just the simplified version.
Next equation:
(2*p_avg - 1) * t_cur/t_avg - 1
Left bracket is the same thing as with the previous formula, just with p_avg, rather than p_cur. That's the expectation value of an average game.
The ratio of t_cur / t_avg gives us the amount of games we could play (on average) in the time we think the current game would still take unsurrendered. The ratio itself is derived from the idea that we can complete one game per t_avg.
1 game within a time of t_avg
1/t_avg games within a time of 1
t_cur / t_avg games within a time of t_cur
As previously said, the expectation value of an event can be multiplied with the times the event is repeated.
So since we expect to play an average of t_cur / t_avg games within the time that we believe the current game will still take to be finished, we multiply the expectation value with that to get the combined expectation value of all of them.
If we now include in this the expectation value of -1 for the surrendered game (no chance involved, since it surrendering guarantees the loss), we end up with the left side of the next bit:
(2*p_avg - 1) * t_cur/t_avg - 1 vs. 2*p_cur - 1
The right half of this is just the expectation value of the current game again.
Then we can plug in the values I found/decided for t_avg (25 minutes) and t_cur (45 minutes) and we can replace the ratio of times:
t_cur/t_avg = 45/25 = 1.8
Which leaves us with this one:
(2*p_avg - 1) * 1.8 - 1 vs. 2*p_cur - 1
Effectively this is an inequation. We want to know when the left side is bigger/smaller than the right side.
The rest of it all is just regular simplification of the (in)equation; since we don't multiply by negative values, the inequality stays the same. If the left side of the final simplification is larger, then it will also be larger in the initial one, where we had the expectation values of surrender vs non-surrender.
First add one to both sides:
(2*p_avg - 1) * 1.8 vs. 2*p_cur
Then divide both sides by 2:
(2*p_avg - 1) * 0.9 vs. p_cur
Then we place a factor of 2 outside the left bracket:
(p_avg - 0.5) * 1.8 vs. p_cur
And now the tricky part, that I probably should have split into two parts:
First we divide by p_cur:
(p_avg - 0.5) * 1.8 / p_cur vs. 1
And then we divide by 1.8 (=9/5), which is the same as multiplying by 5/9:
(p_avg - 0.5) / p_cur vs. 5/9
And then we can do a simply comparison of denominator and numerator.
Numerator: p_avg - 0.5 (= chance to win on average - 50%) corresponds to the 5
Denominator: p_cur (= estimated chance to win the current game) corresponds to the 9
For surrendering to have the better average outcome, the left hand side of the inequation has to be bigger, thus the numerator also needs to be proportionally bigger. It's exactly the same proportion if we have 5% (plus 50%) average chance to win per 9% chance to win the current game, so the average chance to win needs to be larger than that.