# Nakafa Learning Content

> For AI agents: use [llms.txt](https://nakafa.com/llms.txt) for the site index. Markdown versions are available by appending `.md` to content URLs or sending `Accept: text/markdown`.

URL: https://nakafa.com/en/subjects/mathematics/analytic-geometry/hyperbola
Source: https://raw.githubusercontent.com/nakafaai/nakafa.com/refs/heads/main/packages/contents/material/lesson/mathematics/analytic-geometry/hyperbola/en.mdx

Learn hyperbola concepts: foci, asymptotes, and equations x²/a² - y²/b² = 1. Learn eccentricity, vertices, and solve problems with worked examples.

---

## What is a Hyperbola?

Have you ever seen the shape of cooling towers at power plants? Or perhaps noticed the shadow of a flashlight on the wall forming an open curve? Well, shapes like these are examples of **hyperbolas** in real life!

A hyperbola is a curve formed when a plane cuts through a double cone at a certain angle. Unlike an ellipse which forms a closed curve, a hyperbola is actually formed from **two separate curves** that face each other.

Mathematically, a hyperbola is defined as the locus of points where **the absolute difference of distances to two fixed points is always constant**. These two fixed points are called the **foci** of the hyperbola. For every point $$P$$ on the hyperbola, the difference $$|PF_1 - PF_2| = 2a$$ (constant), whereas in an [ellipse](/en/subjects/mathematics/analytic-geometry/ellipse) the sum of distances is constant: $$PF_1 + PF_2 = 2a$$.

Visible text: Mathematically, a hyperbola is defined as the locus of points where **the absolute difference of distances to two fixed points is always constant**. These two fixed points are called the **foci** of the hyperbola. For every point on the hyperbola, the difference (constant), whereas in an [ellipse](/en/subjects/mathematics/analytic-geometry/ellipse) the sum of distances is constant: .

Component: LineEquation
Props:
- title: Basic Concept of Hyperbola
- description: Hyperbola with two foci showing constant difference in distances
- data: [
{
points: (() => {
const points = [];
const a = 3;
const b = 2;
const c = Math.sqrt(a * a + b * b);

// Right branch of hyperbola
for (let t = -2; t <= 2; t += 0.1) {
const x = a * Math.cosh(t);
const y = b * Math.sinh(t);
points.push({ x, y, z: 0 });
}
return points;
})(),
color: getColor("PURPLE"),
showPoints: false,
},
{
points: (() => {
const points = [];
const a = 3;
const b = 2;

// Left branch of hyperbola
for (let t = -2; t <= 2; t += 0.1) {
const x = -a * Math.cosh(t);
const y = b * Math.sinh(t);
points.push({ x, y, z: 0 });
}
return points;
})(),
color: getColor("PURPLE"),
showPoints: false,
},
{
points: (() => {
const a = 3;
const b = 2;
const c = Math.sqrt(a * a + b * b);
return [
{ x: -c, y: 0, z: 0 },
{ x: c, y: 0, z: 0 }
];
})(),
color: getColor("CYAN"),
showPoints: true,
labels: [
{ text: "F₁", at: 0, offset: [-0.5, -0.5, 0] },
{ text: "F₂", at: 1, offset: [0.5, -0.5, 0] }
],
},
{
points: [
{ x: 0, y: 0, z: 0 }
],
color: getColor("ORANGE"),
showPoints: true,
labels: [{ text: "O", at: 0, offset: [-0.3, -0.3, 0] }],
},
{
points: [
{ x: -6, y: 0, z: 0 },
{ x: 6, y: 0, z: 0 }
],
color: getColor("ROSE"),
showPoints: false,
smooth: false,
},
{
points: [
{ x: 0, y: -4, z ... [truncated; 1294 chars]
- cameraPosition: [0, 0, 12]
- showZAxis: false

Look at the visualization above! A hyperbola has two separate branches. For every point $$P$$ on the hyperbola, the difference in distance from $$P$$ to both foci $$F_1$$ and $$F_2$$ is always constant.

Visible text: Look at the visualization above! A hyperbola has two separate branches. For every point on the hyperbola, the difference in distance from to both foci and is always constant.

## Components of a Hyperbola

Before diving into formulas, let's get acquainted with the important parts of a hyperbola. Each component has its own role in determining the shape and properties of the hyperbola.

Component: LineEquation
Props:
- title: Parts of a Hyperbola
- description: Important components of a hyperbola with horizontal major axis.
- data: [
{
points: (() => {
const points = [];
const a = 3;
const b = 2.5;

// Right branch
for (let t = -1.5; t <= 1.5; t += 0.1) {
const x = a * Math.cosh(t);
const y = b * Math.sinh(t);
points.push({ x, y, z: 0 });
}
return points;
})(),
color: getColor("INDIGO"),
showPoints: false,
},
{
points: (() => {
const points = [];
const a = 3;
const b = 2.5;

// Left branch
for (let t = -1.5; t <= 1.5; t += 0.1) {
const x = -a * Math.cosh(t);
const y = b * Math.sinh(t);
points.push({ x, y, z: 0 });
}
return points;
})(),
color: getColor("INDIGO"),
showPoints: false,
},
{
points: [
{ x: 0, y: 0, z: 0 }
],
color: getColor("ORANGE"),
showPoints: true,
labels: [{ text: "Center", at: 0, offset: [-0.5, -0.5, 0] }],
},
{
points: (() => {
const a = 3;
const b = 2.5;
const c = Math.sqrt(a * a + b * b);
return [
{ x: -c, y: 0, z: 0 },
{ x: c, y: 0, z: 0 }
];
})(),
color: getColor("CYAN"),
showPoints: true,
labels: [
{ text: "F₁", at: 0, offset: [-0.5, 0.5, 0] },
{ text: "F₂", at: 1, offset: [0.5, 0.5, 0] }
],
},
{
points: [
{ x: -3, y: 0, z: 0 },
{ x: 3, y: 0, z: 0 }
],
color: getColor("TEAL"),
showPoints: true,
labels: [
{ text: "A₁", at: 0, offset: [-0.5, 0.5, 0] },
{ text: "A₂", at: 1, offset: [0.5, ... [truncated; 1590 chars]
- cameraPosition: [0, 0, 15]
- showZAxis: false

The components of a hyperbola you need to know:

1. **Center of hyperbola** is the midpoint between the two foci, usually denoted by $$O$$.

2. **Foci** ($$F_1$$ and $$F_2$$) are two fixed points that serve as the reference for the definition of a hyperbola. The distance between the two foci is called the focal distance.

3. **Vertices** ($$A_1$$ and $$A_2$$) are the closest points between the two branches of the hyperbola. The line connecting the two vertices is called the major axis.

4. **Major axis** is the line that passes through the center and both foci of the hyperbola.

5. **Asymptotes** are lines that are approached by the branches of the hyperbola as they extend to infinity. The hyperbola never touches its asymptotes, but the farther from the center, the closer the curve approaches the asymptote lines.

Visible text: 1. **Center of hyperbola** is the midpoint between the two foci, usually denoted by .

2. **Foci** ( and ) are two fixed points that serve as the reference for the definition of a hyperbola. The distance between the two foci is called the focal distance.

3. **Vertices** ( and ) are the closest points between the two branches of the hyperbola. The line connecting the two vertices is called the major axis.

4. **Major axis** is the line that passes through the center and both foci of the hyperbola.

5. **Asymptotes** are lines that are approached by the branches of the hyperbola as they extend to infinity. The hyperbola never touches its asymptotes, but the farther from the center, the closer the curve approaches the asymptote lines.

> The main difference between a hyperbola and an ellipse: a hyperbola has asymptotes and consists of two separate branches, while an ellipse is a closed curve without asymptotes.

## Equation of a Hyperbola

There are several forms depending on orientation and center position. We will discuss two cases:

### Center at the Origin

If the center of the hyperbola is at $$O(0,0)$$, there are two possible orientations:

Visible text: If the center of the hyperbola is at , there are two possible orientations:

Component: LineEquation
Props:
- title: Horizontal Major Axis
- description: Hyperbola $$\frac{x^2}{a^2} - \frac{y^2}{b^2} = 1$$ with horizontal major axis.
  Visible text: Hyperbola with horizontal major axis.
- data: [
{
points: (() => {
const points = [];
const a = 3;
const b = 2;

// Right branch
for (let t = -1.8; t <= 1.8; t += 0.1) {
const x = a * Math.cosh(t);
const y = b * Math.sinh(t);
points.push({ x, y, z: 0 });
}
return points;
})(),
color: getColor("VIOLET"),
showPoints: false,
},
{
points: (() => {
const points = [];
const a = 3;
const b = 2;

// Left branch
for (let t = -1.8; t <= 1.8; t += 0.1) {
const x = -a * Math.cosh(t);
const y = b * Math.sinh(t);
points.push({ x, y, z: 0 });
}
return points;
})(),
color: getColor("VIOLET"),
showPoints: false,
},
{
points: [
{ x: 0, y: 0, z: 0 }
],
color: getColor("ORANGE"),
showPoints: true,
labels: [{ text: "O(0,0)", at: 0, offset: [-0.8, -0.5, 0] }],
},
{
points: (() => {
const a = 3;
const b = 2;
const c = Math.sqrt(a * a + b * b);
return [
{ x: -c, y: 0, z: 0 },
{ x: c, y: 0, z: 0 }
];
})(),
color: getColor("CYAN"),
showPoints: true,
labels: [
{ text: "F₁", at: 0, offset: [-0.5, 0.5, 0] },
{ text: "F₂", at: 1, offset: [0.5, 0.5, 0] }
],
},
{
points: [
{ x: -3, y: 0, z: 0 },
{ x: 3, y: 0, z: 0 }
],
color: getColor("TEAL"),
showPoints: true,
labels: [
{ text: "A₁", at: 0, offset: [-0.5, 0.5, 0] },
{ text: "A₂", at: 1, offset: [0.5, 0.5, 0 ... [truncated; 1457 chars]
- cameraPosition: [0, 0, 12]
- showZAxis: false

When the major axis is parallel to the $$X$$ axis (horizontal), the equation of the hyperbola is:

Visible text: When the major axis is parallel to the axis (horizontal), the equation of the hyperbola is:

```math
\frac{x^2}{a^2} - \frac{y^2}{b^2} = 1
```

If we visualize it, it will look like this:

Component: LineEquation
Props:
- title: Vertical Major Axis
- description: Hyperbola $$\frac{y^2}{a^2} - \frac{x^2}{b^2} = 1$$ with vertical major axis.
  Visible text: Hyperbola with vertical major axis.
- data: [
{
points: (() => {
const points = [];
const a = 3;
const b = 2;

// Top branch
for (let t = -1.8; t <= 1.8; t += 0.1) {
const x = b * Math.sinh(t);
const y = a * Math.cosh(t);
points.push({ x, y, z: 0 });
}
return points;
})(),
color: getColor("TEAL"),
showPoints: false,
},
{
points: (() => {
const points = [];
const a = 3;
const b = 2;

// Bottom branch
for (let t = -1.8; t <= 1.8; t += 0.1) {
const x = b * Math.sinh(t);
const y = -a * Math.cosh(t);
points.push({ x, y, z: 0 });
}
return points;
})(),
color: getColor("TEAL"),
showPoints: false,
},
{
points: [
{ x: 0, y: 0, z: 0 }
],
color: getColor("ORANGE"),
showPoints: true,
labels: [{ text: "O(0,0)", at: 0, offset: [-0.8, -0.5, 0] }],
},
{
points: (() => {
const a = 3;
const b = 2;
const c = Math.sqrt(a * a + b * b);
return [
{ x: 0, y: -c, z: 0 },
{ x: 0, y: c, z: 0 }
];
})(),
color: getColor("CYAN"),
showPoints: true,
labels: [
{ text: "F₁", at: 0, offset: [0.5, -0.5, 0] },
{ text: "F₂", at: 1, offset: [0.5, 0.5, 0] }
],
},
{
points: [
{ x: 0, y: -3, z: 0 },
{ x: 0, y: 3, z: 0 }
],
color: getColor("VIOLET"),
showPoints: true,
labels: [
{ text: "A₁", at: 0, offset: [0.5, -0.5, 0] },
{ text: "A₂", at: 1, offset: [0.5, 0.5, 0] ... [truncated; 1455 chars]
- cameraPosition: [0, 0, 12]
- showZAxis: false

When the major axis is parallel to the $$Y$$ axis (vertical), the equation of the hyperbola is:

Visible text: When the major axis is parallel to the axis (vertical), the equation of the hyperbola is:

```math
\frac{y^2}{a^2} - \frac{x^2}{b^2} = 1
```

### Shifted Center

If the center of the hyperbola is not at the origin, but at point $$(h, k)$$, the equation becomes:

Visible text: If the center of the hyperbola is not at the origin, but at point , the equation becomes:

Component: MathContainer
Children:

```math
\frac{(x-h)^2}{a^2} - \frac{(y-k)^2}{b^2} = 1 \quad \text{(horizontal major axis)}
```

```math
\frac{(y-k)^2}{a^2} - \frac{(x-h)^2}{b^2} = 1 \quad \text{(vertical major axis)}
```

## Important Properties of Hyperbola

There are several mathematical relationships that always hold for every hyperbola:

```math
c^2 = a^2 + b^2
```

where:

- $$a$$ is the distance from center to vertex (semi-major axis)
- $$b$$ is the constant that determines the shape of the hyperbola (semi-conjugate axis)
- $$c$$ is the distance from center to focus

Visible text: - is the distance from center to vertex (semi-major axis)
- is the constant that determines the shape of the hyperbola (semi-conjugate axis)
- is the distance from center to focus

This relationship is different from an ellipse which uses $$c^2 = a^2 - b^2$$.

Visible text: This relationship is different from an ellipse which uses .

**Eccentricity** of a hyperbola is defined as:

```math
e = \frac{c}{a}
```

The eccentricity value of a hyperbola is always $$e > 1$$. This is because $$c > a$$ (from the relationship $$c^2 = a^2 + b^2$$, so $$c = \sqrt{a^2 + b^2} > a$$). The larger the value of $$e$$, the more "open" or wide the hyperbola becomes. For comparison: a circle has $$e = 0$$, an ellipse has $$0 < e < 1$$, a parabola has $$e = 1$$, and a hyperbola has $$e > 1$$.

Visible text: The eccentricity value of a hyperbola is always . This is because (from the relationship , so ). The larger the value of , the more "open" or wide the hyperbola becomes. For comparison: a circle has , an ellipse has , a parabola has , and a hyperbola has .

**Asymptote equations** for a hyperbola with center at $$(0,0)$$:

Visible text: **Asymptote equations** for a hyperbola with center at :

Component: MathContainer
Children:

```math
y = \pm \frac{b}{a}x \quad \text{(horizontal major axis)}
```

```math
y = \pm \frac{a}{b}x \quad \text{(vertical major axis)}
```

> Asymptotes are "guides" for the hyperbola branches. The farther from the center, the closer the hyperbola curve approaches the asymptote lines, but never touches them.

## Exercises

1. Determine the equation of a hyperbola with center at $$(0,0)$$, vertices at $$(\pm 2, 0)$$, and foci at $$(\pm 3, 0)$$.

2. Given the hyperbola $$\frac{x^2}{25} - \frac{y^2}{9} = 1$$. Determine the coordinates of the foci, eccentricity, and asymptote equations.

3. A hyperbola has its center at $$(1, -2)$$, horizontal major axis, $$a = 3$$, and $$b = 4$$. Determine the equation of the hyperbola.

4. Determine the asymptote equations of the hyperbola $$\frac{(y+1)^2}{4} - \frac{(x-2)^2}{9} = 1$$.

Visible text: 1. Determine the equation of a hyperbola with center at , vertices at , and foci at .

2. Given the hyperbola . Determine the coordinates of the foci, eccentricity, and asymptote equations.

3. A hyperbola has its center at , horizontal major axis, , and . Determine the equation of the hyperbola.

4. Determine the asymptote equations of the hyperbola .

### Answer Key

1. **Solution**:

   Given:
   - Center at $$(0,0)$$
   - Vertices at $$(\pm 2, 0)$$, so $$a = 2$$
   - Foci at $$(\pm 3, 0)$$, so $$c = 3$$
   - Horizontal major axis (since vertices and foci are on the $$X$$ axis)

   Use the relationship $$c^2 = a^2 + b^2$$:

   <MathContainer>
     
     
     ```math
     3^2 = 2^2 + b^2
     ```

     
     
     ```math
     9 = 4 + b^2
     ```

     
     
     ```math
     b^2 = 5
     ```

   </MathContainer>

   Equation of hyperbola with horizontal major axis:

   
     
     ```math
     \frac{x^2}{4} - \frac{y^2}{5} = 1
     ```

2. **Solution**:

   From the equation $$\frac{x^2}{25} - \frac{y^2}{9} = 1$$:
   - $$a^2 = 25$$, so $$a = 5$$
   - $$b^2 = 9$$, so $$b = 3$$

   Since it's in the form $$\frac{x^2}{a^2} - \frac{y^2}{b^2} = 1$$, the major axis is horizontal.

   Calculate $$c$$:

   <MathContainer>
     
     
     ```math
     c^2 = a^2 + b^2 = 25 + 9 = 34
     ```

     
     
     ```math
     c = \sqrt{34} \approx 5{,}831
     ```

   </MathContainer>

   Coordinates of foci: $$(\pm \sqrt{34}, 0)$$

   Eccentricity:

   
     
     ```math
     e = \frac{c}{a} = \frac{\sqrt{34}}{5} \approx \frac{5{,}831}{5} \approx 1{,}166
     ```

   Asymptote equations (horizontal major axis):

   
     
     ```math
     y = \pm \frac{b}{a}x = \pm \frac{3}{5}x
     ```

3. **Solution**:

   Given:
   - Center: $$(h,k) = (1, -2)$$
   - Horizontal major axis
   - $$a = 3$$, so $$a^2 = 9$$
   - $$b = 4$$, so $$b^2 = 16$$

   Equation of hyperbola with center $$(h,k)$$ and horizontal major axis:

   
     
     ```math
     \frac{(x-h)^2}{a^2} - \frac{(y-k)^2}{b^2} = 1
     ```

   Substituting values:

   
     
     ```math
     \frac{(x-1)^2}{9} - \frac{(y+2)^2}{16} = 1
     ```

4. **Solution**:

   From the equation $$\frac{(y+1)^2}{4} - \frac{(x-2)^2}{9} = 1$$:
   - Center: $$(h,k) = (2, -1)$$
   - $$a^2 = 4$$, so $$a = 2$$
   - $$b^2 = 9$$, so $$b = 3$$
   - Vertical major axis (since it's in the form $$\frac{(y-k)^2}{a^2} - \frac{(x-h)^2}{b^2} = 1$$)

   For a hyperbola with center $$(h,k)$$ and vertical major axis, the asymptote equations:

   
     
     ```math
     y - k = \pm \frac{a}{b}(x - h)
     ```

   Substituting values:

   <MathContainer>
     
     
     ```math
     y - (-1) = \pm \frac{2}{3}(x - 2)
     ```

     
     
     ```math
     y + 1 = \pm \frac{2}{3}(x - 2)
     ```

     
     
     ```math
     y = -1 \pm \frac{2}{3}(x - 2)
     ```

   </MathContainer>

    So the asymptote equations are:

    <MathContainer>
       
     
     ```math
     y = -1 + \frac{2}{3}(x - 2)
     ```

       
     
     ```math
     y = -1 - \frac{2}{3}(x - 2)
     ```

     </MathContainer>

Visible text: 1. **Solution**:

 Given:
 - Center at 
 - Vertices at , so 
 - Foci at , so 
 - Horizontal major axis (since vertices and foci are on the axis)

 Use the relationship :

 <MathContainer>
 
 

 
 

 
 

 </MathContainer>

 Equation of hyperbola with horizontal major axis:

 
 

2. **Solution**:

 From the equation :
 - , so 
 - , so 

 Since it's in the form , the major axis is horizontal.

 Calculate :

 <MathContainer>
 
 

 
 

 </MathContainer>

 Coordinates of foci: 

 Eccentricity:

 
 

 Asymptote equations (horizontal major axis):

 
 

3. **Solution**:

 Given:
 - Center: 
 - Horizontal major axis
 - , so 
 - , so 

 Equation of hyperbola with center and horizontal major axis:

 
 

 Substituting values:

 
 

4. **Solution**:

 From the equation :
 - Center: 
 - , so 
 - , so 
 - Vertical major axis (since it's in the form )

 For a hyperbola with center and vertical major axis, the asymptote equations:

 
 

 Substituting values:

 <MathContainer>
 
 

 
 

 
 

 </MathContainer>

 So the asymptote equations are:

 <MathContainer>
 
 

 
 

 </MathContainer>