r/maths • u/IrishQueenFan • 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)
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.
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.
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