see.........we can solve dis using derivatives dy/dx=( (x+c)(2x+a+b) -(x^2 +ax+bx +ab))/(x+c)^2
but for min or max dy/dx=0 => on simplifying x^2 +2cx+ac +bc -ab=0 =>x^2+2cx+c^2 -c^2 +ac +bc -ab=0 =>(x+c)^2= c^2 -ac -bc +ab => x= +-((a-c )(b-c))^1/2 -c