they are both functions.. when i was taking algebra my teacher taught me the straight edge trick.. you take a ruler and run it across the graph, if the ruler touches more than one point on the graph at one time, it is not a function.. but since the ruler did not touch more than one point at one time on both of these, they are both functions.