|x-4|=2 equation
The teacher will be very surprised to see your correct solution 😉
The solution
Detail solution
For every modulo expressions in the equation
allow cases, when this expressions ">=0" or "<0",
solve the resulting equation.
1.
$$x - 4 \geq 0$$
or
$$4 \leq x \wedge x < \infty$$
we get the equation
$$\left(x - 4\right) - 2 = 0$$
after simplifying we get
$$x - 6 = 0$$
the solution in this interval:
$$x_{1} = 6$$
2.
$$x - 4 < 0$$
or
$$-\infty < x \wedge x < 4$$
we get the equation
$$\left(4 - x\right) - 2 = 0$$
after simplifying we get
$$2 - x = 0$$
the solution in this interval:
$$x_{2} = 2$$
The final answer:
$$x_{1} = 6$$
$$x_{2} = 2$$
Sum and product of roots
[src]
$$2 + 6$$
$$8$$
$$2 \cdot 6$$
$$12$$
$$x_{1} = 2$$
$$x_{2} = 6$$