If we let t be the time, in hours, needed to charge the phone from 0% to full, then we have an equation t=I4. We say this equation defines a relation between time and current.
A relation between variables x and y is a set of points (x,y). Often, rather than listing points, relations are defined by rules that tell you the value of one variable in terms of another variable, like our example t=I4. This relation includes (I,t) points like (1,4), (2,2), and (3,34).
Theoretically, this relation also includes the point (−1,−4) even though we know this point does not make sense in context. Thus, you might define the relation as t=I4, where I≥0.
If a relation assigns exactly one output for each input value, then that relation is called a function. The time-current relation example is a function because, given any positive value for I, you could find the value of t. A non-example of a function would be y=±x because, given x=1, you could return either y=−1 or y=1.
Though the time to charge-current function is intuitive, many functions are harder to make sense of, which is why we study function theory - or the common properties and characteristics of functions.