Solução
resolver para
Solução
Passos da solução
Find the difference function
Look for the function's extreme points
Pontos extremos de Mínimo
Check function behavior at domain edges:
The interval between every consecutive point pair is monotone
Check every interval, if the signs at the edges are different, find the X intersection using Brent method
Between and
Between and