Solveeit Logo

Question

Question: How do you graph \(y = {x^2} + 5x + 3?\)...

How do you graph y=x2+5x+3?y = {x^2} + 5x + 3?

Explanation

Solution

First of all, convert the given equation into a sum of two variables. Then draw a graph of y=x2y = {x^2} and then shift the graph rightward or left according as the term present in the square is subtracted or added with a variable. Then see if there is a constant left in the equation, if yes then shift the graph upward or downward according as the constant is being added or added. You will get the required graph.

Complete step by step solution:
In order to draw the graph of the given equation y=x2+5x+3y = {x^2} + 5x + 3 we will first simplify the equation as follows
y=x2+5x+3 y=x2+2×52x+3  \Rightarrow y = {x^2} + 5x + 3 \\\ \Rightarrow y = {x^2} + 2 \times \dfrac{5}{2}x + 3 \\\
Now, adding and subtracting (52)2{\left( {\dfrac{5}{2}} \right)^2} in the right hand side of the equation in order to make a perfect square.
y=x2+2×52x+(52)2(52)2+3 y=(x+52)225+124 y=(x+52)2134  \Rightarrow y = {x^2} + 2 \times \dfrac{5}{2}x + {\left( {\dfrac{5}{2}} \right)^2} - {\left( {\dfrac{5}{2}} \right)^2} + 3 \\\ \Rightarrow y = {\left( {x + \dfrac{5}{2}} \right)^2} - \dfrac{{25 + 12}}{4} \\\ \Rightarrow y = {\left( {x + \dfrac{5}{2}} \right)^2} - \dfrac{{13}}{4} \\\
Now, we have simplified the equation in perfect square, so to draw the graph we will first plot the graph of y=x2y = {x^2}

Now if we replace the argument of the function y=x2y = {x^2} with x+52x + \dfrac{5}{2} then it will be expressed a y=(x+52)2y = {\left( {x + \dfrac{5}{2}} \right)^2}, since we have added 52\dfrac{5}{2} in the argument of the function, so we have to shift its graph 52\dfrac{5}{2} units left as follows

Now, we will subtract 134\dfrac{{13}}{4} from the equation y=(x+52)2y = {\left( {x + \dfrac{5}{2}} \right)^2}, that is y=(x+52)2134y = {\left( {x + \dfrac{5}{2}} \right)^2} - \dfrac{{13}}{4}
So shifting the graph 134\dfrac{{13}}{4} units downward, we will get

So this is the required graph.

Note:
The graph is being shifted to left or right side when a constant is being added or subtracted from the argument respectively and the graph is being shifted to downward or upward when a constant is being subtracted or added in the output of the equation.