<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - comments on Post, solutions to under- and over-determined systems</title>
    <link>http://www.mapleprimes.com/posts/40824-Solutions-To-Under-And-Overdetermined-Systems</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Wed, 10 Jun 2026 17:03:37 GMT</lastBuildDate>
    <pubDate>Wed, 10 Jun 2026 17:03:37 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest comments added to the Post, solutions to under- and over-determined systems</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - comments on Post, solutions to under- and over-determined systems</title>
      <link>http://www.mapleprimes.com/posts/40824-Solutions-To-Under-And-Overdetermined-Systems</link>
    </image>
    <item>
      <title>solution for linear systems</title>
      <link>http://www.mapleprimes.com/posts/40824-Solutions-To-Under-And-Overdetermined-Systems?ref=Feed:MaplePrimes:solutions to under- and over-determined systems:Comments#comment75596</link>
      <itunes:summary>Shawn,

If, as in your example, the equations are linear then you can use the theory of linear algebra to get an answer to your question. Here's one way that this could be done:

&lt;pre&gt;
with( LinearAlgebra ):
EQS := {
  x   + y   = a,
  x   - y   = b,
  2*x + 2*y = c
};
A,b := GenerateMatrix( EQS, [x,y] );
M := &amp;lt; A | b &gt;;
GaussianElimination( M );
&lt;/pre&gt;
Now, if each row has a pivot entry, then the system is consistent for every right-hand side. If there is a row that does not have a pivot entry, then the RHS must be zero for the system to be consistent. Setting these elements of the RHS to zero gives the constraints that must be satisfied in order for the system to be consistent.

Depending on the specific form of your equations, you can get fancier.

Does this help you to answer your question?

Doug
&lt;pre&gt;
---------------------------------------------------------------------
Douglas B. Meade
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu       
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu/~meade/
&lt;/pre&gt;</itunes:summary>
      <description>The latest comments added to the Post, solutions to under- and over-determined systems</description>
      <guid>75596</guid>
      <pubDate>Wed, 19 Sep 2007 22:33:27 Z</pubDate>
      <itunes:author>Doug Meade</itunes:author>
      <author>Doug Meade</author>
    </item>
    <item>
      <title>solution for linear systems</title>
      <link>http://www.mapleprimes.com/posts/40824-Solutions-To-Under-And-Overdetermined-Systems?ref=Feed:MaplePrimes:solutions to under- and over-determined systems:Comments#comment75593</link>
      <itunes:summary>Greetings Doug.  Using your code as posted, since you are declaring b as a variable in the original equation, you cannot use it again in your assignment to GenerateMatrix.  Maple complains as follows:

Error, recursive assignment


Changing the lower case b to something else (I used upper case), gives the proper result.

&gt;restart:
&gt;with( LinearAlgebra ):
&gt;EQS := {
  x   + y   = a,
  x   - y   = b,
  2*x + 2*y = c
};
&gt;A,B := GenerateMatrix( EQS, [x,y] );
&gt;M := &lt; A | B &gt;;
&gt;GaussianElimination( M );


Regards,
Georgios Kokovidis
Dräger Medical</itunes:summary>
      <description>The latest comments added to the Post, solutions to under- and over-determined systems</description>
      <guid>75593</guid>
      <pubDate>Thu, 20 Sep 2007 02:19:36 Z</pubDate>
      <itunes:author>gkokovidis</itunes:author>
      <author>gkokovidis</author>
    </item>
    <item>
      <title>solutions to under- and over-determined systems</title>
      <link>http://www.mapleprimes.com/posts/40824-Solutions-To-Under-And-Overdetermined-Systems?ref=Feed:MaplePrimes:solutions to under- and over-determined systems:Comments#comment75592</link>
      <itunes:summary>In solving a system such as this, you want to be careful about what is considered to be a variable and what is a parameter.  Maple will give you solutions expressing a set of basic variables in terms of the other variables and the parameters; these will be valid for "generic" values of the parameters, but perhaps not for special values of the parameters.  Thus:

&lt;pre&gt;
&gt; sys := {x + y = a,
     x - y = b,
    2*x + 2*y = c}:
&gt; solve(sys, {x,y});
&lt;/pre&gt;

This is treating x and y as the variables and a,b,c as parameters.
It returns nothing since for generic values of parameters a, b and c, there are no solutions.  But

&lt;pre&gt;
&gt; solve(sys, {x,y,c});
&lt;/pre&gt;

Now x,y and c are considered as variables, so you pick up the solutions that depend on c having a specific relation to a and b:

&lt;maple&gt;{c = 2*a, y = 1/2*a-1/2*b, x = 1/2*a+1/2*b}&lt;/maple&gt;
 
You might also try Groebner[Solve]:

&lt;pre&gt;
&gt; Groebner[Solve](map(rhs-lhs,sys),[x,y,a,b,c]);
&lt;/pre&gt;

Note that in the second argument, I list the variables first and then the parameters. 

&lt;maple&gt;
{[[2*a-c, 4*y-c+2*b, -c-2*b+4*x], plex(x,y,a,b,c), {}]}&lt;/maple&gt;

The first item in the returned list indicates that in order to have a solution, you need &lt;maple&gt;2*a-c=0&lt;/maple&gt;.

Here's a system where the parameters enter the coefficients of x and y as well as the right sides:

&lt;pre&gt;
&gt; sys2:= { a*x + y = b, b*x + y = c, x - y = a }:
&gt; G:= Groebner[Solve](map(rhs-lhs,sys2),[x,y,a,b,c]);
&lt;/pre&gt;

&lt;maple&gt;G:={[[-b*a+c+a^2-b+a*c-b^2, b*a+b*y-c+y, y+y*a+b*a-c-a*c+b^2, -a+x-y], plex(x,y,a,b,c), {}]}&lt;/maple&gt;

Again, the first item in the list shows a condition on a,b,c that is needed in order to have a solution.

</itunes:summary>
      <description>The latest comments added to the Post, solutions to under- and over-determined systems</description>
      <guid>75592</guid>
      <pubDate>Thu, 20 Sep 2007 03:04:27 Z</pubDate>
      <itunes:author>Robert Israel</itunes:author>
      <author>Robert Israel</author>
    </item>
    <item>
      <title>Thanks everyone for your</title>
      <link>http://www.mapleprimes.com/posts/40824-Solutions-To-Under-And-Overdetermined-Systems?ref=Feed:MaplePrimes:solutions to under- and over-determined systems:Comments#comment75579</link>
      <itunes:summary>Thanks everyone for your responses. 

My systems, unfortunately, are not linear and I'm not certain ahead of time which of the parameters (a,b,c in the example I gave), if any, may require a constraint.  With this in mind, it looks like the Groebner approach is most promising.


Thanks,
Shawn</itunes:summary>
      <description>The latest comments added to the Post, solutions to under- and over-determined systems</description>
      <guid>75579</guid>
      <pubDate>Fri, 21 Sep 2007 03:01:28 Z</pubDate>
      <itunes:author>Shawn
 Bauldry
</itunes:author>
      <author>Shawn
 Bauldry
</author>
    </item>
  </channel>
</rss>