2 equations, 3 unknowns - finding 2 ratios of unknowns

  • Thread starter Thread starter uby
  • Start date Start date
  • Tags Tags
    Ratios Unknowns
AI Thread Summary
The discussion revolves around solving two equations with three unknowns, specifically focusing on finding two ratios of the unknowns. The equations provided are K1 = Ax + Ay - Bz and K2 = Ax + (A+B)y. Attempts to solve for the ratios x/y and z/(x+y) in terms of A, B, K1, and K2 reveal that the system remains indeterminate, as there are more unknowns than equations. It is noted that the ratios may not be constant across the solution space, complicating the ability to derive a definitive solution. The conversation concludes with the suggestion of exploring functions that could yield constant ratios throughout the solution space.
uby
Messages
172
Reaction score
0

Homework Statement


I have two equations with three unknowns. Obviously, this is indeterminate and not all three variables can be independently solved. However, I only need (want) to solve for two ratios of the three unknowns. I am writing greatly simplified versions of the equations below:


Homework Equations


K1 = Ax + Ay - Bz
K2 = Ax + (A+B)y

I wish to solve for x/y and z/(x+y) in terms of A, B, K1 and K2 only.

The Attempt at a Solution


I have been using excel spreadsheets to attempt numerical solutions and have quickly found the system to STILL be indeterminate even when trying to only solve for these ratios.

When solving for z/(x+y) using eqn. 1, you immediately find it varies with (x+y) as:
z/(x+y) = (A/B) - (K1/(B*(x+y)))

I suspect it is impossible to solve for both (x+y) and (x/y) since knowing both allows you to calculate both x and y. But, on the other hand, I don't want to know (x+y), only z/(x+y).

Any ideas?

Thanks!
 
Physics news on Phys.org
When solving a system for combinations of variables, if the solution isn't immediately obvious, a good technique to use is to define a new letter for each combination of variables you want to solve for. For example, you might set
p = \frac{z}{x+y}
q = \frac{x}{y}
Then use these definitions to eliminate two of the original variables, say z and y, from the original equations, and solve for p and q. If a solution exists for p and q in terms of A, B, K1, and K2 only, you should find that the remaining variable, x, cancels out of the equation.

Of course, it is possible that the ratios you're looking for are not constant but are inherently dependent on the (x,y,z) point at which they are computed. In that case, you won't be able to eliminate x from the equations, and the problem as given cannot be solved.
 
thanks diazona, your approach is very helpful

i choose to eliminate x and z instead using your definitions: x = qy and z = (x+y)p
then, substituting x = qy into K2 = Ax + (A+B)y yields y = K2 / (Aq + A + B)
substituting y (and the original substitutions for x and z) into K1 = Ax + Ay - Bz yields the following expression:
K1 = K2*(Aq + A - Bpq - Bp)/(Aq + A + B)
thus, I am left with an expression for p and q in terms of A, B, K1 and K2 only -- though the system remains indeterminate as I only have 1 equation with 2 unknowns (p and q).

so, it would seem as though i cannot solve for these ratios (though, i don't understand why from a degrees of freedom argument: any two pieces of information should be solvable so long as their combinations cannot yield all three unknowns).

is there some way to find the set of all ratios that are determinate in this system?
 
Last edited:
uby said:
any two pieces of information should be solvable so long as their combinations cannot yield all three unknowns
Actually, that's not true. To take a simpler example, consider the equation
x = y - 1
In this system, it's impossible to solve for the ratio x/y - or rather, you can solve for it, but not in terms of constants only, because the ratio depends on which (x,y) point you choose. You can see this by taking a few sample points: at (3,4) the ratio is 0.75, at (9,10) it's 0.9, and so on.

What the concept of degrees of freedom (DOF) really tells you is that if you have an underdetermined system, the dimensionality of the solution space is equal to the number of variables minus the number of constraints. (At least for "normal" e.g. algebraic systems) In your example, you have 3 variables and 2 unknowns, thus the space of solutions to your system will be a 1-dimensional object, namely a line or curve. If you created a 3D plot of (x,y,z) points that satisfy your equations, you should be able to see that.

Now, if you think about it, hopefully you can see that in order for you to solve for the ratios you're looking for (in terms of A,B,K1,K2 only), the values of those ratios would have to be constant along the entire curve. But they're not. Again, if you had a 3D plot of the solution space, you should be able to calculate x/y and z/(x+y) at various points in that space and you would find an assortment of different values.

Generally speaking, you can't pick any arbitrary function of x, y, and z (such as one of your ratios) and expect it to be constant throughout the solution space (the 1D curve). In fact, most functions of x,y,z will not be constant throughout the solution space. Finding a function that is constant is actually an interesting problem of its own. This sort of problem is quite relevant in physics, and it sometimes takes some rather advanced tools to solve it, e.g. Noether's Theorem.

In principle, I think you could use Noether's Theorem to find quantities that are constant throughout the solution space of your system, although it may not be necessary. One thing you could try is to just combine the two equations by solving one equation for one variable and substituting into the other. In the resulting equation, make sure that the left side contains only constants, and then whatever appears on the right side should give you a quantity that will be constant throughout your solution space. It may be more complicated than a simple ratio, though.
 
Last edited:
Diazona, thanks again for your expertise!

So, an approach to this might take the form of finding a function for the line containing all solutions in (x,y,z) space, and then deducing from this function what ratios, if any, are constant?
 
Hmm... I suppose that would be one way to go about it.
 
I tried to combine those 2 formulas but it didn't work. I tried using another case where there are 2 red balls and 2 blue balls only so when combining the formula I got ##\frac{(4-1)!}{2!2!}=\frac{3}{2}## which does not make sense. Is there any formula to calculate cyclic permutation of identical objects or I have to do it by listing all the possibilities? Thanks
Since ##px^9+q## is the factor, then ##x^9=\frac{-q}{p}## will be one of the roots. Let ##f(x)=27x^{18}+bx^9+70##, then: $$27\left(\frac{-q}{p}\right)^2+b\left(\frac{-q}{p}\right)+70=0$$ $$b=27 \frac{q}{p}+70 \frac{p}{q}$$ $$b=\frac{27q^2+70p^2}{pq}$$ From this expression, it looks like there is no greatest value of ##b## because increasing the value of ##p## and ##q## will also increase the value of ##b##. How to find the greatest value of ##b##? Thanks
Back
Top