Formula for distance between two perpendicular lines

Finding the distance between two parallel lines is to determine how far apart the lines are. This can be done by measuring the perpendicular distance between them. We may derive a formula using this approach and use this formula directly to find the shortest distance between two parallel lines. For two non-intersecting lines lying in the same plane, the shortest distance is the distance that is shortest of all the distances between two points lying on both lines. In this page, we will study the shortest distance between two lines in detail.

Show

Table of Content:

Distance between two Straight Lines

The distance between two straight lines in a plane is the minimum distance between any two points lying on the lines. In geometry, we often deal with different sets of lines such as parallel lines, intersecting lines or skew lines.

Distance between Two Parallel Lines The distance is the perpendicular distance from any point on one line to the other line.
Distance between Two Intersecting Lines The shortest distance between such lines is eventually zero.
Distance between Two Skew Lines The distance is equal to the length of the perpendicular between the lines.

Related Articles:

Straight Lines

3D Geometry

Distance Formula

Shortest Distance Between Two Parallel Lines

Formula to find distance between two parallel line:

Consider two parallel lines are represented in the following form :

y = mx + c1 …(i)

y = mx + c2 ….(ii)

Where m = slope of line

Then, the formula for shortest distance can be written as under :

\(\begin{array}{l}d = \frac{|c_2 – c_1|}{\sqrt{1+m^2}}\end{array} \)

If the equations of two parallel lines are expressed in the following way :

ax + by + d1 = 0

ax + by + d2 = 0

then there is a small change in the formula.

\(\begin{array}{l}d=\frac{\left | d_{2} -d_{1}\right |}{\sqrt{a^{2}+b^{2}}}\end{array} \)

Remark: The perpendicular distance between parallel lines is always a constant, so we can pick any point to measure the distance.

Proof

Consider two parallel lines given by

y = mx + c1 ..(i)

y = mx + c2 ..(ii)

Formula for distance between two perpendicular lines

Here line (i) intersects the x axis at A. So y = 0 at that point.

We can write (i) as 0 = mx + c1

So mx = -c1

x = -c1/m

The point A will be (-c1/m, 0). 

The perpendicular distance from A to line (ii) is the distance between line (i) and (ii).

Equation of line (ii) can be written as mx – y + c2 = 0

Comparing with general equation Ax+ By + C = 0

We get A = m, B = -1, C = c2

Here (x1, y1) = (-c1/m, 0)

The distance d = |(Ax1 + By1+C)/√(A2 + B2)|

= |(m(-c1/m) + -1(0) + c2)/√(m2 + 1)|

= |(-c1 + 0 + c2)/√(m2 + 1)|

= |(c2-c1)/√(1 + m2)|

In vector Form:

If

\(\begin{array}{l}\text{If}\ \vec{r}=\vec{a_1} + \lambda \vec{b}\ \text{and}\ \vec{r}=\vec{a_2} + \mu \vec{b}\end{array} \)

Then,

\(\begin{array}{l}d = |\frac{\vec{b} \times (\vec{a_2}-\vec{a_1})}{|\vec{b}|}|\end{array} \)

Shortest Distance Between Skew Lines

A set of lines that do not intersect each other at any point and are not parallel are called skew lines (also known as agonic lines). Such a set of lines mostly exist in three or more dimensions.

For Example: In the below diagram, RY and PS are skew lines among the given pairs.

Formula for distance between two perpendicular lines

Distance formula:

The distance between two lines of the form,

\(\begin{array}{l}\vec{l_{1}}= \vec{a_{1}}+t\vec{b_{1}}\end{array} \)

and 

\(\begin{array}{l}\vec{l_{2}}= \vec{a_{2}}+t\vec{b_{2}}\end{array} \)

is

\(\begin{array}{l}d=\frac{(\vec{b_{1}}\times \vec{b_{2}}).(\vec{a_{2}}-\vec{a_{1}})}{\left | \vec{b_{1}} \times \vec{b_{2}}\right |}\end{array} \)

Solved Examples

Example 1: Find the distance between two parallel lines y = x + 6 and y = x – 2.

Solution: Given equations are of the form, y = mx + c

Here, m = 1, c1 = 6, c2 = -2

Formula: d = |c1 – c2|/√(1 + m2)

Therefore, d = 8/√2 or 5.65 Units.

Example 2: Find the shortest distance between lines

\(\begin{array}{l}\vec{r} = \hat{i} + 2\hat{j} + \hat{k} + \lambda ( 2\hat{i} + \hat{j} + 2\hat{k})\end{array} \)

and

\(\begin{array}{l}\vec{r} = 2\hat{i} – \hat{j} – \hat{k} + \mu ( 2\hat{i} + \hat{j} + 2\hat{k})\end{array} \)

Solution:

Using formula,

\(\begin{array}{l}d = |\frac{\vec{b} \times (\vec{a_2}-\vec{a_1})}{|\vec{b}|}|\end{array} \)

Here,

\(\begin{array}{l}|\vec{b} \times (\vec{a_2}-\vec{a_1})| = \begin{vmatrix} i & j & k\\ 2 & 1 &2 \\ 1 & -3 &-2 \end{vmatrix}\end{array} \)

= |4i + 6j – 7k|

= √101

And

\(\begin{array}{l}|\vec{b}|= 3\end{array} \)

Therefore, d = √101/3

Let two parallel lines are represented by y = mx+c1 and y = mx+c2. The distance between the lines is given by d = |(c2-c1)/√(1 + m2)|.

Lines that do not intersect each other at any point and are not parallel are called skew lines. These lines exist in three dimensions.

The shortest distance between two intersecting lines is equal to 0.

Formula for distance between two perpendicular lines

Put your understanding of this concept to test by answering a few MCQs. Click ‘Start Quiz’ to begin!

Select the correct answer and click on the “Finish” button
Check your score and answers at the end of the quiz

Visit BYJU’S for all Maths related queries and study materials

0 out of 0 arewrong

0 out of 0 are correct

0 out of 0 are Unattempted

View Quiz Answers and Analysis

Example using perpendicular distance formula

