Think of the function of a generic parabola
$y^2=ax+by+c$
This is identified by three numbers. You have three points, if they don't lie on the same line (and they don't), you can use those points to determine the equation of the parabola passing through them.
First step.
Substitute each of your point in the parabola equation above:
$0 = c$
$1 = 2a+1b$
$4=3a+2b$
Second step.
Easily solve the system above to get the values a=-2 and b=5.
Therefore, one curve you are looking for is: $y^2=-2x+5y$.
PS. Also remember the following: given 3 points (not lying on the same line) there exists a unique circle passing through these points. So in case you want a circle instead, it's also possible to find the equation for that.
EDIT: Based on the comments I seem to understand you just want each of the two lines you have continuing indefinitely. In this case you have to compute the slope of each of them (that is the lines passing through (0,0) and (2,1) of slope 1/2, and the line passing through (2,1) and (3,2) of slope 1) and define a piecewise function something like:
$y(x)=\frac{1}{2}x$, for x<=2
$y(x)=x-1$ for x>2
This because your lines intersect in (4,2).