A function may have more than one input. If a quantity depends on several things, we call it a function of several variables, and write expressions like $f(x,y)$ or $f(x,y,z)$. The key rule for understanding functions of several variables is the 6th pillar of calculus: One variable at a time! This is explained in the following video.