If a i ∈ R , where i ∈ { 1 , 2 , 3 , 4 , 5 , ⋯ , n } , then find the value of x for which the expression i = 1 ∑ n ( x − a i ) 2 assumes its minimum value.
Bonus: Can this be solved this without calculus?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Perfect!
Exactly the way I had thought. Actually, the reason I said not to use calculus was because even though calculus makes it very easy but there are still many methods to do this problem. One of them being the famous 'completing squares' method that you solved this with. For higher powers though, calculus is the best option but for quadratics, you don't need the knowledge of calculus to solve this. Great work!
P.S. It's okay that you have took the starting value of i and zero, but in my problem, I've stated the starting value as i = 1 . Just to avoid confusion for the reader, could you modify it?
Problem Loading...
Note Loading...
Set Loading...
Using calculus it can be done easily by differentiating w.r.t. x and make first derivative equal to zero.But without using calculus I have approached in the following way.
. i = 1 ∑ n ( x − a i ) 2 = n x 2 − 2 i = 1 ∑ n a i x + i = 1 ∑ n a i 2 = n ( x 2 − n 2 ∑ i = 1 n a i x ) + i = 1 ∑ n a i 2 = n ( x 2 − n 2 ∑ i = 1 n a i x + ( n ∑ i = 1 n a i ) 2 ) − n ( ∑ i = 1 n a i ) 2 + i = 1 ∑ n a i 2 = n ( x − n ∑ i = 1 n a i ) 2 + i = 1 ∑ n a i 2 − n ( ∑ i = 1 n a i ) 2
So from above expression if the perfect square attains minimum value then total value will be minimum. The minimum value of x is = n ∑ i = 1 n a i