audio read-through Shifting Conics (Shifting any Equation in Two Variables)

The equations of conic sections have been thoroughly explored in prior sections. However, these conics were all conveniently ‘centered’ at the origin (giving the so-called ‘standard forms’):

By introducing just one new simple idea, any conic section (indeed, the graph of any equation in two variables) can be shifted up/down/left/right to any desired place in the coordinate plane.

A General Representation for Equations in Two Variables

Recall from Introduction to Equations and Inequalities in Two Variables that an equation in two variables requires substitution of two variables to determine its truth (true or false).

The graph of an equation in two variables ($\,x\,$ and $\,y\,$) is a picture of its solution set; it is the set of all points $\,(x,y)\,$ that make the equation true.

Every equation in two variables can be expressed in the form $\,F(x,y) = 0\,.$ Here, $\,F\,$ is a function of two variables—it takes two inputs, and gives a unique corresponding output.

To put an equation in this form, just re-arrange the equation to put all the terms on the left, thus getting $\,0\,$ on the right. Then, use the resulting left side to define the function $\,F\,.$

For example, consider the equation $\,y^2 = 2xy\,.$ First, rewrite as the equivalent equation $\,y^2 - 2xy = 0\,.$ Then, define $\,F(x,y) := y^2 - 2xy\,.$ The equation is now of the form $\,F(x,y) = 0\,$!

In particular, note that every conic section (parabolas, ellipses, hyperbolas) can be put in the form $\,F(x,y) = 0\,.$

$\,y = f(x)\,$ is a Special Case of $\,F(x,y) = 0$

You've been working with a special case of $\,F(x,y) = 0\,$ for years now!

For some equations (but not all), you can get an equivalent equation with $\,y\,$ all by itself on one side, and all the $\,x\,$ stuff on the other side. If you can do this, then the equation is of the (very familiar) form $\,y = f(x)\,.$

In the $\,y = f(x)\,$ situation, every $\,x\,$ has a unique corresponding $\,y\,$ that makes the equation true. Therefore, the graph of every equation of the form $\,y = f(x)\,$ passes the vertical line test.

Oh, so many familiar examples: $\,y = mx + b\,,$   $\,y = ax^2 + bx + c\,,$  $\,y = \sqrt{x}\,,$  $\,y = \frac{5x-1}{\root 3\of{1 - x^2}}\,,$  and on and on.

Note:  If a graph doesn't pass the vertical line test, then it doesn't have an equation of the form $\,y = f(x)\,.$

For equations of the form $\,y = f(x)\,,$ it's easier/more natural/more conventional to treat graphical transformations differently, depending on whether you're working with $\,x\,$ or with $\,y\,.$ If needed, review this earlier section for the different words used:

Transformations Involving $\,y\,$ for Equations of the Form $\,y = f(x)$

For transformations involving $\,y\,,$ we say:

‘DO THIS to the previous $\,y\,$ value’

For example, ‘add $\,3\,$ to the previous $y$-value’ changes ‘$\,y = x^2\,$’ into ‘$\,y = x^2 + 3\,$’, and the graph moves UP $\,3\,$ units.

Transformations involving $\,y\,$ are intuitive—they work the way you expect.

Transformations Involving $\,x\,$ for Equations of the Form $\,y = f(x)$

For transformations involving $\,x\,,$ we say:

‘REPLACE the previous $x$-values by ... ’

For example, ‘replace every $\,x\,$ by $\,x-3\,$’ changes ‘$\,y = x^2\,$’ into ‘$\,y = (x-3)^2\,$’. The graph moves to the right $\,3\,$ units (not to the left, as you might expect).

Transformations involving $\,x\,$ are counter-intuitive—they work ‘opposite’ the way you expect.

Transformations Involving $\,y\,$ for Equations that are not of the Form $\,y = f(x)$

When the appearance of $\,y\,$ in an equation gets more complicated, we need to switch gears:

To apply graphical transformations to any equation in $\,x\,$ and $\,y\,,$ (no matter how mixed-up the variables might be), just use the ‘replace every...’ language for both $\,x\,$ and $\,y\,.$

Then, both cases are counter-intuitive!

For example, consider the circle $\,x^2 + y^2 = 5\,.$

Want to shift it left four units? Replace every $\,x\,$ by $\,x \color{red}{+} 4\,.$

Want to shift it up three units? Replace every $\,y\,$ by $\,y \color{red}{-} 3\,.$

The new equation is:

$$(x+4)^2 + (y - 3)^2 = 5$$

Both counter-intuitive! Both against your intuition!

Why Does This Work?

It's easy to see why this works for any equation of the form $\,F(x,y) = 0\,,$ as follows:

Suppose we want to shift the graph of $\,F(x,y) = 0\,$ up three units. Does replacing every $\,y\,$ by $\,y - 3\,$ work? That is, does the new equation $\,F(x,y-3) = 0\,$ give the desired graph?

Let $\,(\hat x,\hat y)\,$ be a point on the graph of the original equation, $\,F(x,y) = 0\,.$ This means that when we substitute $\,\hat x\,$ for $\,x\,,$ and $\,\hat y\,$ for $\,y\,,$ the resulting equation is true.

Thus, the equation $\,F(\hat x,\hat y) = 0\,$ is true.

Repeat:  We know that the equation $\,F(\hat x,\hat y) = 0\,$ is true.

Does the point $\,(\hat x,\hat y + 3)\,$ lie on the graph of the new equation, $\,F(x,y-3) = 0\,$? It better, if the original graph really moves up $\,3\,$ units!

To answer: substitute the coordinates $\,(\hat x,\hat y + 3)\,$ into $\,F(x,y-3) = 0\,,$ and see if a true statement results:

