<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240880</link>
    <title>MATLAB Central Newsreader - Solving x'Px = v</title>
    <description>Feed for thread: Solving x'Px = v</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 12 Dec 2008 00:15:04 -0500</pubDate>
      <title>Solving x'Px = v</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240880#616518</link>
      <author>Benp P</author>
      <description>Hi, I need to solve the equation&lt;br&gt;
&lt;br&gt;
x'Px = v&lt;br&gt;
&lt;br&gt;
where x is an (n by 1) vector of unknowns and P is a (n by n) square matrix (v is a scalar).&lt;br&gt;
&lt;br&gt;
Any help would be great!&lt;br&gt;
&lt;br&gt;
Thanks, &lt;br&gt;
Ben.</description>
    </item>
    <item>
      <pubDate>Fri, 12 Dec 2008 00:38:03 -0500</pubDate>
      <title>Re: Solving x'Px = v</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240880#616521</link>
      <author>Roger Stafford</author>
      <description>&quot;Benp P&quot; &amp;lt;lightatron@hotmail.com&amp;gt; wrote in message &amp;lt;ghsae8$nlk$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi, I need to solve the equation&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; x'Px = v&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; where x is an (n by 1) vector of unknowns and P is a (n by n) square matrix (v is a scalar).&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Any help would be great!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks, &lt;br&gt;
&amp;gt; Ben.&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;If one were to let P = [1 0;0 1] this would yield the equation&lt;br&gt;
&lt;br&gt;
&amp;nbsp;x^2 + y^2 = v&lt;br&gt;
&lt;br&gt;
for the unknown vector [x;y].  In other words you would be giving us the equation of a circle and asking us to find its solution.  That doesn't make much sense to me.  There are infinitely many solutions, and the same would be true in general for your quadratic equation x'*P*x = v.  There are n unknowns and only one equation.&lt;br&gt;
&lt;br&gt;
Roger Stafford</description>
    </item>
    <item>
      <pubDate>Fri, 12 Dec 2008 00:47:02 -0500</pubDate>
      <title>Re: Solving x'Px = v</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240880#616522</link>
      <author>Benp P</author>
      <description>Thanks for your reply.&lt;br&gt;
There are other constraints on x for solving explicitly, though I omitted them as I am after an algebraic expression for x (if it exists) in terms of P and v.&lt;br&gt;
&lt;br&gt;
Thanks, &lt;br&gt;
Ben.</description>
    </item>
    <item>
      <pubDate>Fri, 12 Dec 2008 00:50:04 -0500</pubDate>
      <title>Re: Solving x'Px = v</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240880#616524</link>
      <author>Benp P</author>
      <description>Thanks for your reply.&lt;br&gt;
There are other constraints on x, though I omitted them as I am after an algebraic expression for x (if it exists) in terms of P and v.&lt;br&gt;
&lt;br&gt;
Thanks again, &lt;br&gt;
Ben.</description>
    </item>
    <item>
      <pubDate>Fri, 12 Dec 2008 01:16:02 -0500</pubDate>
      <title>Re: Solving x'Px = v</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240880#616532</link>
      <author>John D'Errico</author>
      <description>&quot;Benp P&quot; &amp;lt;lightatron@hotmail.com&amp;gt; wrote in message &amp;lt;ghscfs$kp7$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Thanks for your reply.&lt;br&gt;
