To solve the equation \( x^2 + 2x = 4 \) by graphing, you can rearrange the equation into the standard form of a function.
First, move 4 to the left side of the equation:
\[ x^2 + 2x - 4 = 0 \]
Now, you can define a function \( f(x) \) based on the left side of the equation:
\[ f(x) = x^2 + 2x - 4 \]
To solve the equation \( x^2 + 2x = 4 \) by graphing, you would plot the function \( f(x) = x^2 + 2x - 4 \). The solutions to the equation correspond to the x-values where the graph of the function intersects the x-axis (i.e., where \( f(x) = 0 \)).