I wish to make a short python program (python 3.8) that it can read a function f(x) and find the shortest distance to origin d(x,y)=sqrt(x^2+(f(x))^2) by solving 2x+2f(x)*f