def secondary_potential_derivative_x(x, *args):
    """
    Dderivative of potential function perspective of secondary component along the x axis.

    :param x: (numpy.)float;
    :param args: Tuple (float, float, float); (synchronicity of secondary component, mass ratio, components distance)
    :return: (numpy.)float;
    """
    synchronicity, mass_ratio, d = args
    r_sqr, rw_sqr = x ** 2, (d - x) ** 2
    return -(x / r_sqr ** (3.0 / 2.0)) + mass_ratio * (d - x) / rw_sqr ** (
        3.0 / 2.0) - synchronicity ** 2 * (mass_ratio + 1) * (d - x
        ) + 1.0 / d ** 2
