# Numerical Solution to an Algebraic Function [closed]

Basically I am trying to solve an algebraic function of the form y[x]=x^2+5x+7 with some initial conditions and I want to find y[x] in the region where x goes from 1 to 50. What is the right command and syntax to use for this? I am a little confused. I realize that NDSolve is for differential equations, while the format of NSolve does not allow me to enter initial conditions/range? So what's the right command to use.

## closed as off-topic by Daniel Lichtblau, Henrik Schumacher, José Antonio Díaz Navas, m_goldberg, ilianMar 9 '18 at 2:17

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Henrik Schumacher, m_goldberg, ilian
If this question can be reworded to fit the rules in the help center, please edit the question.

• As I read your question, all you have to do is evaluate y[x_] := x^2 + 5 x + 7 $\quad$Then you can evaluate y for any numerical value; for example, y[2] will return 21 – m_goldberg Mar 8 '18 at 4:27

You have the solution for y[x].
y[x_] := x^2 + 5 x + 7;

Plot[y[x], {x, 1, 50}]