def normalize(n, f0_scale, f0val, df0dx):
    """ Normalizes objective functions and it's derivative.

    Args:
        n (:obj:`float`): Weight associated with function.
        f0_scale (:obj:`float`): Value of the function.
        f0val (:obj:`numpy.array`): Objective function.
        df0dx (:obj:`numpy.array`): Derivative value of the function.
    
    Returns:
        Normalized function and it's derivative.
    """
    f0val = n * 100 * f0val/f0_scale
    df0dx = n * 100 * df0dx/f0_scale
    return f0val, df0dx