r/maths • • 4d ago

❓ General Math Help Simultaneous Equations

I have 5 simultaneous equations and 5 variables, so I know it should solve, but every variable is multiplied by another variable. so i have

[something linear 1] = ax

[something linear 2] = bx

[something linear 3] = cx

[something linear 4] = cy

[something linear 5] = by

I feel kind of stupid tbh, this feels like it should just fall into place, but the multiplication is really throwing me off. Any help is appreciated.

ok edit because people wanted more info:

a, b, c, x, y are the 5 variables i'm trying to solve for

ln((m-s)/(i-s)) = ax

ln((p-s)/(i-s)) = bx

ln((d-s)/(i-s)) = cx

ln((m-s)/(i-s)) = cy

(ln((p-s)/(i-s))ln((m-s)/(i-s)))/ln((d-s)/(i-s)) = by

where m, p, d, s, i are known constants and i consider an equation expressed in their terms a "solved" equation

i also have:

m = s + (v/(v+u))(d-s)ecz + (u/(v+u))(p-s)ebz

where m, s, d, p, v, and u are "known" values, e is e, c and z are variables i need to solve for, and (z - x) is a known (positive) value even if z and x are unknown.

also if it helps (?):

p < m < d

x < z < y

(i named x and y in this post before i decided to include z ok)

5 Upvotes

18 comments sorted by

2

u/Purdude1983 4d ago

It's still possible to work through. Set your 5 linear equations up as a 5 X 5 matrix and then take the inverse. You will then need to do the matrix multiplication against your right hand side. You will end up with 5 equations in terms the right hand side variables.

Are "a", "b' and "c" constants or other variables? Do "x" and "y" appear in the linear system on the left?

Feel free to show us some example problems of the form you describe.

1

u/IrishQueenFan 4d ago

a, b, c, x, y are the variables i'm attempting to solve for. i've put a more full version of what i'm working with in the post

1

u/Purdude1983 4d ago edited 4d ago

ln(ln((m-s)/(i-s))) = ln(a)+ln(x)

ln(ln((p-s)/(i-s))) = ln(b)+ln(x)

ln(ln((d-s)/(i-s))) = ln(c)+ln(x)

ln(ln((m-s)/(i-s))) = ln(c)+ln(y)

ln((ln((p-s)/(i-s))ln((m-s)/(i-s)))/ln((d-s)/(i-s))) = ln(b)+ln(y)

let...

A=ln(a)

B=ln(b)

C=ln(c)

X=ln(X)

y=ln(y)

you can produce a matrix for the right hand of the system above...

A B C X Y

1 0 0 1 0

0 1 0 1 0

0 0 1 1 0

0 0 1 0 1

0 1 0 0 1

but the 5 equations are not linearly independent, meaning that you cannot uniquely solve for all 5 variables.

The best you can do is pick one of the variables above, and then you can express the other 4 in terms of your variable of choice.

You then have to face your m=s... equation. If we choose x as our variable, we can get c and b in terms of x

and that will let you get Z.

There may be infinitely many solutions to your system.

2

u/DifficultAvocado6185 4d ago

Good question, and good news: it does solve, but only once you bring in your m-equation, because the five equations really carry four.

Assume (m−s)/(i−s), (p−s)/(i−s), (d−s)/(i−s) are positive (so the logs exist) and d ≠ i, and write L_m = ln((m−s)/(i−s)), L_p = ln((p−s)/(i−s)), L_d = ln((d−s)/(i−s)) (known numbers, L_d ≠ 0).

Step 1. The fifth equation holds automatically: b·y = (bx)(cy)/(cx) = L_p·L_m/L_d, which is exactly equation 5. So there are only four independent equations, which is why the scaling (x, y, a, b, c) → (tx, ty, a/t, b/t, c/t), t ≠ 0, that swiftaw77 noticed works. Everything in terms of x: a = L_m/x, b = L_p/x, c = L_d/x, y = x·L_m/L_d.

