Global minimum of $f(x)=sum_v=1^k m_v|x-x_v|_2^2, x,x_v in mathbbR^n, m_v in mathbbR>0$

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












$$f(x)=sum_v=1^k m_v|x-x_v|_2^2, x,x_v in mathbbR^n, m_v in mathbbR>0$$



($|.|_2^2$ is the euclidean norm but squared)



I need to determine the global minimum of $f(x)$ and reason why it truly is a global minimum.



What I tried:



As $m_v>0$ and because $|x-x_v|_2^2$ is a norm it clear that $f(x)=sum_v=1^k m_v|x-x_v|_2^2 ge 0 forall x in mathbbR^n$ and therefore the global minimum of $f$ is$x=x_v$.



Because I don't know if that's sufficient I also tried this:



$f(x)=sum_v=1^k m_v|x-x_v|_2^2=sum_v=1^k m_v sum_i=1^n(x_i-x_v_i)^2$ and therefore



$f'(x)=2sum_v=1^k m_v sum_i=1^n(x_i-x_v_i)$.



So $f'(x)=0 Leftrightarrow x_i=x_v_i forall i=1...n forall v=1...k$



$f''(x)=2sum_v=1^k m_v sum_i=1^n1>0$



And therefore $x=x_v$ truly is the global minimum.



Is that correct? Thanks in advance!







share|cite|improve this question




















  • Careful however that $xin mathbb R^n$ so that you can't write "$f'(x)$", you should use a partial derivative. Also, is $v$ your index? Don't you have $x_vneq x_v+1$?
    – Mefitico
    Aug 28 at 12:28














up vote
0
down vote

favorite












$$f(x)=sum_v=1^k m_v|x-x_v|_2^2, x,x_v in mathbbR^n, m_v in mathbbR>0$$



($|.|_2^2$ is the euclidean norm but squared)



I need to determine the global minimum of $f(x)$ and reason why it truly is a global minimum.



What I tried:



As $m_v>0$ and because $|x-x_v|_2^2$ is a norm it clear that $f(x)=sum_v=1^k m_v|x-x_v|_2^2 ge 0 forall x in mathbbR^n$ and therefore the global minimum of $f$ is$x=x_v$.



Because I don't know if that's sufficient I also tried this:



$f(x)=sum_v=1^k m_v|x-x_v|_2^2=sum_v=1^k m_v sum_i=1^n(x_i-x_v_i)^2$ and therefore



$f'(x)=2sum_v=1^k m_v sum_i=1^n(x_i-x_v_i)$.



So $f'(x)=0 Leftrightarrow x_i=x_v_i forall i=1...n forall v=1...k$



$f''(x)=2sum_v=1^k m_v sum_i=1^n1>0$



And therefore $x=x_v$ truly is the global minimum.



Is that correct? Thanks in advance!







share|cite|improve this question




















  • Careful however that $xin mathbb R^n$ so that you can't write "$f'(x)$", you should use a partial derivative. Also, is $v$ your index? Don't you have $x_vneq x_v+1$?
    – Mefitico
    Aug 28 at 12:28












up vote
0
down vote

favorite









up vote
0
down vote

favorite











$$f(x)=sum_v=1^k m_v|x-x_v|_2^2, x,x_v in mathbbR^n, m_v in mathbbR>0$$



($|.|_2^2$ is the euclidean norm but squared)



I need to determine the global minimum of $f(x)$ and reason why it truly is a global minimum.



What I tried:



As $m_v>0$ and because $|x-x_v|_2^2$ is a norm it clear that $f(x)=sum_v=1^k m_v|x-x_v|_2^2 ge 0 forall x in mathbbR^n$ and therefore the global minimum of $f$ is$x=x_v$.



Because I don't know if that's sufficient I also tried this:



$f(x)=sum_v=1^k m_v|x-x_v|_2^2=sum_v=1^k m_v sum_i=1^n(x_i-x_v_i)^2$ and therefore



$f'(x)=2sum_v=1^k m_v sum_i=1^n(x_i-x_v_i)$.



So $f'(x)=0 Leftrightarrow x_i=x_v_i forall i=1...n forall v=1...k$



$f''(x)=2sum_v=1^k m_v sum_i=1^n1>0$



And therefore $x=x_v$ truly is the global minimum.



Is that correct? Thanks in advance!







share|cite|improve this question












