Optimize the following Python code by replacing redundant computations.
def complex_computation(x):
    tmp1 = 2 * x
    tmp2 = x * x
    return tmp1 + tmp2
def complex_computation(x):
    return x * (2 + x)