&amp;gt; There are other constraints on x, though I omitted them as I am after an algebraic expression for x (if it exists) in terms of P and v.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks again, &lt;br&gt;
&amp;gt; Ben.&lt;br&gt;
&lt;br&gt;
This IS the expression. Depending upon the&lt;br&gt;
characteristics of P, this is the equation of a&lt;br&gt;
circle/sphere, or perhaps an ellipsoid, or&lt;br&gt;
perhaps some other conic form, all in&lt;br&gt;
n-dimensions.&lt;br&gt;
&lt;br&gt;
Sorry, but there is no simple expression for&lt;br&gt;
you here.&lt;br&gt;
&lt;br&gt;
John</description>
    </item>
    <item>
      <pubDate>Fri, 12 Dec 2008 07:26:47 -0500</pubDate>
      <title>Re: Solving x'Px = v</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240880#616553</link>
      <author>swgillan</author>
      <description>On Dec 11, 4:15=A0pm, &quot;Benp P&quot; &amp;lt;lightat...@hotmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Hi, I need to solve the equation&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; x'Px =3D v&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; where x is an (n by 1) vector of unknowns and P is a (n by n) square matr=&lt;br&gt;
ix (v is a scalar).&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Any help would be great!&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks,&lt;br&gt;
&amp;gt; Ben.&lt;br&gt;
&lt;br&gt;
Not sure of this would help, but can you perform a cholesky&lt;br&gt;
factorization on P? P =3D LL' where L is a lower triangular.&lt;br&gt;
&lt;br&gt;
x'Px =3D v&lt;br&gt;
x'LL'x =3D v&lt;br&gt;
let L'x =3D y&lt;br&gt;
y'y =3D v&lt;br&gt;
&lt;br&gt;
if you can find y, you can just do simple back substition to get x.&lt;br&gt;
&lt;br&gt;
Not sure if that helps or not.</description>
    </item>
    <item>
      <pubDate>Fri, 12 Dec 2008 10:00:05 -0500</pubDate>
      <title>Re: Solving x'Px = v</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240880#616568</link>
      <author>John D'Errico</author>
      <description>swgillan &amp;lt;swgillan@gmail.com&amp;gt; wrote in message &amp;lt;51a9e61a-47f4-4b75-8c09-0538d1323b82@x16g2000prn.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Dec 11, 4:15=A0pm, &quot;Benp P&quot; &amp;lt;lightat...@hotmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; Hi, I need to solve the equation&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; x'Px =3D v&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; where x is an (n by 1) vector of unknowns and P is a (n by n) square matr=&lt;br&gt;
&amp;gt; ix (v is a scalar).&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Any help would be great!&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Thanks,&lt;br&gt;
&amp;gt; &amp;gt; Ben.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Not sure of this would help, but can you perform a cholesky&lt;br&gt;
&amp;gt; factorization on P? P =3D LL' where L is a lower triangular.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; x'Px =3D v&lt;br&gt;
&amp;gt; x'LL'x =3D v&lt;br&gt;
&amp;gt; let L'x =3D y&lt;br&gt;
&amp;gt; y'y =3D v&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; if you can find y, you can just do simple back substition to get x.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Not sure if that helps or not.&lt;br&gt;
&lt;br&gt;
Its an idea, although the OP has never stated that&lt;br&gt;
P is positive definite, a HUGEly important factor&lt;br&gt;
in the existence of a Cholesky factor.&lt;br&gt;
&lt;br&gt;
Essentially, IF P is symmetric and positive definite,&lt;br&gt;
then X'*P*X = v is the equation of a hyper-ellipsoid.&lt;br&gt;
All the Cholesky factor does is to transform the&lt;br&gt;
ellipsoid into a hyper-sphere, still in n dimensions.&lt;br&gt;
Having then turned the problem into Y'*Y = v,&lt;br&gt;
you still do not have a solution for y. Remember,&lt;br&gt;
the OP has asked for a way to recover the unknown.&lt;br&gt;
&lt;br&gt;
All that we know is that y lies on a hyper-sphere&lt;br&gt;
of known radius.&lt;br&gt;
&lt;br&gt;
If P is a general matrix, this will fail, although one&lt;br&gt;
might choose another form to factorize P. Perhaps&lt;br&gt;
an LDL' or UDU' form might be chosen. Note that&lt;br&gt;
D need not always be a diagonal matrix in these&lt;br&gt;
forms.&lt;br&gt;
&lt;br&gt;
John</description>
    </item>
  </channel>
</rss>