Step 2. The m-equation fixes x. With z = x + Δ (Δ = z − x known): cz = L_d(1 + Δ/x) and bz = L_p(1 + Δ/x). Put D = (d−s)/(i−s), P = (p−s)/(i−s), M = (m−s)/(i−s), α = v/(u+v), w = 2 + Δ/x. Dividing the m-equation by (i−s) gives M = α·Dw + (1−α)·Pw, one equation in one unknown w. f(w) = αDw + (1−α)Pw is convex (a sum of exponentials), so it has at most two roots; if D and P are both > 1 (or both < 1), f is strictly monotone and the root is unique. In general there's no closed form; Newton or bisection does it. f(0) = 1 and f(1) = αD + (1−α)P help bracket the root.

Step 3. x = Δ/(w − 2), z = x + Δ, then a, b, c, y from step 1. Check your inequalities at the end: x > 0 needs w > 2, and z < y means x + Δ < x·L_m/L_d.

Why there's exactly one free parameter, and what it means: the scaling (x, y) → t(x, y), (a, b, c) → (a, b, c)/t is a change of unit. If x and y are measured in some unit, a, b, c are in its inverse, and every product ax, bx, cx, cy, by is unit-free. Your four independent equations only see unit-free combinations, so they determine the solution up to the choice of unit and nothing else: the ratios y/x = L_m/L_d and a : b : c = L_m : L_p : L_d are fixed, the scale isn't. In my own work on measurement I prove this as a uniqueness theorem: a quantity derived from relational data is unique up to exactly a change of unit (plus a shift, where shifts are possible), and nothing else can change it without changing the data. Fixing the unit is a separate standardization step, and that's precisely the role of your m-equation: Δ = z − x is a fixed length in x's units, the one piece of data that isn't unit-free, so it picks out the single representative.

And you're not stupid 😶‍🌫️ at all for getting stuck: "5 equations, 5 unknowns" really is one equation short here until the m-equation comes in.

1

u/IrishQueenFan 4d ago

Omg I didn't at all notice that I only had 4 independent equations!! Thank you so much for this, I'll have to writ iit all out to see if I can understand it properly, lol. <3!!!!

1

u/DifficultAvocado6185 4d ago

You're very welcome, I'm really glad it helped! Writing it all out yourself is exactly the right move, that's where it actually clicks. If you get stuck anywhere while working through it, just reply here and I'll gladly go through that step with you. Good luck <3

1

u/mH48124 4d ago

まあ不定じゃ解けないよね。

1

u/DifficultAvocado6185 4d ago

Exactly! Underdetermined until the extra equation fixes the scale. Thanks!

3

u/ruidh 4d ago

There's a matrix method for solving large simultaneous equations. Look into that.

1

u/RobertFullerton 4d ago

I think Einstein misuses simultaneous equations in his book "Relativity: The Special and the General Theory." He does something like this: the distance traveled by a light beam traveling along the positive x-axis in the direction of increasing positive numbers is d= c(t) while the distance traveled by a light beam traveling along the negative x-axis in the direction of increasing negative numbers is d = -c(t). Then he goes on to make things more complicated by introducing other constants I believe. But the interesting item is should d = -c(t) be -d = -c(t) so when you add the simultaneous equations you get 0 = 0 instead of 2d = 0.

1

u/swiftaw77 4d ago

There is no unique solution to those sets for equations. because suppose that you have values for x,y,a,b,c that satisfy those equations, then Cx, Cy, a/C, b/C, and c/C also satisfy those equations.

0

u/IrishQueenFan 4d ago

the actual equations are kind of monsters to type into reddit but i'll do my best 😭. there are more components in terms of addition and dubtraction but i'm just gonna collapse those

ln(m/i) = xj

ln(b/i) = yj

ln(d/i) = zj

ln(m/i) = zk

(ln(b/i)ln(m/i))/ln(d/i) = yk

sounding like they might not solve after all ?? 😅😅 gdi

1

u/IrishQueenFan 4d ago

ohhhh mygod i forgot to say lmao m, b, d and i are all values i'm allowed to "assume"

2

u/slepicoid 4d ago

may be best if you type in the problem as is and name exactly which letters are constants and which are variables that we are solving for

1

u/IrishQueenFan 4d ago

i have edited the post to include that

1

u/Southlander24 4d ago

Those aren't linear equations. If you write the equation as ln(m/i) = xj, then ln is not a linear function. Similarly, if you write that equation as m/i = exj, then the exponential function is also not linear.

1

u/IrishQueenFan 4d ago

but m and i are "known", so ln(m/i) can just be taken as a constant? no?