Solveeit Logo

Question

Question: Plot a graph for the equation \[y = {x^2} - 4x\]....

Plot a graph for the equation y=x24xy = {x^2} - 4x.

Explanation

Solution

Here we need to plot the given equation. For that, we will first simplify the equation and after simplification, we will find that the given equation is the equation of an upward parabola and its vertex is not at the center. We will write the equation in standard form and from there, we will find the vertex of the parabola and then we will find the point of the curve with both the coordinates. After obtaining the points, we will plot the graph accordingly.

Complete step by step solution:
Here we need to plot the graph of the given equation y=x24xy = {x^2} - 4x.
We will first simplify the equation and we will write it in the standard form.
Now we will add 4 on both sides of the equation. Therefore, we get
y+4=x24x+4\Rightarrow y + 4 = {x^2} - 4x + 4
Rewriting the equation, we get
y+4=x222x+22\Rightarrow y + 4 = {x^2} - 2 \cdot 2 \cdot x + {2^2}
Using the algebraic identity (ab)2=a2+b22ab{\left( {a - b} \right)^2} = {a^2} + {b^2} - 2 \cdot a \cdot b, we get
y+4=(x2)2\Rightarrow y + 4 = {\left( {x - 2} \right)^2}
Rewriting the equation, we get
(x2)2=y(4)\Rightarrow {\left( {x - 2} \right)^2} = y - \left( { - 4} \right) ………. (1)\left( 1 \right)
We can see that the given equation is the equation of the upward parabola and it is a shifted parabola i.e. vertex is not at the center.
We know that the equation of shifted upward parabola is given by (xh)2=yk{\left( {x - h} \right)^2} = y - k.
Here, vertex of this shifted upward parabola is (h,k)\left( {h,k} \right).
Comparing this general equation with standard equation, we get the vertex of the shifted upward parabola as (2,4)\left( {2, - 4} \right).
Now, we will first find the intersection of the parabola with xx axis by the putting the value y=0y = 0 in the equation of the parabola i.e. in equation (1)\left( 1 \right).
(x2)2=0(4)\Rightarrow {\left( {x - 2} \right)^2} = 0 - \left( { - 4} \right)
On further simplification, we get
(x2)2=4\Rightarrow {\left( {x - 2} \right)^2} = 4
Now, taking square roots on both sides, we get
(x2)2=4 x2=2\begin{array}{l} \Rightarrow \sqrt {{{\left( {x - 2} \right)}^2}} = \sqrt 4 \\\ \Rightarrow x - 2 = 2\end{array}
On adding 2 on both sides, we get
x2+2=2+2 x=4\begin{array}{l} \Rightarrow x - 2 + 2 = 2 + 2\\\ \Rightarrow x = 4\end{array}
Therefore, point of intersection of the parabola with the xx axis is equal to (0,4)\left( {0,4} \right).
Similarly, we will first find the intersection of the parabola with yy axis by the putting the value x=0x = 0 in the equation of the parabola i.e. in equation (1)\left( 1 \right).
(02)2=y(4)\Rightarrow {\left( {0 - 2} \right)^2} = y - \left( { - 4} \right)
On further simplification, we get
4=y+4\Rightarrow 4 = y + 4
On subtracting 4 from both sides, we get
44=y+44 0=y y=0\begin{array}{l} \Rightarrow 4 - 4 = y + 4 - 4\\\ \Rightarrow 0 = y\\\ \Rightarrow y = 0\end{array}
Therefore, point of intersection of the parabola with the yy axis is equal to (0,0)\left( {0,0} \right)
Now, we will plot the graph using all these points.

This is the required plot of the given equation.

Note:
The given equation is an equation of upward parabola. A parabola is a type of conic shape or a U-shaped plane curve in which any point is at an equal distance from a fixed point and from a fixed straight line known as the directrix. In order to plot any graph we always find the point of intersection of the graph with the coordinate axes.