Variation functions, algebra homework help