$$f(x)=sum_v=1^k m_v|x-x_v|_2^2, x,x_v in mathbbR^n, m_v in mathbbR>0$$



($|.|_2^2$ is the euclidean norm but squared)



I need to determine the global minimum of $f(x)$ and reason why it truly is a global minimum.



What I tried:



As $m_v>0$ and because $|x-x_v|_2^2$ is a norm it clear that $f(x)=sum_v=1^k m_v|x-x_v|_2^2 ge 0 forall x in mathbbR^n$ and therefore the global minimum of $f$ is$x=x_v$.



Because I don't know if that's sufficient I also tried this:



$f(x)=sum_v=1^k m_v|x-x_v|_2^2=sum_v=1^k m_v sum_i=1^n(x_i-x_v_i)^2$ and therefore



$f'(x)=2sum_v=1^k m_v sum_i=1^n(x_i-x_v_i)$.



So $f'(x)=0 Leftrightarrow x_i=x_v_i forall i=1...n forall v=1...k$



$f''(x)=2sum_v=1^k m_v sum_i=1^n1>0$



And therefore $x=x_v$ truly is the global minimum.



Is that correct? Thanks in advance!









share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Aug 28 at 12:21









user586087

635




635











  • Careful however that $xin mathbb R^n$ so that you can't write "$f'(x)$", you should use a partial derivative. Also, is $v$ your index? Don't you have $x_vneq x_v+1$?
    – Mefitico
    Aug 28 at 12:28
















  • Careful however that $xin mathbb R^n$ so that you can't write "$f'(x)$", you should use a partial derivative. Also, is $v$ your index? Don't you have $x_vneq x_v+1$?
    – Mefitico
    Aug 28 at 12:28















Careful however that $xin mathbb R^n$ so that you can't write "$f'(x)$", you should use a partial derivative. Also, is $v$ your index? Don't you have $x_vneq x_v+1$?
– Mefitico
Aug 28 at 12:28




Careful however that $xin mathbb R^n$ so that you can't write "$f'(x)$", you should use a partial derivative. Also, is $v$ your index? Don't you have $x_vneq x_v+1$?
– Mefitico
Aug 28 at 12:28










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










It can't be $x_v$ because $v$ is an index and there are multiple of them.



$$f(x) = sum_v=1^k m_v|x-x_v|^2$$



Let's differentiate it,



$$nabla f(x) = 2 sum_v=1^k m_v(x-x_v) = 0$$



$$xsum_v=1^k m_v = sum_v=1^k m_vx_v$$



$$x = fracsum_v=1^k m_vx_vsum_v=1^k m_v$$



The optimal solution is the weighted average.






share|cite|improve this answer




















  • Thanks. Stricly speaking this only gives us a candidate for an extremum, right? Do I now need to differentiate $nabla f(x)$ and show that is greater than $0$ so we can be sure that it is a minimum? Or can I also argue that $f(x) ge 0$ and because for the x you found $f(x)=0$ and therefore it is the global minimum?
    – user586087
    Aug 28 at 12:49










  • It's a good exercise to check that it is indeed positive definite and after you check it, you can conclude that it is indeed the global minimum. The optimal solution can't attain $f(x)=0$ if that $x_v$ values are distinct.
    – Siong Thye Goh
    Aug 28 at 12:56











  • And is it really $nabla f(x)=2 sum_v=1^k m_v(x-x_v)$ instead of $nabla f(x)=2 sum_v=1^k m_v(x-x_v)^2$?
    – user586087
    Aug 28 at 14:46










  • It might help to write out special cases, say when $k=2$, and all $m_v=n=1$, that is $f(x) = (x-x_1)^2 + (x-x_2)^2$, would you like to try and see which case do you get?
    – Siong Thye Goh
    Aug 28 at 14:54










Your Answer




StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2897201%2fglobal-minimum-of-fx-sum-v-1k-m-v-x-x-v-22-x-x-v-in-mathbbr%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted










It can't be $x_v$ because $v$ is an index and there are multiple of them.



$$f(x) = sum_v=1^k m_v|x-x_v|^2$$



Let's differentiate it,



$$nabla f(x) = 2 sum_v=1^k m_v(x-x_v) = 0$$



$$xsum_v=1^k m_v = sum_v=1^k m_vx_v$$



$$x = fracsum_v=1^k m_vx_vsum_v=1^k m_v$$



