$y = \sqrt((x -16)^2 + (x - 6)^2) + \sqrt((x - q)^2 + (x- (-q +10))^2) + \sqrt((q + 7)^2 + ((-q+10) -13)^2)$
where ${x >= 10}$
${x<=20}$
${q>=-10}$
${q <= 0}$
${-q + 10 >= 10}$
${-q +10 <= 20}$
I know how to minimise a function with 1 variable. I know derivatives/intergrals
For more information the function is the distance between two points passing through two lines. In future I would like to add more lines.