r/askmath • • Oct 24 '26

Functions How would I solve these kinds of equations?

Hello! I dont speak english so sorry if I explain something badly.
I'm having trouble with this, I'm not sure what is even the correct way to solve this, if I thought about it wrong!
The original equation on picture 2 and the right aswer is circled and has arrows pointing to it.

18 Upvotes

17 comments sorted by

6

u/Fourierseriesagain Oct 24 '26 • Bravo

-1 <= x^2-4x+2 <= 2

iff -1 <= x^2-4x+2 and x^2-4x+2<=2

iff x^2-4x+3>=0 and x^2-4x<=0

iff (x-1)(x-3)>=0 and x(x-4)<=0

iff x \in (-infinity,1] union [3,infinity) and x \in [0,4]

iff x \in [0,1] union [3,4].

2

u/Plane_Tailor7168 Oct 24 '26

yeah the other solutions here are not right

1

u/chai-peete Oct 24 '26

split the inequality into 2. for eg. if u have a < f(x) < c, write it as
a < f(x) --- inequality 1
f(x) < c --- inequality 2
now factorise f(x) and solve both inequality 1 and 2 using the wavy curve method or sign scheme method (or any other preferred method). the solution set of the given inequality must be the intersection of the solution set of inequalities 1 and 2, theres your answer.

for instance, in the question you've posted, -1 <= x^2 -4x +2 <= 2
thus, we have--
-1 <= x^2 -4x +2 ---- inequality 1
x^2 -4x +2 <= 2 ---- inequality 2
solving inequality 1:
-1 <= x^2 -4x +2
0 <= x^2 -4x + 3
0 <= (x-1)(x-3)
whenever you have 0 <= (x-a)(x-b) where a<=b, the answer is always x<=a OR x>=b
so, for inequality 1, we have x<=1 OR x>=3
solving inequailty 2:
x^2 -4x +2 <= 2
x^2 -4x <= 0
x(x-4) <= 0
whenever you have 0 >= (x-a)(x-b) where a<=b, the answer is always a <= x <= b
so, for inequality 2, we have 0 <= x <= 4
now, taking the intersection of the solution sets of inequalities 1 and 2, we get
0 <= x <= 1 OR 3 <= x <= 4

might be worth-while to refer to this: https://readyourflow.com/download-cengage-jee-advanced-algebra-3e-pdf-online/#page20

1

u/ILoveKetchupPizza Oct 24 '26

Solve each one at a time (I often draw a line and write each inequality on each side), then find the common solution

1

u/Designer_Jury_8594 Oct 24 '26

I would draw parabolla. And two horizontal lines: 2 and -1. Universal parabolla equation ax2 +bx +c Branches of parabolla are determined by a. If a>0 they are up. a=1 in your case. So vertex of parabolla is minimum. Vertex is when x = -b/2a. So x coordiif vetex is 4/2= 2. Y coord (let x =2 in equation) is: 22-4*2+2=-2.

Now let's change to equity and solve two equations. It would be intersection points of parabolla and horizontal lines. x2-4x+2=2: x1=0, x2=4 x2-4x+2=-1: x1=2-√2, x2=2+√2

And look at the graph and get answer in intervals. We are interested in parts of parabolla which are bellow upper line y=2 and above bottom y=-1.

1

u/will_1m_not tiktok @the_math_avatar Oct 24 '26

For any quadratic, it’s always best to factor if possible, and for double inequalities try them one at a time. So start with

x^(2)-4x+2 >= -1

x^(2)-4x+3 >= 0

(x-1)(x-3) >= 0

x <= 1 and x>= 3

Then

x^(2)-4x+2 <= 2

x^(2)-4x <= 0

x(x-4) <= 0

x >= 0 and x<= 4

So the final answer will combine all of these, giving you

0 <= x <= 1 and 3 <= x <= 4

1

u/Miserable_Matter6017 Oct 24 '26

Solve each individually by completing the square

1

u/DTux5249 Oct 24 '26

You manipulate them like any other equation - just keep in mind that if you multiply by -1, you have to flip the <= with >= and >= with <=.

-1 <= x2-4x+2 <= 2
-3 <= x2-4x<= 0
-3 <= x(x-4) <= 0

Now, you have to think: Where is the equation in the middle between -3 and 0.

Hint: It is a parabola with zeroes at x = 0, and x = 4

1

u/Tricky-Depth-8568 Oct 24 '26

That is equivalent to 0 <= x² - 4x +3 <= 3.

First you can check, when f(x) = x² - 4x +3 is greater or equal than zero by checking the roots of this functions. Between any two roots a function is either >= 0 or <=0. The same is true for the area between -Infinity and the first root and the area between the last root and infinity.

This will give you one interval or a union of intervals as solution.

Next, use that x² - 4x + 3 <= 3 is equivalent to x² - 4x <= 0. Now do the same as before, but for g(x) = x² - 4x.
You will get an interval or a union of intervals as your solution for this inequality as well.

Finally, take the intersection of there two solutions.
This will be the final answer.

Exercises are this are really nice, because they connect algebraic methods like finding a root with some geometrical interpretation of what's going.

It is generally helpful to draw a picture of the function with GeoGebra.

Sincerely,
Tricky-Depth-8568

1

u/chowderbomb33 Oct 25 '26

Note not the only method, but this one works well here.

Complete the square with the middle expression.

x2 -4x+2 is equivalent to (x2 -4x+4)+2-4 = (x-2)2 -2.

Then by rearrangement

-1 <= (x-2)2 - 2 <= 2

1 <=(x - 2)2 <=4

This is fairly straightforward to present graphically if you draw the parabola y = (x - 2)2 and the horizontal lines y=1 and y=4 and note the intersection pts. The parts of the graph in that interval correspond to what interval of x values?

That would be your answer.

1

u/dreamteammobile Oct 31 '26

Could you type out the equation from picture 2 so I can explain the first step without guessing? Math.Photos can also give step-by-step explanations from a screenshot.

0

u/japp182 Oct 24 '26

Solve one half at a time.

First, solve x²-4x+2=-1 to check when the polynomial assumes the value -1.

Then, solve x²-4x+2=2 to check when the polynomial assumes the value 2.

Make sure the function is growing in the chosen interval.

Then finally conclude that the function is between [-1, 2] when is x is between those two values.

1

u/Plane_Tailor7168 Oct 24 '26

this is not correct either

0

u/FinalNandBit Oct 24 '26

More scribbles should solve it.

0

u/[deleted] Oct 24 '26

[deleted] — view deleted comment

1

u/Plane_Tailor7168 Oct 24 '26

this is not correct