def square_der_fun(x, b):
    """
    linear function of the form y = 2bx, with x the observation vector and
    b the parameter vector.
    
    Parameters
    ----------
    x : data
    b : parameters

    Returns
    -------
    2*x*b.transpose()
    """

    return  2*x*b.transpose()