(BTW - we don't really need to say 'perpendicular' because the distance from a point to a line always means the shortest distance.)

This is a great problem because it uses all these things that we have learned so far:

Formula for distance between two perpendicular lines


Download graph paper

The distance from a point (m, n) to the line Ax + By + C = 0 is given by:

`d=(|Am+Bn+C|)/(sqrt(A^2+B^2`

There are some examples using this formula following the proof.

Let's start with the line Ax + By + C = 0 and label it DE. It has slope `-A/B`.

Line DE with slope −A/B.

We have a point P with coordinates (m, n). We wish to find the perpendicular distance from the point P to the line DE (that is, distance `PQ`).

Perpendicular to straight line.

We now do a trick to make things easier for ourselves (the algebra is really horrible otherwise). We construct a line parallel to DE through (m, n). This line will also have slope `-A/B`, since it is parallel to DE. We will call this line FG.

Perpendicular and parallel constructions.

Now we construct another line parallel to PQ passing through the origin.

This line will have slope `B/A`, because it is perpendicular to DE.

Let's call it line RS. We extend it to the origin `(0, 0)`.

We will find the distance RS, which I hope you agree is equal to the distance PQ that we wanted at the start.

Perpendicular through origin.

Since FG passes through (m, n) and has slope `-A/B`, its equation is `y-n=-A/B(x-m)` or

`y=(-Ax+Am+Bn)/B`.

Line RS has equation `y=B/Ax.`

Line FG intersects with line RS when

`B/Ax=(-Ax+Am+Bn)/B`

Solving this gives us

`x=(A(Am+Bn))/(A^2+B^2`

So after substituting this back into `y=B/Ax,` we find that point R is

`((A(Am+Bn))/(A^2+B^2),(B(Am+Bn))/(A^2+B^2))`

Formula for distance between two perpendicular lines

NOTE: If you're on a phone, you can scroll any wide equations on this page to the right or left to see the whole expression.

Point S is the intersection of the lines `y=B/Ax` and Ax + By + C = 0, which can be written `y=-(Ax+C)/B`.

This occurs when (that is, we are solving them simultaneously)

`-(Ax+C)/B=B/Ax`

Solving for x gives

`x=(-AC)/(A^2+B^2)`

Finding y by substituting back into

`y=B/Ax`

gives

`y=B/A((-AC)/(A^2+B^2))=(-BC)/(A^2+B^2`

So S is the point

`((-AC)/(A^2+B^2),(-BC)/(A^2+B^2))`

The distance RS, using the distance formula,

`d=sqrt((x_2-x_1)^2+(y_2-y_1)^2`

is

`d=sqrt(((-AC)/(A^2+B^2)-(A(Am+Bn))/(A^2+B^2))^2+((-BC)/(A^2+B^2)-(B(Am+Bn))/(A^2+B^2))^2)`

`=sqrt(({-A(Am+Bn+C)}^2+{-B(Am+Bn+C)}^2)/(A^2+B^2)^2)`

`=sqrt( ((A^2+B^2)(Am+Bn+C)^2)/(A^2+B^2)^2)`

`=sqrt( ((Am+Bn+C)^2)/(A^2+B^2))`

`=(|Am+Bn+C|)/(sqrt(A^2+B^2))`

The absolute value sign is necessary since distance must be a positive value, and certain combinations of A, m , B, n and C can produce a negative number in the numerator.

So the distance from the point (m, n) to the line Ax + By + C = 0 is given by:

`d=(|Am+Bn+C|)/(sqrt(A^2+B^2`

Example 1

Find the perpendicular distance from the point (5, 6) to the line −2x + 3y + 4 = 0, using the formula we just found.

Answer

Example 2

Find the distance from the point `(-3, 7)` to the line

`y=6/5x+2`

Answer

We first need to express the given line in standard form.

`y=6/5x+2`

`5y = 6x + 10`

`6x - 5y + 10 = 0`

Using the formula for the distance from a point to a line, we have:

`d=(|Am+Bn+C|)/(sqrt(A^2+B^2`

`=(|(6)(-3)+(-5)(7)+10|)/sqrt(36+25)`

`=|-5.506|`

`=5.506`

So the required distance is `5.506` units, correct to 3 decimal places.

Need help solving a different Graphing problem? Try the Problem Solver.


Disclaimer: IntMath.com does not guarantee the accuracy of results. Problem Solver provided by Mathway.


Page 2

Perpendicular lines have the property that the product of their slopes is −1.

Formula for distance between two perpendicular lines

Mathematically, we say if a line has slope m1 and another line has slope m2 then the lines are perpendicular if

m1 × m2= −1

In the example at right, the slopes of the lines are `2` and `-0.5` and we have:

2 × −0.5 = −1

So the lines are perpendicular.

Opposite Reciprocal

Another way of finding the slope of a perpendicular line is to find the opposite reciprocal of the slope of the original line.

In plain English, this means turn the original slope upside down and take the negative.

You can explore the concept of perpendicular lines in the following JSXGraph (it's not a fixed image).

Drag any of the points A, B or C and observe the slopes m1, m2 of the 2 perpendicular lines.

You can move the graph up-down, left-right if you hold down the "Shift" key and then drag the graph.

Sometimes the labels overlap. It can't be helped!

If you get lost, you can always refresh the page.

What if one of the lines is parallel to the y-axis?

For example, the line y = 3 is parallel to the x-axis and has slope `0`. The line x = 3.6 is parallel to the y-axis and has an undefined slope.

The lines are clearly perpendicular, but we cannot find the product of their slopes. In such a case, we cannot draw a conclusion from the product of the slopes, but we can see immediately from the graph that the lines are perpendicular.

Formula for distance between two perpendicular lines

The same situation occurs with the x- and y-axes. They are perpendicular, but we cannot calculate the product of the 2 slopes, since the slope of the y-axis is undefined.

Exercise 1

A line L has slope `m = 4`.

a) What is the slope of a line parallel to L?

b) What is the slope of a line perpendicular to L?

Answer

a) Since parallel lines have the same slope, the slope will be `4`.

b) Using m1 × m2= -1, with m1 = 4, we obtain the value for m2:

`m_2=-1/(m_1)`

`=-1/4`

Exercise 2

A line passes through (-3, 9) and (4, 4). Another line passes through (9, -1) and (4, -8). Are the lines parallel or perpendicular?

Answer

The line through `(-3,9)` and `(4,4)` has slope

`m_1=(4-9)/(4-(-3))=(-5)/7`

The line through `(9,-1)` and `(4,-8)` has slope

`m_2=(-8-(-1))/(4-9)=(-7)/(-5)=7/5`

Now

`m_1m_2=(-5)/7xx7/5=-1`

Since the product of the slopes is `−1`, we conclude the lines are perpendicular.

Note: We could have sketched the lines to determine whether they were parallel or perpendicular.


Page 3

Horizontal major axis
Vertical major axis
Centre other than origin

Orbiting satellites (including the earth revolving around the sun, and the moon revolving around us) trace out elliptical paths.

Many buildings and bridges use the ellipse as a pleasing (and strong) shape.

Formula for distance between two perpendicular lines

Bridge with elliptical arch

One property of ellipses is that a sound (or any radiation) beginning in one focus of the ellipse will be reflected so it can be heard clearly at the other focus. You can see what this means in the following animation.

Copyright © www.intmath.com

Ellipses with Horizontal Major Axis

Ellipse with horizontal major axis (in blue) and showing the minor axis in magenta color.

The equation for an ellipse with a horizontal major axis is given by:

`x^2/a^2+y^2/b^2=1`

where `a` is the length from the center of the ellipse to the end the major axis, and `b` is the length from the center to the end of the minor axis.

The foci (plural of 'focus') of the ellipse (with horizontal major axis)

`x^2/a^2+y^2/b^2=1`

are at (-c,0) and (c,0), where c is given by:

`c=sqrt(a^2-b^2`

The vertices of an ellipse are at (−a, 0) and (a, 0).

x y (0, b) (0, -b)

Ellipse showing vertices and foci.

Ellipse as a locus

The ellipse is defined as the locus of a point `(x,y)` which moves so that the sum of its distances from two fixed points (called foci, or focuses) is constant.

We can produce an ellipse by pinning the ends of a piece of string and keeping a pencil tightly within the boundary of the string, as follows.

We start with these 2 foci:

Formula for distance between two perpendicular lines

