Hi,My Little Pony

displacement = integral from -1 to 5 (-t^2 + 6t -8) = -18

distance = Sqrt[ ((-5^2+6*5-8) - (1^2-6*1-8))^2) ] = Sqrt[((-3)-(-12))^2]=Sqrt[12^2] = 12 (I'm not sure about this but it looks correctly)

p.s. I'm new on this forum and I don't now how to use math symbols , can anyone help me ?