finding and outputting max point for plot over line

Thanks. I put all of the parts together, and wrote up a Tricks here: How to find the maximum value on a line. As always, feel free to edit it if I was not clear or made errors.