How to solve an equations if it looks like as follows: $min\left\{d_1, max\{c_1,a_1*x+b_1\}\right\} + min\left\{d_2, max\{c_2,a_2*x+b_2\}\right\} + min\left\{d_3, max\{c_3,a_3*x+b_3\}\right\} = e$
2026-03-27 23:29:13.1774654153
Solve equations of combing min and max functions
81 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in NUMERICAL-METHODS
- The Runge-Kutta method for a system of equations
- How to solve the exponential equation $e^{a+bx}+e^{c+dx}=1$?
- Is the calculated solution, if it exists, unique?
- Modified conjugate gradient method to minimise quadratic functional restricted to positive solutions
- Minimum of the 2-norm
- Is method of exhaustion the same as numerical integration?
- Prove that Newton's Method is invariant under invertible linear transformations
- Initial Value Problem into Euler and Runge-Kutta scheme
- What are the possible ways to write an equation in $x=\phi(x)$ form for Iteration method?
- Numerical solution for a two dimensional third order nonlinear differential equation
Related Questions in PROBLEM-SOLVING
- How do you prevent being lead astray when you're working on a problem that takes months/years?
- How to prove the inequality $\frac{1}{n}+\frac{1}{n+1}+\cdots+\frac{1}{2n-1}\geq \log (2)$?
- How to solve higher order polynomial equations?
- Methods in finding invariant subspaces?
- Question about the roots of a complex polynomial
- Using a counting argument to prove some equalities? (Problem Solving)
- (Problem Solving) Proving $\sum_{k=0}^{n}(-1)^k\binom{n}{k}\frac{1}{k+m+1}=\sum_{k=0}^{m}(-1)^k\binom{m}{k}\frac{1}{k+n+1}$
- (Problem Solving) Proving $|x|^p +|y|^p \geq |x+y|^p$
- Each vertex of the square has a value which is randomly chosen from a set.
- Fill in the blanks
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
Each term $\min\{d_i, \max\{c_i, a_i x + b_i\}\}$ has two "corner points" $\frac{c_i-b_i}{a_i}$ and $\frac{d_i - b_i}{a_i}$ where its behavior changes. A reasonable first step is to sort all the corner points from least to greatest, remembering the term they came from.
This takes $O(n \log n)$ time for a function with $n$ terms, but after doing so, searching for a place where the function equals $e$ can be done in $O(n)$ time. This is pretty good, considering that evaluating the function at a single point takes $O(n)$ time all on its own! And if you have to solve the equation for many different values of $e$, the sorting only has to be done once.
Start by evaluating the function at a value of $x$ smaller than the first corner point. Here, each term is equal to either $c_i$ or $d_i$, depending on the sign of the slope $a_i$.
From here, iterate through the corner points from least to greatest, keeping track of two things:
When you reach a corner point, you can update the function value (using the previous function value and the current slope) and the slope (which changes by $\pm a_i$ when we reach a corner of the $i^{\text{th}}$ term).
If the previous function value was smaller than $e$, and the new function value is bigger than $e$, or vice versa, then we can interpolate between the current corner point and the previous corner point to find the place where the function value is equal to $e$. (Between two corners, the function is linear, with a slope we know.)
If we're going to be solving equations for the same function multiple times, we might as well save the function values at each corner point, after we've computed them once. Once we've done that, a bisection search will solve the equation in only $O(\log n)$ time. (To help the bisection search along, we should remember the location of the minimum and maximum value we've computed.)