The optimal solution is the weighted average.






share|cite|improve this answer




















  • Thanks. Stricly speaking this only gives us a candidate for an extremum, right? Do I now need to differentiate $nabla f(x)$ and show that is greater than $0$ so we can be sure that it is a minimum? Or can I also argue that $f(x) ge 0$ and because for the x you found $f(x)=0$ and therefore it is the global minimum?
    – user586087
    Aug 28 at 12:49










  • It's a good exercise to check that it is indeed positive definite and after you check it, you can conclude that it is indeed the global minimum. The optimal solution can't attain $f(x)=0$ if that $x_v$ values are distinct.
    – Siong Thye Goh
    Aug 28 at 12:56











  • And is it really $nabla f(x)=2 sum_v=1^k m_v(x-x_v)$ instead of $nabla f(x)=2 sum_v=1^k m_v(x-x_v)^2$?
    – user586087
    Aug 28 at 14:46










  • It might help to write out special cases, say when $k=2$, and all $m_v=n=1$, that is $f(x) = (x-x_1)^2 + (x-x_2)^2$, would you like to try and see which case do you get?
    – Siong Thye Goh
    Aug 28 at 14:54














up vote
1
down vote



accepted










It can't be $x_v$ because $v$ is an index and there are multiple of them.



$$f(x) = sum_v=1^k m_v|x-x_v|^2$$



Let's differentiate it,



$$nabla f(x) = 2 sum_v=1^k m_v(x-x_v) = 0$$



$$xsum_v=1^k m_v = sum_v=1^k m_vx_v$$



$$x = fracsum_v=1^k m_vx_vsum_v=1^k m_v$$



The optimal solution is the weighted average.






share|cite|improve this answer




















  • Thanks. Stricly speaking this only gives us a candidate for an extremum, right? Do I now need to differentiate $nabla f(x)$ and show that is greater than $0$ so we can be sure that it is a minimum? Or can I also argue that $f(x) ge 0$ and because for the x you found $f(x)=0$ and therefore it is the global minimum?
    – user586087
    Aug 28 at 12:49










  • It's a good exercise to check that it is indeed positive definite and after you check it, you can conclude that it is indeed the global minimum. The optimal solution can't attain $f(x)=0$ if that $x_v$ values are distinct.
    – Siong Thye Goh
    Aug 28 at 12:56











  • And is it really $nabla f(x)=2 sum_v=1^k m_v(x-x_v)$ instead of $nabla f(x)=2 sum_v=1^k m_v(x-x_v)^2$?
    – user586087
    Aug 28 at 14:46










  • It might help to write out special cases, say when $k=2$, and all $m_v=n=1$, that is $f(x) = (x-x_1)^2 + (x-x_2)^2$, would you like to try and see which case do you get?
    – Siong Thye Goh
    Aug 28 at 14:54












up vote
1
down vote



accepted







up vote
1
down vote



accepted






It can't be $x_v$ because $v$ is an index and there are multiple of them.



$$f(x) = sum_v=1^k m_v|x-x_v|^2$$



Let's differentiate it,



$$nabla f(x) = 2 sum_v=1^k m_v(x-x_v) = 0$$



$$xsum_v=1^k m_v = sum_v=1^k m_vx_v$$



$$x = fracsum_v=1^k m_vx_vsum_v=1^k m_v$$



The optimal solution is the weighted average.






share|cite|improve this answer












It can't be $x_v$ because $v$ is an index and there are multiple of them.



$$f(x) = sum_v=1^k m_v|x-x_v|^2$$



Let's differentiate it,



$$nabla f(x) = 2 sum_v=1^k m_v(x-x_v) = 0$$



$$xsum_v=1^k m_v = sum_v=1^k m_vx_v$$



$$x = fracsum_v=1^k m_vx_vsum_v=1^k m_v$$



The optimal solution is the weighted average.







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Aug 28 at 12:28









Siong Thye Goh

81k1453103




