'Examples
>>> from sympy.combinatorics.free_groups import free_group
>>> F, x, y = free_group("x, y")
>>> (x**4*y**-3).is_dependent(x**4*y**-2)
True
>>> (x**2*y**-1).is_dependent(x*y)
False
>>> (x*y**2*x*y**2).is_dependent(x*y**2)
True
>>> (x**12).is_dependent(x**-4)
True
See Also
is_independent'

def is_dependent(self, word):

    try:
        return (self.subword_index(word) != None)
    except ValueError:
        pass
    try:
        return (self.subword_index((word ** (-1))) != None)
    except ValueError:
        return False
