I want to check if two expressions are equivalent with Mathematica. For example, is $2 x + 4 + 2$ equivalent to $2 (x + 2 + 1)$.
I tried the `===` operator, which I expected to return `True` in both examples.

```
In[]:= 2 x + 4 + 2 === 2 (x + 2 + 1)
Out[]:= False

```

```
In[]:= 2 x + 4 + 2 === x + 6 + x
Out[]:= True

```

I also tried `==` operator, which just returned the whole expression for one example and `True` for the other.

```
In[]:= 2 x + 4 + 2 == 2 (x + 2 + 1)
Out[]:= 6 + 2 x == 2 (3 + x)

```

```
In[]:= 2 x + 4 + 2 == x + 6 + x
Out[]:= True

```

So my question is there another operator/function that determines whether or not two expressions are equivalent.