81k1453103











  • Thanks. Stricly speaking this only gives us a candidate for an extremum, right? Do I now need to differentiate $nabla f(x)$ and show that is greater than $0$ so we can be sure that it is a minimum? Or can I also argue that $f(x) ge 0$ and because for the x you found $f(x)=0$ and therefore it is the global minimum?
    – user586087
    Aug 28 at 12:49










  • It's a good exercise to check that it is indeed positive definite and after you check it, you can conclude that it is indeed the global minimum. The optimal solution can't attain $f(x)=0$ if that $x_v$ values are distinct.
    – Siong Thye Goh
    Aug 28 at 12:56











  • And is it really $nabla f(x)=2 sum_v=1^k m_v(x-x_v)$ instead of $nabla f(x)=2 sum_v=1^k m_v(x-x_v)^2$?
    – user586087
    Aug 28 at 14:46










  • It might help to write out special cases, say when $k=2$, and all $m_v=n=1$, that is $f(x) = (x-x_1)^2 + (x-x_2)^2$, would you like to try and see which case do you get?
    – Siong Thye Goh
    Aug 28 at 14:54
















  • Thanks. Stricly speaking this only gives us a candidate for an extremum, right? Do I now need to differentiate $nabla f(x)$ and show that is greater than $0$ so we can be sure that it is a minimum? Or can I also argue that $f(x) ge 0$ and because for the x you found $f(x)=0$ and therefore it is the global minimum?
    – user586087
    Aug 28 at 12:49










  • It's a good exercise to check that it is indeed positive definite and after you check it, you can conclude that it is indeed the global minimum. The optimal solution can't attain $f(x)=0$ if that $x_v$ values are distinct.
    – Siong Thye Goh
    Aug 28 at 12:56











  • And is it really $nabla f(x)=2 sum_v=1^k m_v(x-x_v)$ instead of $nabla f(x)=2 sum_v=1^k m_v(x-x_v)^2$?
    – user586087
    Aug 28 at 14:46










  • It might help to write out special cases, say when $k=2$, and all $m_v=n=1$, that is $f(x) = (x-x_1)^2 + (x-x_2)^2$, would you like to try and see which case do you get?
    – Siong Thye Goh
    Aug 28 at 14:54















Thanks. Stricly speaking this only gives us a candidate for an extremum, right? Do I now need to differentiate $nabla f(x)$ and show that is greater than $0$ so we can be sure that it is a minimum? Or can I also argue that $f(x) ge 0$ and because for the x you found $f(x)=0$ and therefore it is the global minimum?
– user586087
Aug 28 at 12:49




Thanks. Stricly speaking this only gives us a candidate for an extremum, right? Do I now need to differentiate $nabla f(x)$ and show that is greater than $0$ so we can be sure that it is a minimum? Or can I also argue that $f(x) ge 0$ and because for the x you found $f(x)=0$ and therefore it is the global minimum?
– user586087
Aug 28 at 12:49












It's a good exercise to check that it is indeed positive definite and after you check it, you can conclude that it is indeed the global minimum. The optimal solution can't attain $f(x)=0$ if that $x_v$ values are distinct.
– Siong Thye Goh
Aug 28 at 12:56





It's a good exercise to check that it is indeed positive definite and after you check it, you can conclude that it is indeed the global minimum. The optimal solution can't attain $f(x)=0$ if that $x_v$ values are distinct.
– Siong Thye Goh
Aug 28 at 12:56













And is it really $nabla f(x)=2 sum_v=1^k m_v(x-x_v)$ instead of $nabla f(x)=2 sum_v=1^k m_v(x-x_v)^2$?
– user586087
Aug 28 at 14:46




And is it really $nabla f(x)=2 sum_v=1^k m_v(x-x_v)$ instead of $nabla f(x)=2 sum_v=1^k m_v(x-x_v)^2$?
– user586087
Aug 28 at 14:46












It might help to write out special cases, say when $k=2$, and all $m_v=n=1$, that is $f(x) = (x-x_1)^2 + (x-x_2)^2$, would you like to try and see which case do you get?
– Siong Thye Goh
Aug 28 at 14:54




It might help to write out special cases, say when $k=2$, and all $m_v=n=1$, that is $f(x) = (x-x_1)^2 + (x-x_2)^2$, would you like to try and see which case do you get?
– Siong Thye Goh
Aug 28 at 14:54

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2897201%2fglobal-minimum-of-fx-sum-v-1k-m-v-x-x-v-22-x-x-v-in-mathbbr%23new-answer', 'question_page');

);

Post as a guest













































































這個網誌中的熱門文章

How to combine Bézier curves to a surface?

Carbon dioxide

Why am i infinitely getting the same tweet with the Twitter Search API?