Express in exponential form:

-3log5(z)-x^2=2x+1

-3log5z = (x+1)^2

log5z = -(x+1)^2 / 3
z = 5^[-(x+1)^2 / 3] = 1/5^[(x+1)^2 / 3]