I dont want to turn this into Junior High math, but seriously, you cant replace an unknown variable, i.e. X, with "infinity". You can however represent infinity by using an open ended variable to the n'th power, i.e. X^n, but in logrithmic functions or when defining finite points on an open ended graph, i.e. Y=X^2