1. ## Tricky-ish algebra problem

Hi Folks,

It's been a long time since I last studied maths but have a problem that's a little but too much for my out-of-practice mind! Maybe someone can help me with the problem? Forgive me for not explaining it very well, it's pushing my understanding!!

Problem scenario (if interested I'm programmatically trying to control some hardware in Java. The hardware has a motor that rotates at seconds-per-rotation 'Y'. It has *two* factors controlling the speed, x1 and x2. I need 3 formulas that approximate the speed:

1) Y in terms of x1 and x2
2) x1 in terms of y (WITHOUT a given x2)
3) x2 in terms of y (WITHOUT a given x1)

The complications are:

Problem 1: for a given Y there are many x1/x2 combinations that would work. So for the last two formulas there are many possibilities, and I suggest a relationship below to come to a solvable equation for 2 and 3. The reason being, I'll need to find an x1 and x2, given a Y. And there are infinite possibilities)

Problem 2: For a the last two equations, a given Y has up to two possible values of x.

So here are the bounds:

0 <= x1 <= 1
0 <= x2 <= 1
0.94 <= Y <= 16

Which leads me to an adequate equation 3, which will be used to find equation 2.
x2 = (y - 0.94) / (16 - 0.94)

This doesn't hold true for equation one, but is an acceptable solution for finding a suitable x2 for a given y. To find x1 for that Y is then fairly trivial. The problem is that it doesn't help find an answer for equation 1 as it doesn't always hold true.

I've done some playing around and have come to some formulas which hold quite true (remember tho, they're approximations) for certain values of x1 and x2. The problem I need to solve is finding equations 1 and 2 above.

When x1 = 0, y in terms of x2:
y = x2^2 + 0.2x2 + 0.94

When x1 = 1, y in terms of x2:
y = 15.07x2^2 - x2 + 0.94

When x2 = 0, y in terms of x1:
y = 17.5x1^2 - 3.5x1 +1.96

When x2 = 1, y in terms of x1:
y = 1.2x1^2 -0.22x1 + 0.94

So to repeat the problem, I need to know:
1) y in terms of x1 and x2
2) x1 in terms of y

And bare in mind that the figures I've arrived at are all approximations and may not meld well. Would anyone be kind enough (or feel challenged/bored enough!) able to solve these for me? Solving quadratics has never been a strong point of mine, and this is just a bit too complicated!!

2. Originally Posted by jodyflorian
Hi Folks,

It's been a long time since I last studied maths but have a problem that's a little but too much for my out-of-practice mind! Maybe someone can help me with the problem? Forgive me for not explaining it very well, it's pushing my understanding!!

Problem scenario (if interested I'm programmatically trying to control some hardware in Java. The hardware has a motor that rotates at seconds-per-rotation 'Y'. It has *two* factors controlling the speed, x1 and x2. I need 3 formulas that approximate the speed:

1) Y in terms of x1 and x2
2) x1 in terms of y (WITHOUT a given x2)
3) x2 in terms of y (WITHOUT a given x1)

The complications are:

Problem 1: for a given Y there are many x1/x2 combinations that would work. So for the last two formulas there are many possibilities, and I suggest a relationship below to come to a solvable equation for 2 and 3. The reason being, I'll need to find an x1 and x2, given a Y. And there are infinite possibilities)

Problem 2: For a the last two equations, a given Y has up to two possible values of x.

So here are the bounds:

0 <= x1 <= 1
0 <= x2 <= 1
0.94 <= Y <= 16

Which leads me to an adequate equation 3, which will be used to find equation 2.
x2 = (y - 0.94) / (16 - 0.94)

This doesn't hold true for equation one, but is an acceptable solution for finding a suitable x2 for a given y. To find x1 for that Y is then fairly trivial. The problem is that it doesn't help find an answer for equation 1 as it doesn't always hold true.

I've done some playing around and have come to some formulas which hold quite true (remember tho, they're approximations) for certain values of x1 and x2. The problem I need to solve is finding equations 1 and 2 above.

When x1 = 0, y in terms of x2:
y = x2^2 + 0.2x2 + 0.94

When x1 = 1, y in terms of x2:
y = 15.07x2^2 - x2 + 0.94

When x2 = 0, y in terms of x1:
y = 17.5x1^2 - 3.5x1 +1.96

When x2 = 1, y in terms of x1:
y = 1.2x1^2 -0.22x1 + 0.94

So to repeat the problem, I need to know:
1) y in terms of x1 and x2
2) x1 in terms of y

And bare in mind that the figures I've arrived at are all approximations and may not meld well. Would anyone be kind enough (or feel challenged/bored enough!) able to solve these for me? Solving quadratics has never been a strong point of mine, and this is just a bit too complicated!!

Assuming this is what you are asking

Equation 1
$\displaystyle y=x_2^2+x_2+.94$

so we get $\displaystyle y=\bigg(x_2+\frac{1}{2}\bigg)^2+.69$

So $\displaystyle y-.69=\bigg(x_2+\frac{1}{2}\bigg)^2\Rightarrow\sqrt{ y-.69}=\pm{x_2+\frac{1}{2}}$

I will finish/complete the others possibly if you respond saying that is what you are looking for

3. ## Thanks

Hi Mathstud28,

Thanks for giving it a go and for the quick reply. Sadly I'm afraid I don't see how the equations you arrived at are true - I need to know y in terms of x1 and x2, and your equations give y only in terms of x2?

The sample values (not 100% accurate) which I'm trying to create these formulas for are:

Edit: oops, table of values not displaying correctly. Please see:
http://jody.florian.co.uk/projects/e...ics/values.xls

So as you can see to work out Y I need both x1 and x2 values.

And as for working out x1 and x2, I don't know what the expression is but there are many possible solutions and all I need is one that gives values of x1 and x2 that can be fed into the last equation to get back the same value of y.

Thanks again