Given:
a1,a2,a3,…,an∈R
Formula Used:
To find the value of x that minimizes the expression (x−a1)2+(x−a2)2+…+(x−an)2, we use the formula:
x=na1+a2+a3+…+an
Calculation:
Let's minimize the given expression (x−a1)2+(x−a2)2+…+(x−an)2 .
Consider the function f(x)=(x−a1)2+(x−a2)2+…+(x−an)2.
To find the minimum value, we take the derivative of f(x) with respect to x and set it to zero.
f(x)=∑i=1n(x−ai)2
⇒ f′(x)=∑i=1n2(x−ai)
⇒ f′(x)=2∑i=1n(x−ai)
Set f'(x) = 0 :
⇒ 2∑i=1n(x−ai)=0
⇒ ∑i=1n(x−ai)=0
⇒ nx−∑i=1nai=0
⇒ nx=∑i=1nai
⇒ x = na1+a2+a3+…+an
The value of x that minimizes the expression is na1+a2+a3+…+an .