We pin the ends of the string to the foci and begin to draw, holding the string tight:

Formula for distance between two perpendicular lines

Formula for distance between two perpendicular lines

Formula for distance between two perpendicular lines

Formula for distance between two perpendicular lines

Our complete ellipse is formed:

Formula for distance between two perpendicular lines


Download graph paper

Find the coordinates of the vertices and foci of

`x^2/100+y^2/64=1`

Sketch the curve.

Answer

Here, `a^2= 100`, so `a = ± 10`, so the vertices are at `(-10, 0)` and `(10, 0)`.

Now

`c=sqrt(a^2-b^2)`

`=sqrt(100-64)`

`=sqrt36`

`=6`

So the foci are at `(-6, 0)` and `(6, 0)`.

Ellipse with Vertical Major Axis

A vertical major axis means the ellipse will have greater height than width.

If the major axis is vertical, then the formula becomes:

`x^2/b^2+y^2/a^2=1`

We always choose our a and b such that a > b. The major axis is always associated with a.

Example 2 - Ellipse with Vertical Major Axis

Find the coordinates of the vertices and foci of

`25x^2+y^2=25`

Sketch the curve.

Answer

`25x^2+y^2=25`

`x^2+(y^2)/25=1`

So `b = 1` and `a = 5`. In this example, the major axis is vertical.

So the vertices are at `(0, -5)` and `(0, 5)`.

To find c, we proceed as before:

`c=sqrt(a^2-b^2)`

`=sqrt(25-1)`

`=sqrt24`

`=4.899`

So the foci are at `(0, -4.9)` and `(0, 4.9)`.

The foci (green dots) are very close to the vertices in this ellipse.

Example 3

Find the equation of the ellipse which has a minor axis of length 8 and a vertex at (0,-5).

Answer

We conclude that `a = 5` and `b = 4`. So the equation of the ellipse is:

`x^2/16+y^2/25=1`

Eccentricity

The eccentricity of an ellipse is a measure of how elongated it is. If the eccentricity approaches value 0, the curve becomes more circular, and if it approaches 1, the ellipse becomes more elongated.

We can calculate the eccentricity using the formula:

`text(eccentricity)=c/a`

Real Example

Formula for distance between two perpendicular lines

The Sun

The Earth revolves around the sun in an elliptical orbit, where the sun is at one of the foci. (This was discovered by Keppler in 1610).

The semi-major axis is approximately 149,597,871 km long and it is known that the ratio `c/a` is equal to `1/60`.

(i) What are the greatest and least distances the Earth is from the sun?

(ii) How far from the sun is the other focus?

(The "semi-major axis" means half of the major axis length. In our example, it is (close to) the "average" distance of the sun from the earth, and is also known as one A.U., or "astronomical unit".)

Answer

The closest we are to the sun is when we are at the vertex closest to the sun (point (150, 0) in the diagram below), and the furthest we are is when we are at the other vertex (point (−150, 0)).

x y Earth

Ellipse with minor axis of length 8 and vertex at (0,-5).

Note: In the graph, I have exaggerated the shape of the elliptical orbit (I squashed it a bit so it looks more elliptical) and the positions for the 2 foci are shown much further apart than they really are.

In the diagram above, units are in millions of kilometers.

The distance a = OA = 149,597,871 is the length of the semi-major axis of our ellipse.

We have assumed that the sun is at the right-hand focus, at the point (c, 0).

The vertices are at A (149 597 871, 0) and B (−149 597 871, 0).

We need to find c, to tell us where the foci are.

`c=a/60`

`=(1\ 495\ 97871)/60`

`=2,493,298`

So the foci are at the points `(-2\ 493\ 298, 0)` and `(2\ 493\ 298, 0).`

The closest we are to the sun is

`a-c= 149\ 597\ 871 − 2\ 493\ 298`

