'Returns the first derivative of this function.'

def fdiff(self, argindex=1):

    if (argindex in (1, 2)):
        return self.args[(2 - argindex)]
    elif (argindex == 3):
        return S.One
    else:
        raise ArgumentIndexError(self, argindex)
