import math


def linear_transform(x, alpha: float = (math.e - 1), beta: float = 1):
    """
    Mapping x to alpha * x + beta, which transforms [l,r] to [alpha * l + beta, alpha * r + beta]
    """
    return alpha * x + beta