Explain the mathematical derivation and practical application of numerical root-finding algorithms like Newton-Raphson.