This function has two separate branches (not connected together):
func = ConditionalExpression[1/(1 - 2 x)^2, 0 < x < 1];
Given a range of x, for example:
range = {0.2, 0.3};
how can I extract the branch of func that this range belongs to
(all points of the range should be belong to the branch)?
For instance, with the range above, the expected output would be:
ConditionalExpression[1/(1 - 2 x)^2, 0 < x < 1/2]
I’m looking for a robust method. One idea I had was:
FunctionDomain[ConditionalExpression[1/(1 - 2 x)^2, 0 < x < 1], x]
(* 0 < x < 1/2 || 1/2 < x < 1 *)
and then separate the branches using ||, but I’m not sure if that’s reliable.



