Solveeit Logo

Question

Question: How do you graph \[f\left( x \right) = {\left( {x + 2} \right)^2}?\]...

How do you graph f(x)=(x+2)2?f\left( x \right) = {\left( {x + 2} \right)^2}?

Explanation

Solution

The given question describes the operation of addition/ subtraction/ multiplication/ division. Also, this problem involves the operation of substituting the xx values in the given equation to find yy values. Also, yy is the fraction of xx. By using the values of xx and yy we can easily draw the graph. To make easy calculations we can simplify the given equation by using algebraic formulas.

Complete step by step solution:
The given question is shown below,
y=f(x)=(x+2)2(1)y = f\left( x \right) = {\left( {x + 2} \right)^2} \to \left( 1 \right)
We know that,
(a+b)2=a2+b2+2ab{\left( {a + b} \right)^2} = {a^2} + {b^2} + 2ab
By using the above-mentioned algebraic formula we can simplify the equation (1)\left( 1 \right) as follows,
(1)y=(x+2)2\left( 1 \right) \to y = {\left( {x + 2} \right)^2}

y=x2+2×2×x+22 y=x2+4x+4(2) y = {x^2} + 2 \times 2 \times x + {2^2} \\\ y = {x^2} + 4x + 4 \to \left( 2 \right) \\\

We would draw the graph for the above equation.
As a first step, we would assume xx value as given below,
x=...2,1,0,1,2,.....x = ... - 2, - 1,0,1,2,.....
By substituting the above-mentioned xx values in the equation (2)\left( 2 \right), we can find the yy values.
Let’s substitute x=2x = - 2 in the equation (2)\left( 2 \right), we get
(2)y=x2+4x+4\left( 2 \right) \to y = {x^2} + 4x + 4

y=(2)2+(4×2)+4 y=48+4 y=0 y = {\left( { - 2} \right)^2} + \left( {4 \times - 2} \right) + 4 \\\ y = 4 - 8 + 4 \\\ y = 0 \\\

Let’s substitutex=1x = - 1 in the equation (2)\left( 2 \right), we get
(2)y=x2+4x+4\left( 2 \right) \to y = {x^2} + 4x + 4

y=(1)2+4(1)+4 y=14+4 y=1 y = {\left( { - 1} \right)^2} + 4\left( { - 1} \right) + 4 \\\ y = 1 - 4 + 4 \\\ y = 1 \\\

Let’s substitute x=0x = 0 in the equation (2)\left( 2 \right), we get
(2)y=x2+4x+4\left( 2 \right) \to y = {x^2} + 4x + 4

y=(0)2+4(0)+4 y=4 y = {\left( 0 \right)^2} + 4\left( 0 \right) + 4 \\\ y = 4 \\\

Let’s substitute x=1x = 1 in the equation (2)\left( 2 \right), we get
(2)y=x2+4x+4\left( 2 \right) \to y = {x^2} + 4x + 4

y=(1)2+4(1)+4 y=9 y = {\left( 1 \right)^2} + 4\left( 1 \right) + 4 \\\ y = 9 \\\

Let’s substitute x=2x = 2 in the equation (2)\left( 2 \right), we get
(2)y=x2+4x+4\left( 2 \right) \to y = {x^2} + 4x + 4

y=(2)2+(4×2)+2 y=4+8+2 y=14 y = {\left( 2 \right)^2} + \left( {4 \times 2} \right) + 2 \\\ y = 4 + 8 + 2 \\\ y = 14 \\\

Let’s make a tabular column by using thexxandyyvalues as given below,

xx2 - 21 - 1001122
yy001144991414

By using these points we can easily draw the graph.

The above graph represents the equation y(x)=(x+2)2y\left( x \right) = {\left( {x + 2} \right)^2}

Note: In this type of question we would assume xx value, by using the xx value we can find the value of yy. The graph could be based on the equation. yy is the function of xx. So, yy also can be written as f(x)f\left( x \right). Note that y=x2y = {x^2} the form equation always makes a parabolic shape in the graph sheet. Remember the algebraic formula (a+b)2=a2+b2+2ab{\left( {a + b} \right)^2} = {a^2} + {b^2} + 2ab.