`= 147\ 104\ 573\ "km"

The furthest we are from the sun (distance from B to the sun) is:

`OB+ c = a + c`

`= 149\ 597\ 871 + 2\ 493\ 298`

` = 152 091 169\ "km"`

Part ii

The foci are `2 × c = 2 × 2\ 493\ 298` ` = 4\ 986\ 596` km apart.

The radius of the sun is around `1\ 400\ 000` km, so the 2nd focus is not all that much further out than the surface of the sun.

Our orbit is almost circular. (The eccentricity is very small at `1/60`).

Graphing the Ellipse

Note: To graph the ellipse above, I needed to find b, as follows:

`b=sqrt(a^2-c^2)`

`=sqrt(149\ 597\ 871^2-2\ 493 \ 298^2)`

`=149\ 577\ 092`

Using the formula for an ellipse,

`x^2/a^2+y^2/b^2=1`

the required curve is

`x^2/(149\ 597\ 871^2)+y^2/(149\ 577\ 092^2)=1`

Ellipses with Centre Other Than the Origin

Like the other conics, we can move the ellipse so that its axes are not on the x-axis and y-axis. We do this for convenience when solving certain problems.

For the horizontal major axis case, if we move the intersection of the major and minor axes to the point (h, k), we have:

`((x-h)^2)/a^2+((y-k)^2)/b^2=1`

The ellipse is as follows:

Ellipse with center (h, k).

Example 4

Sketch the ellipse with equation

`((x-1)^2)/25+((y+2)^2)/9=1`

Answer

We first observe that the centre of the ellipse will be at `(1, -2)`. The major axis will have length `10` (since `a = 5`) and the minor axis will be length `6` (since b = 3).

So the sketch is:

Conic section: Ellipse

How can we obtain an ellipse from slicing a cone?

We start with a double cone (2 right circular cones placed apex to apex):

Formula for distance between two perpendicular lines

When we slice one of the cones at an angle to the sides of the cone, we get an ellipse, as seen in the view from the top (at right).

Formula for distance between two perpendicular lines
Formula for distance between two perpendicular lines


Page 4

Area of a Circle

Diameter of a Circle

Circumference of a Circle

Before we jump into the various formulas for a circle. Let's quickly define what a circle really is and why it's important. The Math Open Reference defines a circle as;

"A line forming a closed loop, every point on which is a fixed distance from a center point."

However, if you were to search around you'd find varying research and definitions make it confusing to understand how to exactly define a circle. We break down the various definitions in our article on What is a Circle? We can simplify the above definition of a circle to;

A circle is, a set of points equal distrance (radius) from a fixed point (center point) on a plane.

Now that we have a set definition for a circle, let's quickly define the variables involved in the formulas of a circle.

Area of a Circle (variable: A) is the area within the circle.

Circumference (variable: C) is the perimeter of the circle.

Pi (variable: π) is the distance from the center of a circle to any point on the circumference.

Radius (variable: r) is the distance from the center point of a circle to any point on the circumference.

Diameter (variable: d) is the distance, passing through the center of the circle, from any one point on the circumference to another opposite point on the circumference, or put another way it's 2 times the radius of the circle.

With this foundational understanding, we can now walk through solving the various formulas of a circle.

The area of a circle formula can be expressed as follows:

A = π r2

Finding a circle's area is a helpful tool for measuring the space within the circumference of a circle. Let's break down the equation and define the variables. The area of a circle is represented as A . On the other side of the equation we have π (Pi) multiplied by r2 (radius) squared.

A common mnemonic for remembering this formula you have learned in school is: "Pie are squared". Repeat that a few times to ensure you can quickly recall it to calculate the area of a circle on your next test!

An example for how to solve for the radius (r) in the area of a circle formula can be found in our Basic Algebra - 5. Formulas and Literal Equations lesson.

The diameter of a circle formula can be expressed as follows:

D = 2 r

As mentioned above the diameter of a circle is simply two times the length of the radius of the circle. It's the longest distance between two points within the circumference of a circle.

The circumference of a circle formula can be expressed as follows:

C = 2πr

The circumference of a circle can be found by multiplying 2 times π multiplied by the radius r. The circumference is equally as important as the area of a circle equation in real life. Imagine a standing at the edge of a circular ice rink, you can skate from the edge to the center of the rink to find the radius, and continuing to the opposite edge you can find the diameter. Now, knowing Pi is a constant π = 3.14 you can now solve for all the circle formuals and find the skating rinks area, diameter, and circumference.

We can now advance to more complex circle formulas.

Circle, center (0, 0), radius r.

The circle with center (0, 0) and radius r has the equation:

x2 + y2 = r2

This means any point (x, y) on the circle will give the radius squared when substituted into the circle equation.

These formulas are a direct result of Pythagoras' Formula for the length of the hypotenuse of a right triangle.


Download graph paper

Sketch the circle x2 + y2 = 4.

Find the center and radius first.

Answer

Sketch the circle (x − 2)2 + (y − 3)2 = 16

Find the center and radius first.

Answer

Example 3

Sketch the circle (x + 4)2 + (y − 5)2 = 36

Answer

b. The General Form of the Circle

An equation which can be written in the following form (with constants D, E, F) represents a circle:

x2 + y2 + Dx + Ey + F = 0

This is called the general form of the circle.

Example 4

Find the centre and radius of the circle

x2 + y2 + 8x + 6y = 0

Sketch the circle.

Answer

Please revise Completing the Square first...

Our aim is to get the equation into the form: (x − h)2 + (y − k)2 = r2

We complete the square on the x-related portion and on the y-related portion, at the same time.

`x^2+y^2+8x+6y=0`

Group the x parts together and the y parts togther:

`(x^2+8x)+(y^2+6y)=0`

Complete the square on each of the x and y parts.

`(x^2+8x+16)+(y^2+6y+9)` `=16+9` `=25`

`(x+4)^2+(y+3)^2=5^2`

This is now in the format we require and we can determine the center and radius of the circle.

So the centre of the circle is (−4, −3) and the radius is 5 units.

2-2-4-6-8-1024-2-4-6-8xy(−4, −3)r = 5

Circle, center (−4, −3), radius 5.

Note that the circle passes through (0, 0). This is logical, since:

  1. The circle has radius 5
  2. Considering the right triangle formed by the points (−4, −3), (0, −3), and (0, 0), we can apply Pythagoras' Theorem and obtain: (−4)2 + (−3)2 = (5)2
  3. The formula for a circle follows from Pythagoras' Theorem.

Exercises

1. Find the equation of the circle with centre `(3/2, -2)` and radius `5/2`.

Answer

Centre `(3/2, -2)` radius `5/2`.

General form of the equation of a circle:

`(x-h)^2+(y-k)^2=r^2`

The required equation for this case:

`(x-3/2)^2+(y-(-2))^2=(5/2)^2`

`(x-3/2)^2+(y+2)^2=(5/2)^2`

There is no need to expand this out, since this is the most useful form of the equation.

2. Determine the centre and radius and then sketch the circle:

3x2 + 3y2 − 12x + 4 = 0

Answer

We complete the square as we did in an earlier example above.

First, we collect the x parts together and the y parts together, then divide throughout by 3.

`3x^2+3y^2-12x+4=0`

`3x^2-12x+3y^2+4=0`

`x^2-4x+y^2+4/3=0`

Then we complete the square on the x part. We do not need to do so for the y part because there is no single y term (only a y2 term).

`(x^2-4x+4)+y^2+4/3=4`

`(x-2)^2+y^2=4-4/3`

`(x-2)^2+y^2=8/3`

So the circle has centre `(2,0)` and has radius `sqrt(8/3)~~1.63`.

Circle, center (2, 0), radius 1.63.

3. Find the points of intersection of the circle

x2 + y2 − x − 3y = 0

with the line

y = x − 1.

Answer

We solve the 2 equations simultaneously by substituting the expression

`y = x -1`

into the expression

`x^2+y^2-x-3y=0`

[See some background to this at: Algebraic Solution of Systems of Equations.]

We have:

`x^2+(x-1)^2-x-3(x-1)=0`

`x^2+x^2-2x+1-x-3x+3=0`

`2x^2-6x+4=0`

`x^2-3x+2=0`

`(x-1)(x-2)=0`

So we see that the solutions for x are `x = 1` or `x = 2`. This gives the corresponding y-values of `y = 0` and `y = 1`.

So the points of intersection are at: `(1, 0)` and `(2, 1)`.

We can see that our answer is correct in a sketch of the situation:

12-1123-1xy(0.5, 1.5)(1, 0)(2, 1)

Circle, center (2, 0), radius 1.58.

Exercise for You

Where did (0.5, 1.5) for the center of the circle come from?

Conic section: Circle

How can we obtain a circle from slicing a cone?

Each of the lines and curves in this chapter are conic sections, which means the curves are formed when we slice a cone at a certain angle.

Formula for distance between two perpendicular lines

If we slice a cone with a plane at right angles to the axis of the cone, the shape formed is a circle.


Page 5

The parabola has many applications in situations where:

  • Radiation often needs to be concentrated at one point (e.g. radio telescopes, pay TV dishes, solar radiation collectors); or
  • Radiation needs to be transmitted from a single point into a wide parallel beam (e.g. headlight reflectors).

Here is an animation showing how parallel radio waves are collected by a parabolic antenna. The parallel rays reflect off the antenna and meet at a point (the red dot, labelled F), called the focus.

Click the "See more" button to see more examples. Each time you run it, the dish will become flatter.

Observe that the focus point, F, moves further away from the dish each time you run it.

The parabola is defined as the locus of a point which moves so that it is always the same distance from a fixed point (called the focus) and a given line (called the directrix).

[The word locus means the set of points satisfying a given condition. See some background in Distance from a Point to a Line.]

In the following graph,

  • The focus of the parabola is at `(0, p)`.
  • The directrix is the line `y = -p`.
  • The focal distance is `|p|` (Distance from the origin to the focus, and from the origin to the directrix. We take absolute value because distance is positive.)
  • The point (x, y) represents any point on the curve.
  • The distance d from any point (x, y) to the focus `(0, p)` is the same as the distance from (x, y) to the directrix.
  • The axis of symmetry of this parabola is the y-axis.

The Formula for a Parabola - Vertical Axis

Adding to our diagram from above, we see that the distance `d = y + p`.

xy(x, y)(0, p)y = −pppypfocus:directrix:dd

Note that d = y + p.

Now, using the Distance Formula on the general points `(0, p)` and `(x, y)`, and equating it to our value `d = y + p`, we have

`sqrt((x-0)^2+(y-p)^2)=y+p`

Squaring both sides gives:

(x − 0)2 + (y − p)2 = (y + p)2

Simplifying gives us the formula for a parabola:

x2 = 4py

In more familiar form, with "y = " on the left, we can write this as:

`y=x^2/(4p)`

where p is the focal distance of the parabola.

Now let's see what "the locus of points equidistant from a point to a line" means.

Each of the colour-coded line segments is the same length in this spider-like graph:

Each colored segment has the same length.

Don't miss Interactive Parabola Graphs, where you can explore concepts like focus, directrix and vertex.

Example 1 - Parabola with Vertical Axis


Download graph paper

Sketch the parabola

`y=x^2/2`

Find the focal length and indicate the focus and the directrix on your graph.

Answer

The focal length is found by equating the general expression for y

`y=x^2/(4p)`

and our particular example:

`y=x^2/2`

So we have:

`x^2/(4p)=x^2/2`

This gives `p = 0.5`.

So the focus will be at `(0, 0.5)` and the directrix is the line `y = -0.5`.

Our curve is as follows:

12-1-20.511.5-0.5xy(0, 0.5)y = −0.5focus:directrix:

Parabola y = 0.5x2.

Note: Even though the sides look as though they become straight as x increases, in fact they do not. The sides of a parabola just get steeper and steeper (but are never vertical, either).

Arch Bridges − Almost Parabolic

Formula for distance between two perpendicular lines

The Gladesville Bridge in Sydney, Australia was the longest single span concrete arched bridge in the world when it was constructed in 1964.

The shape of the arch is almost parabolic, as you can see in this image with a superimposed graph of y = −x2 (The negative means the legs of the parabola face downwards.)

Formula for distance between two perpendicular lines

[Actually, such bridges are normally in the shape of a catenary, but that is beyond the scope of this chapter. See Is the Gateway Arch a Parabola?]

Parabolas with Horizontal Axis

We can also have the situation where the axis of the parabola is horizontal:

xy(x, y)(p, 0)x = −pfocus:directrix:

Parabola with horizontal axis.

In this case, we have the relation: (not function)

y2 = 4px

[In a relation, there are two or more values of y for each value of x. On the other hand, a function only has one value of y for each value of x.]

The above graph's axis of symmetry is the x-axis.

Example 2 - Parabola with Horizontal Axis

Sketch the curve and find the equation of the parabola with focus (−2,0) and directrix x = 2.

Answer

Shifting the Vertex of a Parabola from the Origin

This is a similar concept to the case when we shifted the centre of a circle from the origin.

To shift the vertex of a parabola from (0, 0) to (h, k), each x in the equation becomes (x − h) and each y becomes (y − k).

So if the axis of a parabola is vertical, and the vertex is at (h, k), we have

(x − h)2 = 4p(y − k)

xy(h, k)x = 2focus:directrix:

Parabola (x − h)2 = 4p(y − k)

In the above case, the axis of symmetry is the vertical line through the point (h, k), that is x = h.

If the axis of a parabola is horizontal, and the vertex is at (h, k), the equation becomes

(y − k)2 = 4p(x − h)

xy(h, k)x = 2focus:directrix:

Parabola (y − k)2 = 4p(x − h)

In the above case, the axis of symmetry is the horizontal line through the point (h, k), that is y = k.

Exercises

1. Sketch `x^2= 14y`

Answer

2. Find the equation of the parabola having vertex (0, 0), axis along the x-axis and passing through (2, −1).

Answer

The curve must have the following orientation, since we know it has horizontal axis and passes through `(2, -1)`:

Parabola, vertex (0, 0), passing through (2, −1).

So we need to use the general formula for a parabola with horizontal axis:

`y^2= 4px`

We need to find `p`. We know the curve goes through `(2, -1)`, so we substitute:

`(-1)^2= 4(p)(2) `

→ `1 = 8p`

→ `p = 1/8`.

So the required equation is `y^2=x/2`.

3. We found above that the equation of the parabola with vertex (h, k) and axis parallel to the y-axis is

`(x − h)^2= 4p(y − k)`.

Sketch the parabola for which `(h, k)` is ` (-1,2)` and `p= -3`.

Answer

We will have vertex at `(-1,2)` and `p = -3` (so the parabola will be "upside down").

The vertex is at `(-1, 2)`, since we know the focal distance is | p | = 3.

We don't really need to find the equation, but as an exercise:

Using

`(x − h)^2 = 4p(y − k) `

We have:

`(x + 1)^2 = 4(-3)(y − 2) `

`x^2 + 2x + 1 = -12y + 24`

`12y = -x^2 − 2x − 1 + 24`

`y = (-x^2 − 2x + 23)/12`

Helpful article and graph interactives

See also: How to draw y^2 = x − 2?, which has an extensive explanation of how to manipulate parabola graphs, depending on the formula given.

Also, don't miss Interactive Parabola Graphs, where you can explore parabolas by moving them around and changing parameters.

Applications of Parabolas

Application 1 - Antennas

A parabolic antenna has a cross-section of width 12 m and depth of 2 m. Where should the receiver be placed for best reception?

Answer

Parabolic antenna, width 12 m, height 2m.

The receiver should be placed at the focus of the parabolic dish for best reception, because the incoming signal will be concentrated at the focus.

We place the vertex of the parabola at the origin (for convenience) and use the equation of the parabola to get the focal distance (p) and hence the required point.

In general, the equation for a parabola with vertical axis is

`x^2 = 4py.`

We can see that the parabola passes through the point `(6, 2)`.

Substituting, we have:

`(6)^2 = 4p(2)`

So `p = 36/8 = 4.5`

So we need to place the receiver 4.5 metres from the vertex, along the axis of symmetry of the parabola.

The equation of the parabola is:

`x^2 = 18y `

That is

`y = x^2 /18`

Application 2 - Projectiles

A golf ball is dropped and a regular strobe light illustrates its motion as follows...

Formula for distance between two perpendicular lines

We observe that it is a parabola. (Well, very close).

What is the equation of the parabola that the golf ball is tracing out?

Answer

First we get a set of data points from observing the height of the ball at various times from the graph (I've used the bottom of each circle as the data point):

t 0 2 4 6 8 10 12 14 16
h 0.2 4.3 8.2 10.9 12.3 12.5 11.6 9.5 6.0

Using Scientific Notebook, we can model the motion from the data points.

Using one of the Statistics tools in Scientific Notebook (Fit Curve to Data), we obtain:

`y = -0.51429 + 2.804x - 0.15013x^2`

Here's the graph of the model we just found:

2468101214161820-212345678910111213-1xy

Parabolic golf ball motion.

We can use this to find where the ball will be at any time during the motion. For example, when t = 2.5, the golf ball will have height 5.6 m. Also, we can predict when it will next bounce (at around time `18.5`), by solving for `y = 0`.

Using Excel to Model Curves

You can also use Microsoft Excel to module a parabola. After you plot the points, right-click on one of the points and choose "Add Trendline".

Choose Polynomial, degree 2. In "Options" you can get Excel to display the equation of the parabola on the chart.

Conic section: Parabola

All of the graphs in this chapter are examples of conic sections. This means we can obtain each shape by slicing a cone at different angles.

How can we obtain a parabola from slicing a cone?

We start with a double cone (2 right circular cones placed apex to apex):

Formula for distance between two perpendicular lines

If we slice a cone parallel to the slant edge of the cone, the resulting shape is a parabola, as shown.

Formula for distance between two perpendicular lines
Formula for distance between two perpendicular lines


Page 6

Formula for distance between two perpendicular lines
Cooling towers for a nuclear power plant have a hyperbolic cross-section.

[Image source: Flickr.]

A hyperbola is a pair of symmetrical open curves. It is what we get when we slice a pair of vertical joined cones with a vertical plane.

How do we create a hyperbola?

Take 2 fixed points A and B and let them be 4a units apart. Now, take half of that distance (i.e. 2a units).

Now, move along a curve such that from any point on the curve,

(distance to A) − (distance to B) `= 2a` units.

The curve that results is called a hyperbola. There are two parts to the curve.

Let's see how this works with some examples.

Example 1

Let the distance between our points A and B be 4 cm. For convenience in our first example, let's place our fixed points A and B on the number line at (0, 2) and (0, −2), so they are 4 units apart. In this case, a = 1 cm and 2a = 2 cm.

Now we start tracing out a curve such that P is a point on the curve, and:

distance PB − distance PA `= 2` cm.

We start at `(0, 1)`.

Shown below is one of the points P, such that `PB − PA = 2`.

Formula for distance between two perpendicular lines

If we continue, we obtain the blue curve:

Formula for distance between two perpendicular lines

Now, continuing our curve on the left side of the axis gives us the following:

Formula for distance between two perpendicular lines

We also have another part of the hyperbola on the opposite side of the x-axis, this time using:

distance PA − distance PB = 2.

Once again a typical point P is shown, and we can see from the lengths given that `PA − PB = 2`.

Formula for distance between two perpendicular lines

We observe that the curves become almost straight near the extremities. In fact, the lines `y=x/sqrt3` and `y=-x/sqrt3` (the red dotted lines below) are asymptotes:

Formula for distance between two perpendicular lines

[An asymptote is a line that forms a "barrier" to a curve. The curve gets closer and closer to an asymptote, but does not touch it.]

In Example 1, the points `(0, 1)` and `(0, -1)` are called the vertices of the hyperbola, while the points `(0, 2)` and `(0, -2)` are the foci (or focuses) of the hyperbola.

The equation of our hyperbola

For the hyperbola with a = 1 that we graphed above in Example 1, the equation is given by:

`y^2-x^2/3=1`

Notice that it is not a function, since for each x-value, there are two y-values.

We call this example a "north-south" opening hyperbola.

Where did this hyperbola equation come from?

The equation follows from the distance formula and the requirement (in this example) that distance PB − distance PA = 2.

Here's the proof.

Proof

For any point P(x, y) on the hyperbola,

`text(distance)\ PB=sqrt(x^2+(y+2)^2`

`text(distance)\ PA=sqrt(x^2+(y-2)^2`

Since PB − PA = 2 in our example, then:

`sqrt(x^2+(y+2)^2)-sqrt(x^2+(y-2))=2`

Rearrange:

`sqrt(x^2+(y+2)^2)=sqrt(x^2+(y-2))+2`

Square both sides:

`x^2+(y+2)^2` `=[x^2+(y-2)^2]` `+4sqrt(x^2+(y-2)^2)+4`

Expand brackets and simplify:

`2y-1=sqrt(x^2+(y-2)^2`

Square both sides again:

4y2 − 4y + 1 = x2 + y2 − 4y + 4

Simplifying gives the equation of our hyperbola:

`y^2-x^2/3=1`

The asymptotes (the red dotted boundary lines for the curve) are obtained by setting the above equation equal to `0`, rather than `1`.

`y^2-x^2/3=0`

This gives us the 2 lines:

`y=-x/sqrt3`, and   `y=x/sqrt3`

Interactive graph

See an interactive graph of this example, and the others on this page, here:

Hyperbola interactive graphs.

General Equation of North-South Hyperbola

For the hyperbola with focal distance 4a (distance between the 2 foci), and passing through the y-axis at (0, c) and (0, −c), we define

b2 = c2 − a2

Applying the distance formula for the general case, in a similar fashion to the above example, we obtain the general form for a north-south hyperbola:

`y^2/a^2-x^2/b^2=1`

Here's another example of a "north-south" hyperbola.

It's equation is:

y2 − x2 = 1

"North-South" hyperbola (in green) with its asymptotes (in magenta color).

Similar to Example 1, this hyperbola passes through `1` and `−1` on the y-axis, but it has a different equation and a slightly different shape (and different asymptotes). Where are the 2 foci for this hyperbola? We need to find the value of c.

By inspection (of the equation of this hyperbola), we can see a = 1 and b = 1. Using the formula given above, we have:

b2 = c2 − a2

So

12 = c2 − 12

c2 = 2

c = ±√2

So the points A and B (the foci) for this hyperbola are at A (0, √2) and B (0, −√2).

East-West Opening Hyperbola

By reversing the x- and y-variables in our second example above, we obtain the following equation.

Example 3

x2 − y2 = 1

This gives us an "East-West" opening hyperbola, as follows. Our curve passes through `-1` and `1` on the x-axis and once again, the asymptotes are the lines y = x and y = −x.

"East-West" hyperbola (in green) with its asymptotes (in magenta color).

The general formula for an East-West hyperbola is given by:

`x^2/a^2-y^2/b^2=1`

Note the `x` and `y` are reversed, compared the formula for the North-South hyperbola.

Don't miss the interactive graph of this example, and the others on this page, here:

Hyperbola interactive graphs.

Technical Definition of a Hyperbola

A hyperbola is the locus of points where the difference in the distance to two fixed foci is constant.

This technical definition is one way of describing what we were doing in Example 1, above.

Hyperbolas in Nature

Formula for distance between two perpendicular lines

Throw 2 stones in a pond. The resulting concentric ripples meet in a hyperbola shape.

More Forms of the Equation of a Hyperbola

There are a few different formulas for a hyperbola.

Considering the hyperbola with centre `(0, 0)`, the equation is either:

1. For a north-south opening hyperbola:

`y^2/a^2-x^2/b^2=1`

The slopes of the asymptotes are given by:

`+-a/b`

2. For an east-west opening hyperbola:

`x^2/a^2-y^2/b^2=1`

The slopes of the asymptotes are given by:

`+-b/a`

In Examples 2 & 3 given above, both a and b were equal to `1`, so the slopes of the asymptotes were simply ` ± 1` and our asymptotes were the lines y = x and y = −x.

What effect does it have if we change a and b?

Example 4

Sketch the hyperbola

`y^2/25-x^2/4=1`

Answer

First, we recognise that it is a north-south opening hyperbola, with a = 5 and b = 2 . It will look similar to Example 1 above, which was also a north-south opening hyperbola.

We need to find:

  • The y-intercepts (there are no x-intercepts for this example)
  • The asymptotes

y-intercepts: Simply let x = 0 in the equation given in the question:

`y^2/25-x^2/4=1`

We have:

`y^2/25=1`

Solving gives us 2 values (as expected):

y = -5 and y = 5

Alternatively, we note that the vertices of the hyperbola are a units from the centre of the hyperbola. In this example, it means our vertices will be at `x = 0` and y = -5 and y = 5.

Aymptotes: We have a north-south opening hyperbola, so the slopes of the asymptotes will be given by

`+-a/b`

In this example, a = 5 and b = 2. So the slopes of the asymptotes will be simply:

`-5/2` and `5/2`.

The equations for the asymptotes, since they pass through `(0, 0)`, are given by:

`y = -(5x)/2` and `y = (5x)/2`

So we are ready to include the above information on our graph:

Asymptotes and `y`-intercepts (& vertices in this case).

All that remains is to complete the arms of the hyperbola, making sure that they get closer and closer to the asymptotes, as follows:

"North-South" hyperbola (in green) with its asymptotes (in magenta color).

Even More Forms of the Equation of a Hyperbola

(1) Possibly the simplest equation of a hyperbola is given in the following example.

Example 5 - Equilateral Hyperbola

xy = 1

This is known as the equilateral or rectangular hyperbola.

Rectangular hyperbola. Asymptotes are the `x`- and `y`-axes.

Notice that this hyperbola is a "north-east, south-west" opening hyperbola. Compared to the other hyperbolas we have seen so far, the axes of the hyperbola have been rotated by 45°. Also, the asymptotes are the x- and y-axes.

Hyperbola with axis not at the Origin

(2) Our hyperbola may not be centred on (0, 0). In this case, we use the following formulas:

For a "north-south" opening hyperbola with centre (h, k), we have:

`((y-k)^2)/a^2-((x-h)^2)/b^2=1`

For an "east-west" opening hyperbola with centre (h, k), we have:

`((x-h)^2)/a^2-((y-k)^2)/b^2=1`

Example 6 - Hyperbola with Axes Shifted

Sketch the hyperbola

`((x-2)^2)/36-((y+3)^2)/64=1`

Answer

We note that this is an "east-west opening" hyperbola, with a = 6 and b = 8.

The center of this hyperbola will be at (2, -3), since h = 2 and k = -3 in this example.

The best approach is to ignore the shifting (for now) and figure out the other parameters for the hyperbola.

So I'm assuming (for this part) that the hyperbola is actually `X^2/36+Y^2/64=1`, and I'll use upper case X and Y.

The vertices of the parabola are found when Y = 0. This gives us X = -6 or X = 6.

The asymptotes will have slope `-8/6 = -4/3`, OR `8/6 = 4/3`.

Now we can sketch the asymptotes and the vertices, remembering to shift everything so that the center is (2, -3):

51015-5-10-1551015-5-10-15-20xy

Asymptotes, and vertices (-4,-3) and (8,-3).

Now for the hyperbola:

3. We could expand our equations for the hyperbola into the following form:

`Ax^2+ Bxy + Cy^2+ Dx + Ey + F` ` = 0` (such that `B^2>4AC`)

In the earlier examples on this page, there was no xy-term involved. As we saw in Example 5, if we do have an xy-term, it has the effect of rotating the axes. We no longer have "north-south" or "east-west" opening arms - they could open in any direction.

Example 7 - Hyperbola with Shifted and Rotated Axes

The graph of the hyperbola x2 + 5xy − 2y2 + 3x + 2y + 1 = 0 is as follows:

Shifted and rotated hyperbola.

We see that the axes of the hyperbola have been rotated and have been shifted from `(0, 0)`.

[Further analysis is beyond the scope of this section. ]

Exercise

Sketch the hyperbola

`x^2/9-y^2/16=1`

Answer

This is an east-west opening hyperbola, with a = 3 and b = 4. It will look similar to the east-west opening Example 3, given above.

x-intercepts: Letting y = 0 in the equation given in the question, and we have:

`x^2/9=1`

Solving gives us:

x = -3 and x = 3

Aymptotes: We have an east-west opening hyperbola, so the slopes of the asymptotes will be given by

`+-b/a`

In this example, a = 3 and b = 4. So the slopes of the asymptotes will be simply:

`-4/3` and `4/3`.

The equations for the asymptotes, since they pass through `(0, 0)`, are given by:

`y = -(4x)/3` and `y = (4x)/3`

Including the above information on our graph:

Asymptotes (in magenta color) and vertices.

Completing the hyperbola:

"East-West" hyperbola (in green) with its asymptotes (in magenta color).

Conic section: Hyperbola

How can we obtain a hyperbola from slicing a cone?

We start with a double cone (2 right circular cones placed apex to apex):

Formula for distance between two perpendicular lines

When we slice the 2 cones vertically, we get a hyperbola, as shown.

Formula for distance between two perpendicular lines


Page 7

We use the Distance Forumala to find the distance between any two points (x1,y1) and (x2,y2) on a cartesian plane.

Let's start with a right-angled triangle with hypotenuse length c, as shown:

Recall Pythagoras' Theorem, which tells us the length of the longest side (the hypotenuse) of a right triangle:

`c=sqrt(a^2+b^2)`

We use this to find the distance between any two points (x1, y1) and (x2, y2) on the cartesian (x-y) plane:

x y

The point B (x2, y1) is at the right angle. We can see that:

  • The distance between the points A(x1, y1) and B(x2, y1) is simply x2 − x1 and
  • The distance between the points C(x2, y2) and B(x2, y1) is simply y2 − y1.

x y

Distance from (x1, y1) to (x2, y2).

Using Pythagoras' Theorem we can develop a formula for the distance d.

The distance between (x1, y1) and (x2, y2) is given by:

`d=sqrt((x_2-x_1)^2+(y_2-y_1)^2`

Note: Don't worry about which point you choose for (x1, y1) (it can be the first or second point given), because the answer works out the same.

Interactive Graph - Distance Formula

You can explore the concept of distance formula in the following interactive graph (it's not a fixed image).

Drag either point A (x1, y1) or point C (x2, y2) to investigate how the distance formula works. As you drag the points the graph will automatically calculate the distance.

Length AB = x2 − x1

Length BC = y2 − y1

Length

Copyright © www.intmath.com

Example 1


Download graph paper

Find the distance between the points (3, −4) and (5, 7).

Answer

Here, x1 = 3 and y1 = −4; x2 = 5 and y2 = 7

So the distance is given by:

`d=sqrt((x_2-x_1)^2+(y_2-y_1)^2)`

`=sqrt((5-3)^2+(7-(-4))^2)`

`=sqrt(4+121)`

`=11.18`

Example 2

Find the distance between the points (3, −1) and (−2, 5).

Answer

This time, x1 = 3 and y1 = −1; x2 = −2 and y2 = 5

So the distance is given by:

`d=sqrt((x_2-x_1)^2+(y_2-y_1)^2)`

`=sqrt((-2-3)^2+(5-(-1))^2)`

`=sqrt(25+36)`

`=sqrt61`

`=7.8102`

Example 3

What is the distance between (−1, 3) and (−8, −4)?

Answer

In this example, x1 = −1 and y1 = 3; x2 = −8 and y2 = −4

So the distance is given by:

`d=sqrt((x_2-x_1)^2+(y_2-y_1)^2)`

`=sqrt((-8-(-1))^2+(-4-3)^2)`

`=sqrt(49+49)`

`=sqrt98`

`=9.899`

Example 4

Find k if the distance between (k,0) and (0, 2k) is 10 units.

Answer

This is the situation:

Formula for distance between two perpendicular lines

Applying the distance formula, we have:

`d=sqrt((x_2-x_1)^2+(y_2-y_1)^2)`

`=sqrt((2k-0)^2+(0-k)^2)`

`=sqrt(4k^2+k^2)`

`=sqrt(5k^2)`

Now `sqrt(5k^2)=10` so `5k^2=100`, giving:

k2 = 20

so

`k=+-sqrt(20)~~+-4.472`

We obtained 2 solutions, so there are 2 possible outcomes, as follows:

Formula for distance between two perpendicular lines


Page 8

Line with slope m and y-intercept b.

The slope-intercept form (otherwise known as "gradient, y-intercept" form) of a line is given by:

y = mx + b

This tells us the slope of the line is m and the y-intercept of the line is b.

Example 1

123-1-21234567xy12y = 2x + 4

Line with slope `2` and y-intercept `4`.

The line y = 2x + 4 has

  • slope `m = 2` and
  • y-intercept `b = 4`.

We do not need to set up a table of values to sketch this line. Starting at the y-intercept (`y = 4`), we sketch our line by going up `2` units for each `1` unit we go to the right (since the slope is `2` in this example).

To find the x-intercept, we let `y = 0`.

2x + 4 = 0

`x = -2`

We notice that this is a function. That is, each value of x that we have gives one corresponding value of y.

See more on Functions and Graphs.

x y

slope = m

`(x_1,y_1)`

Line with slope m and passing through (x1, y1).

We need other forms of the straight line as well. A useful form is the point-slope form (or point - gradient form). We use this form when we need to find the equation of a line passing through a point (x1, y1) with slope m:

y − y1 = m(x − x1)

Find the equation of the line that passes through `(-2, 1)` with slope of `-3`.

Answer

General Form of a Straight Line


Download graph paper

Another form of the straight line which we come across is general form:

Ax + By + C = 0

It can be useful for drawing lines by finding the y-intercept (put `x = 0`) and the x-intercept (put `y = 0`).

We also use General Form when finding Perpendicular Distance from a Point to a Line.

Example 3

Draw the line 2x + 3y + 12 = 0.

Answer

If `x = 0`, we have: `3y + 12 = 0`, so `y = -4`.

If `y = 0`, we have: `2x + 12 = 0`, so `x = -6`.

So the line is:

12-1-2-3-4-5-612-1-2-3-4-5xy

The line 2x + 3y + 12 = 0.

Note that the y-intercept is `-4` and the x-intercept is `-6`.

Exercises

1. What is the equation of the line perpendicular to the line joining (4, 2) and (3, -5) and passing through (4, 2)?

[Need a reminder? See the section on Slopes of Perpendicular Lines.]

Answer

The line joining `(4, 2)` and `(3, -5)` has slope `m=(-7)/(-1)=7` and is shown as a green dotted line.

123456-1-2-3-4-5-61234-1-2-3-4-5-6xy(4, 2)(3, −5)

Perpendicular lines.

We need to find the equation of the magenta (pink) line.

The line perpendicular to the green dotted line has slope `-1/7.`

The line through `(4, 2)` with slope `-1/7` has equation:

`y-2=-1/7(x-4)`

`=-x/7+4/7`

`y=-x/7+2 4/7`

2. If `4x − ky = 6` and `6x + 3y + 2 = 0` are perpendicular, what is the value of `k`?

Answer

(2) The slope of 4x − ky = 6 can be calculated by re-expressing it in slope-intercept form:

`y=4/kx-6/k`

So we see the slope is `4/k`.

The slope of `6x + 3y + 2 = 0` can also be calculated by re-expressing it in slope-intercept form:

`y=(-6)/3x-2/3=-2x-2/3`

So we see the slope is `-2`.

For the lines to be perpendicular, we need

`4/kxx-2=-1`

This gives `k = 8`.

The resulting line is `4x-8y=6`, which we can simplify to `2x-4y=3.` Here's the graph of the situation:

1 2 -1 -2 -3 -4 -5 -6 1 2 3 4 -1 -2 -3 -4 -5 x y

`6x+3y+2=0`

`2x-4y=3`

Perpendicular lines

Conic section: Straight line

Each of the lines and curves in this chapter are conic sections, which means the curves are formed when we slice a cone at a certain angle.

How can we obtain a straight line from slicing a cone?

Formula for distance between two perpendicular lines

We start with a double cone (2 right circular cones placed apex to apex):

Formula for distance between two perpendicular lines

If we slice the double cone by a plane just touching one edge of the double cone, the intersection is a straight line, as shown.


Page 9

0

A graph using polar coordinates

For certain functions, rectangular coordinates (those using x-axis and y-axis) are very inconvenient. In rectangular coordinates, we describe points as being a certain distance along the x-axis and a certain distance along the y-axis.

But certain functions are very complicated if we use the rectangular coordinate system. Such functions may be much simpler in the polar coordinate system, which allows us to describe and graph certain functions in a very convenient way.

Polar coordinates work in much the same way that we have seen in trigonometry (radians and arc length, where we used r and θ) and in the polar form of complex numbers (where we also saw r and θ).

Vectors also use the same idea. [See more in the Vectors in 2 Dimensions section.]

Converting polar and rectangular coordinates

In polar coordinates, we describe points as being a certain distance (r) from the pole (the origin) and at a certain angle (θ) from the positive horizontal axis (called the polar axis).

The coordinates of a point in polar coordinates are written as

(r, θ)

The graph of the point (r, θ) is as follows:

Formula for distance between two perpendicular lines

The point described in polar coordinates by `(2, (3π)/4)` would look like this:

Formula for distance between two perpendicular lines

We use polar graph paper for drawing points in polar coordinates.

NOTE: Angles can be in degrees or radians for polar coordinates.


Download graph paper

Example 2

Plot the points on the following polar grid:

a) (2, 60°)
b) (4, 165°)
c) (3, 315°)

Formula for distance between two perpendicular lines

Answer

Formula for distance between two perpendicular lines

Converting Polar and Rectangular Coordinates

The conversion from polar to rectangular coordinates is the same idea as converting rectangular form to polar form in complex numbers.

We've created an Polar to Rectangular Calculator that makes converting complex numbers in polar form to rectangular form easy if you don't have a handheld calculator.

We've written an overview for how to convert rectangular and polar forms using various handheld calculators in the complex numbers chapter.

Formula for distance between two perpendicular lines

From Pythagoras, we have: r2 = x2 + y2 and basic trigonometry gives us:

`tan\ theta=y/x` x = r cos θ y = r sin θ

So it is the same type of thing that we had with complex numbers.

We can use calculator directly to find the equivalent values.

Example 3

Convert the rectangular coordinates given by `(2.35, -7.81)` into polar coordinates.

Answer

Using calculator, we have:

`(2.35, -7.81)` rectangular `(8.16, -73.3^@)`

Sketch to check your answer!

(The sign " " means "is identically equal to".)

Example 4

Convert the polar coordinates given by `(4.27, 168^@)` into rectangular coordinates.

Answer

Using calculator, we have:

(4.27, 168o) polar (−4.18, 0.888) rectangular

Sketch to check your answer!