Question 1167701
.
<pre>

Then d(1,x)  is the inner product  


    (1-x,1-x) = integral from -1 to 1 of (1-x)^2 dx,


which is the same as the integral from -1 to 1 of (x-1)^2 dx.


Antiderivative is  {{{(1/3)*(x-1)^3}}},  and from it, you easily get the answer


    {{{(1/3)*0^3 - (1/3)*(-2)^3}}} = {{{8/3}}}.
</pre>

Solved, explained and answered.