You can put this solution on YOUR website! First, please include the instructions for the problem. What are you/we supposed to do with this function?
Second, please use parentheses around numerators and denominators, especially if they are more than just a positive integer or variable. What you posted means:
while I suspect that you meant:
f(x)=(x-7)/(x^2-4x-12) or