$$ \begin{align} &\cssId{s79}{F(x\ ,\ y-3) = 0}\cr &\qquad\cssId{s80}{\text{(New equation)}}\cr\cr &\cssId{s81}{F\bigl(\hat x\ ,\ (\hat y + 3)-3\bigr) \overset{?}{=} 0}\cr &\qquad\cssId{s82}{\text{(Substitute $\,\hat x\,$ for $\,x\,$ and $\,\hat y+3\,$ for $\,y\,$)}}\cr\cr &\cssId{s83}{\color{red}{F(\hat x,\hat y) = 0}}\cr &\qquad\cssId{s84}{\text{(We know that this is true!!)}} \end{align} $$

Read through this several times (as needed) to make sure you get it. It's a simple idea, but a bit symbol-intensive—which makes it look harder than it really is.

Summary: Shifting any Equation in Two Variables Up/Down/Left/Right

Let $\,k \gt 0\,,$ and consider any equation in two variables ($\,x\,$ and $\,y\,$).

Replacing every$x$by$x\color{red}{+}k$shifts the graphleft$k$units.
Replacing every$x$by$x\color{red}{-}k$shifts the graphright$k$units.
Replacing every$y$by$y\color{red}{+}k$shifts the graphdown$k$units.
Replacing every$y$by$y\color{red}{-}k$shifts the graphup$k$units.

(All counter-intuitive!)

A Final Note: Applying the New Approach to the $\,y = f(x)\,$ Situation

If you really want, you can apply the ‘new’ approach to the ‘$\,y = f(x)\,$’ situation. (However, I think it's like killing a mosquito with a sledgehammer!)

Here's an example:

Want to shift $\,y = x^2\,$ up four units? Then, replace every $\,y\,$ with $\,y \color{red}{-} 4\,.$

This gives the new equation $\,y - 4 = x^2\,.$ Of course, this is equivalent to $\,y = x^2 + 4\,$!

Have Fun Shifting Equations in Two Variables at WolframAlpha

Just for fun, zip up to WolframAlpha. Type in any equation in two variables. (Try to stump it!)

Put a comma after this first equation. Then, type in the same equation, except with every $\,x\,$ replaced by (say) $\,x + 4\,,$ and every $\,y\,$ replaced by (say) $\,y - 7\,.$ What do you see?

If you want, cut-and-paste this sample:

3x^2 - 2xy + y^2 = 5 + x,   3(x+4)^2 - 2(x+4)(y-7) + (y-7)^2 = 5 + (x+4)

Here's what WolframAlpha gives you, for this sample:

WolframAlpha shifting conic example

The blue is the graph of the first equation.

The purple is the graph of the second equation.

Replacing every $\,x\,$ by $\,x + 4\,$ shifted the blue graph left $\,4\,$ units.

Replacing every $\,y\,$ by $\,y - 7\,$ shifted the blue graph up $\,7\,$ units.

Both are counter-intuitive!

Example: Graphing a Shifted Conic

Graph:

$x^2 + 6x + 12y + 3 = 0$

Solution:

To determine the type of conic, compare with

$$Ax^2 + Bxy + Cy^2 + Dx + Ey + F = 0$$

and use the conic discriminant.

Write ‘$\,x^2 + 6x + 12y + 3 = 0\,$’ as:

$$1x^2 + 0xy + 0y^2 + 6x + 12y + 3 = 0$$

Thus $\,A = 1\,,$ $\,B = 0\,,$ $\,C = 0\,$:

$$B^2 - 4AC = 0^2 - 4(1)(0) = 0$$

This is a parabola.

Using information about parabolas, the corresponding standard form is $\,x^2 = 4py\,.$

(If there was a $\,y^2\,$ term instead of an $\,x^2\,$ term, then the corresponding standard form would be $\,y^2 = 4px\,.$ )

We need to rewrite $\,x^2 + 6x + 12y + 3 = 0\,$ in the form $\,(x+a)^2 = 4p(y+b)\,$ for appropriate constants $\,a\,$ and$\,b\,.$

Complete the square on $\,x\,,$ and move the other terms to the right side:

$$ \cssId{s133}{x^2 + 6x + 12y + 3 = 0} $$

(Original equation)

$$ \cssId{s135}{x^2 + 6x\ \ \color{red}{\_\_\_\_\_\_\_} = -12y - 3} $$

(Leave space for the correct number to complete the square)

$$ \cssId{s137}{x^2 + 6x + \bigl(\frac{6}{2}\bigr)^2 = -12y - 3 + 9} $$

(Take coefficient of $\,x\,$ term, divide by $\,2\,,$ square; add to both sides)

$$ \cssId{s139}{(x+3)^2 = -12y + 6} $$

(Write left side as a perfect square)

$$ \cssId{s141}{(x+3)^2 = \color{red}{-12}y + 6\cdot\frac{\color{red}{-12}}{-12}} $$

(Multiply by $\,1\,$ on right side to make it easier to factor in next step)

$$ \cssId{s143}{(x + 3)^2 = -12(y - \frac 12)} $$

(Factor $\,-12\,$ out of right side)

At this point, you would graph the unshifted version, $\,x^2 = -12y\,,$ using standard techniques.

Then, shift left $\,3\,$ (replace $\,x\,$ by $\,x + 3\,$) and up $\,\frac 12\,$ (replace $\,y\,$ by $\,y - \frac 12\,$). Done!!

Alternative Language for Shifting Up/Down/Left/Right

Sometimes it's easier to use different language for shifting:

This alternative language is used in some of the exercises below.

Concept Practice