1. Home
  2. Explore
  3. Mathematics
  4. Perpendicular Lines Algebraically

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Perpendicular Lines Algebraically

Eigenlines and Flow Directions in a Two-Dimensional Linear Flow

1. The Geometric Problem

Consider a two-dimensional linear flow in which every point (x,y)(x,y)(x,y) is assigned a vector. The vector field can be represented by a matrix. The goal is to identify two special lines through the origin:

  • The wall, along which vectors point directly away from or toward the origin.

  • The flow-direction line, which is perpendicular to the wall.

A visual diagram may suggest that these lines meet at a right angle, but visual inspection is not sufficiently reliable. An angle that appears to be 90∘90^\circ90∘ could actually be 89∘89^\circ89∘. Algebra provides an exact method for finding and verifying the lines.

The central question is:

For which points (x,y)(x,y)(x,y) is the vector assigned to (x,y)(x,y)(x,y) pointing in the same direction as the position vector from the origin?


2. Algebraic Meaning of a Vector Pointing Away from the Origin

The position vector of a point (x,y)(x,y)(x,y) is

(xy).\begin{pmatrix}x\\y\end{pmatrix}.(xy​).

Suppose the vector assigned to that point is

(uv).\begin{pmatrix}u\\v\end{pmatrix}.(uv​).

For the assigned vector to point along the same line as the position vector, the two vectors must be proportional. Therefore, there must be a scalar λ\lambdaλ such that

(uv)=λ(xy).\begin{pmatrix}u\\v\end{pmatrix} = \lambda \begin{pmatrix}x\\y\end{pmatrix}.(uv​)=λ(xy​).

Equivalently,

u=λx,v=λy.u=\lambda x, \qquad v=\lambda y.u=λx,v=λy.

The scalar λ\lambdaλ determines the direction and size relationship between the assigned vector and the position vector:

  • λ>0\lambda>0λ>0: the assigned vector points in the same direction as (x,y)(x,y)(x,y), so it points away from the origin.

  • λ<0\lambda<0λ<0: the assigned vector points in the opposite direction, so it points toward the origin.

  • λ=0\lambda=0λ=0: the assigned vector is the zero vector.

The points satisfying this proportionality condition form special lines through the origin. In linear algebra, these directions are called eigendirections, and the corresponding values of λ\lambdaλ are eigenvalues.

An eigenvector is a nonzero vector whose assigned vector is a scalar multiple of itself. The scalar multiple is the associated eigenvalue.


3. The Specific Matrix and Its Vector Field

Consider the matrix

A=(233−2).A= \begin{pmatrix} 2&3\\ 3&-2 \end{pmatrix}.A=(23​3−2​).

Applying this matrix to the position vector gives

A(xy)=(2x+3y3x−2y).A \begin{pmatrix}x\\y\end{pmatrix} = \begin{pmatrix} 2x+3y\\ 3x-2y \end{pmatrix}.A(xy​)=(2x+3y3x−2y​).

Thus, the vector assigned to (x,y)(x,y)(x,y) is

(uv)=(2x+3y3x−2y).\begin{pmatrix} u\\v \end{pmatrix} = \begin{pmatrix} 2x+3y\\ 3x-2y \end{pmatrix}.(uv​)=(2x+3y3x−2y​).

To find the special directions, require this vector to be proportional to (x,y)(x,y)(x,y):

(2x+3y3x−2y)=λ(xy).\begin{pmatrix} 2x+3y\\ 3x-2y \end{pmatrix} = \lambda \begin{pmatrix} x\\y \end{pmatrix}.(2x+3y3x−2y​)=λ(xy​).

Equality of two vectors means equality of their corresponding coordinates. Therefore, the vector equation becomes the system

2x+3y=λx,2x+3y=\lambda x,2x+3y=λx,
3x−2y=λy.3x-2y=\lambda y.3x−2y=λy.

This is the eigenvalue-eigenvector system for the matrix.


4. Solving for the Scalar λ\lambdaλ

The system contains three quantities that appear unknown: xxx, yyy, and λ\lambdaλ. The objective is first to determine possible values of λ\lambdaλ, and then to determine the corresponding lines.

4.1 Solving the first equation for yyy

Starting with

2x+3y=λx,2x+3y=\lambda x,2x+3y=λx,

subtract 2x2x2x from both sides:

3y=(λ−2)x.3y=(\lambda-2)x.3y=(λ−2)x.

Therefore,

y=λ−23x.y=\frac{\lambda-2}{3}x.y=3λ−2​x.

4.2 Substituting into the second equation

The second equation is

3x−2y=λy.3x-2y=\lambda y.3x−2y=λy.

Substitute

y=λ−23x.y=\frac{\lambda-2}{3}x.y=3λ−2​x.

This gives

3x−2(λ−23x)=λ(λ−23x).3x-2\left(\frac{\lambda-2}{3}x\right) = \lambda\left(\frac{\lambda-2}{3}x\right).3x−2(3λ−2​x)=λ(3λ−2​x).

The equation can be rearranged as

3x−23(λ−2)x=λ(λ−2)3x.3x-\frac{2}{3}(\lambda-2)x = \frac{\lambda(\lambda-2)}{3}x.3x−32​(λ−2)x=3λ(λ−2)​x.

At this stage, the equation contains a factor of xxx. It is important not to divide by xxx immediately because xxx could equal zero.


5. The Trivial Origin Solution

If

x=0,x=0,x=0,

then the first equation becomes

3y=λ⋅0=0,3y=\lambda\cdot 0=0,3y=λ⋅0=0,

so

y=0.y=0.y=0.

Thus, (0,0)(0,0)(0,0) is always a solution.

This is not surprising: the origin corresponds to the zero position vector, and the matrix sends the origin to the zero vector:

A(00)=(00).A \begin{pmatrix}0\\0\end{pmatrix} = \begin{pmatrix}0\\0\end{pmatrix}.A(00​)=(00​).

However, the origin does not determine a direction or a line. Since the goal is to find nonzero directions, the origin is treated as the trivial solution and is disregarded for the remainder of the analysis.

For nontrivial solutions, assume

x≠0.x\neq 0.x=0.

Then division by xxx is allowed.


6. Determining the Eigenvalues

After dividing by xxx and simplifying, the equation becomes

3−23(λ−2)=λ(λ−2)3.3-\frac{2}{3}(\lambda-2) = \frac{\lambda(\lambda-2)}{3}.3−32​(λ−2)=3λ(λ−2)​.

Multiply through by 333:

9−2(λ−2)=λ(λ−2).9-2(\lambda-2)=\lambda(\lambda-2).9−2(λ−2)=λ(λ−2).

Expand both sides:

9−2λ+4=λ2−2λ.9-2\lambda+4=\lambda^2-2\lambda.9−2λ+4=λ2−2λ.

Therefore,

13−2λ=λ2−2λ.13-2\lambda=\lambda^2-2\lambda.13−2λ=λ2−2λ.

The linear terms cancel:

λ2=13.\lambda^2=13.λ2=13.

Hence,

λ=±13.\lambda=\pm\sqrt{13}.λ=±13​.

The two eigenvalues are therefore

λ1=13andλ2=−13.\boxed{\lambda_1=\sqrt{13}} \qquad\text{and}\qquad \boxed{\lambda_2=-\sqrt{13}}.λ1​=13​​andλ2​=−13​​.

Why the cancellation matters

The cancellation of the terms involving λ\lambdaλ is not an accidental computational convenience. For this type of incompressible flow, the eigenvalues are expected to be equal in magnitude and opposite in sign:

λ2=−λ1.\lambda_2=-\lambda_1.λ2​=−λ1​.

Thus, obtaining an equation of the form

λ2=constant\lambda^2=\text{constant}λ2=constant

is an important consistency check. If the linear terms failed to cancel, it would indicate either an algebraic error or a different type of transformation than the one being studied.


7. The Wall Line: Positive Eigenvalue

Take

λ=13.\lambda=\sqrt{13}.λ=13​.

Substitute this value into the first equation:

2x+3y=13 x.2x+3y=\sqrt{13}\,x.2x+3y=13​x.

Rearrange:

3y=(13−2)x.3y=(\sqrt{13}-2)x.3y=(13​−2)x.

Therefore,

y=13−23x.\boxed{y=\frac{\sqrt{13}-2}{3}x}.y=313​−2​x​.

This is the equation of a line through the origin.

The same line is obtained from the second equation. Starting with

3x−2y=13 y,3x-2y=\sqrt{13}\,y,3x−2y=13​y,

move the yyy terms to the right:

3x=(13+2)y.3x=(\sqrt{13}+2)y.3x=(13​+2)y.

Thus,

y=313+2x.y=\frac{3}{\sqrt{13}+2}x.y=13​+23​x.

These two slopes are equal because

13−23=313+2.\frac{\sqrt{13}-2}{3} = \frac{3}{\sqrt{13}+2}.313​−2​=13​+23​.

To verify this, multiply the numerator and denominator of the first expression appropriately, or observe that

(13−2)(13+2)=13−4=9.(\sqrt{13}-2)(\sqrt{13}+2) = 13-4 = 9.(13​−2)(13​+2)=13−4=9.

Consequently,

13−23=313+2.\frac{\sqrt{13}-2}{3} = \frac{3}{\sqrt{13}+2}.313​−2​=13​+23​.

The line is therefore

y=13−23x.\boxed{y=\frac{\sqrt{13}-2}{3}x}.y=313​−2​x​.

Physical meaning

Because λ=13>0\lambda=\sqrt{13}>0λ=13​>0, the assigned vector is a positive multiple of the position vector:

(uv)=13(xy).\begin{pmatrix}u\\v\end{pmatrix} = \sqrt{13} \begin{pmatrix}x\\y\end{pmatrix}.(uv​)=13​(xy​).

Therefore, along this line:

  • The vector points in the same direction as the position vector.

  • The flow moves away from the origin.

  • The line represents the expanding direction or the wall direction.

The quantity 13\sqrt{13}13​ is the rate of expansion along this direction.


8. The Flow-Direction Line: Negative Eigenvalue

Now take

λ=−13.\lambda=-\sqrt{13}.λ=−13​.

Substitute into the first equation:

2x+3y=−13 x.2x+3y=-\sqrt{13}\,x.2x+3y=−13​x.

Rearrange:

3y=(−13−2)x.3y=(-\sqrt{13}-2)x.3y=(−13​−2)x.

Therefore,

y=−13+23x.\boxed{y=-\frac{\sqrt{13}+2}{3}x}.y=−313​+2​x​.

Using the second equation gives the same result. Starting with

3x−2y=−13 y,3x-2y=-\sqrt{13}\,y,3x−2y=−13​y,

move the yyy terms to the right:

3x=(2−13)y.3x=(2-\sqrt{13})y.3x=(2−13​)y.

Thus,

y=32−13x.y=\frac{3}{2-\sqrt{13}}x.y=2−13​3​x.

Since

32−13=−313−2=−13+23,\frac{3}{2-\sqrt{13}} = -\frac{3}{\sqrt{13}-2} = -\frac{\sqrt{13}+2}{3},2−13​3​=−13​−23​=−313​+2​,

the equation is again

y=−13+23x.\boxed{y=-\frac{\sqrt{13}+2}{3}x}.y=−313​+2​x​.

Physical meaning

Because

λ=−13<0,\lambda=-\sqrt{13}<0,λ=−13​<0,

the assigned vector is opposite to the position vector:

(uv)=−13(xy).\begin{pmatrix}u\\v\end{pmatrix} = -\sqrt{13} \begin{pmatrix}x\\y\end{pmatrix}.(uv​)=−13​(xy​).

Therefore, along this line:

  • The vector points toward the origin.

  • The flow contracts or shrinks in this direction.

  • The line represents the contracting flow direction.

The contraction rate has magnitude 13\sqrt{13}13​, exactly matching the expansion rate along the other line.


9. Verifying Perpendicularity Algebraically

For two lines through the origin,

y=m1xandy=m2x,y=m_1x \qquad\text{and}\qquad y=m_2x,y=m1​xandy=m2​x,

the lines are perpendicular when their slopes satisfy

m1m2=−1.m_1m_2=-1.m1​m2​=−1.

The two slopes are

m1=13−23m_1=\frac{\sqrt{13}-2}{3}m1​=313​−2​

and

m2=−13+23.m_2=-\frac{\sqrt{13}+2}{3}.m2​=−313​+2​.

Their product is

m1m2=13−23(−13+23).m_1m_2 = \frac{\sqrt{13}-2}{3} \left(-\frac{\sqrt{13}+2}{3}\right).m1​m2​=313​−2​(−313​+2​).

Thus,

m1m2=−(13−2)(13+2)9.m_1m_2 = -\frac{(\sqrt{13}-2)(\sqrt{13}+2)}{9}.m1​m2​=−9(13​−2)(13​+2)​.

Using the difference-of-squares identity,

(13−2)(13+2)=13−4=9.(\sqrt{13}-2)(\sqrt{13}+2)=13-4=9.(13​−2)(13​+2)=13−4=9.

Therefore,

m1m2=−99=−1.m_1m_2=-\frac{9}{9}=-1.m1​m2​=−99​=−1.

Hence, the two lines are exactly perpendicular.

The expanding wall and the contracting flow direction are perpendicular because their slopes are negative reciprocals.


10. Geometric Interpretation of the Two Eigenlines

The matrix produces two distinguished directions through the origin:

Expanding direction

y=13−23xy=\frac{\sqrt{13}-2}{3}xy=313​−2​x
  • Associated eigenvalue: 13\sqrt{13}13​.

  • Vectors point away from the origin.

  • Motion expands at rate 13\sqrt{13}13​.

  • This is the wall or expanding line.

Contracting direction

y=−13+23xy=-\frac{\sqrt{13}+2}{3}xy=−313​+2​x
  • Associated eigenvalue: −13-\sqrt{13}−13​.

  • Vectors point toward the origin.

  • Motion contracts at rate 13\sqrt{13}13​.

  • This is the flow-direction line.

  • It is perpendicular to the expanding line.

The system does not produce one isolated point. Instead, each eigenvalue produces an entire line of solutions through the origin. Once an xxx-coordinate is selected, the corresponding yyy-coordinate is determined by the equation of the relevant line.

For example, on the expanding line,

y=13−23x,y=\frac{\sqrt{13}-2}{3}x,y=313​−2​x,

so every choice of xxx gives a point on that line whose assigned vector is proportional to its position vector.


11. Meaning of the Eigenvalue as an Expansion Rate

For a point (x,y)(x,y)(x,y) on an eigenline, the matrix acts as

A(xy)=λ(xy).A \begin{pmatrix}x\\y\end{pmatrix} = \lambda \begin{pmatrix}x\\y\end{pmatrix}.A(xy​)=λ(xy​).

The scalar λ\lambdaλ determines how the vector changes along that line.

Positive eigenvalue

If λ>0\lambda>0λ>0, then

λ(xy)\lambda \begin{pmatrix}x\\y\end{pmatrix}λ(xy​)

has the same direction as (x,y)(x,y)(x,y). The flow moves outward, and the line expands.

Negative eigenvalue

If λ<0\lambda<0λ<0, then

λ(xy)\lambda \begin{pmatrix}x\\y\end{pmatrix}λ(xy​)

points in the opposite direction. The flow moves inward, and the line contracts.

The magnitude

∣λ∣|\lambda|∣λ∣

measures the rate of expansion or contraction. In this example, both rates have magnitude

13.\sqrt{13}.13​.

Therefore:

  • Expansion rate: 13\sqrt{13}13​.

  • Contraction rate: 13\sqrt{13}13​.

  • The rates are equal in magnitude.

  • The signs are opposite.


12. Connection to Incompressible Flow

The opposite eigenvalues reflect the behavior of an incompressible liquid or fluid.

If the fluid expands in one direction, it must contract in another direction at the same rate in order to preserve its volume or area. In this example:

  • Along one line, the flow expands at rate 13\sqrt{13}13​.

  • Along the perpendicular line, the flow contracts at rate 13\sqrt{13}13​.

The expansion and contraction balance each other. The algebraic expression of this balance is

λ1=13,λ2=−13.\lambda_1=\sqrt{13}, \qquad \lambda_2=-\sqrt{13}.λ1​=13​,λ2​=−13​.

Their sum is zero:

λ1+λ2=0.\lambda_1+\lambda_2=0.λ1​+λ2​=0.

For this matrix, the same fact is visible from its diagonal entries:

2+(−2)=0.2+(-2)=0.2+(−2)=0.

This zero sum corresponds to zero net expansion in two dimensions, which is the algebraic signature of incompressibility.

Equal and opposite eigenvalues represent expansion in one direction balanced by contraction in the perpendicular direction.


13. General Procedure for Similar Matrices

The same method applies to any two-dimensional linear flow represented by a matrix.

Step 1: Write the vector field

For a matrix

A=(abcd),A= \begin{pmatrix} a&b\\ c&d \end{pmatrix},A=(ac​bd​),

the assigned vector at (x,y)(x,y)(x,y) is

A(xy)=(ax+bycx+dy).A \begin{pmatrix}x\\y\end{pmatrix} = \begin{pmatrix} ax+by\\ cx+dy \end{pmatrix}.A(xy​)=(ax+bycx+dy​).

Step 2: Require proportionality

Set the assigned vector equal to λ\lambdaλ times the position vector:

(ax+bycx+dy)=λ(xy).\begin{pmatrix} ax+by\\ cx+dy \end{pmatrix} = \lambda \begin{pmatrix}x\\y\end{pmatrix}.(ax+bycx+dy​)=λ(xy​).

Step 3: Separate coordinates

This produces

ax+by=λx,ax+by=\lambda x,ax+by=λx,
cx+dy=λy.cx+dy=\lambda y.cx+dy=λy.

Step 4: Find the possible values of λ\lambdaλ

Solve the resulting homogeneous system for nonzero (x,y)(x,y)(x,y). The condition for nontrivial solutions is the eigenvalue equation

det⁡(A−λI)=0.\det(A-\lambda I)=0.det(A−λI)=0.

For the specific matrix in this example,

A−λI=(2−λ33−2−λ).A-\lambda I = \begin{pmatrix} 2-\lambda&3\\ 3&-2-\lambda \end{pmatrix}.A−λI=(2−λ3​3−2−λ​).

Thus,

det⁡(A−λI)=(2−λ)(−2−λ)−9.\det(A-\lambda I) = (2-\lambda)(-2-\lambda)-9.det(A−λI)=(2−λ)(−2−λ)−9.

Expanding gives

λ2−13=0,\lambda^2-13=0,λ2−13=0,

so

λ=±13.\lambda=\pm\sqrt{13}.λ=±13​.

Step 5: Find the line for each eigenvalue

Substitute each eigenvalue into either coordinate equation and solve for the relationship between xxx and yyy.

Each relationship has the form

y=mx,y=mx,y=mx,

which describes a line through the origin.

Step 6: Interpret the signs

  • Positive λ\lambdaλ: expanding direction.

  • Negative λ\lambdaλ: contracting direction.

  • Equal magnitudes and opposite signs: balanced expansion and contraction.

Step 7: Check perpendicularity

For the two resulting slopes m1m_1m1​ and m2m_2m2​, verify

m1m2=−1.m_1m_2=-1.m1​m2​=−1.

This confirms that the lines are perpendicular.


14. Key Results

For the matrix

(233−2),\begin{pmatrix} 2&3\\ 3&-2 \end{pmatrix},(23​3−2​),

the special lines and eigenvalues are:

  • Expanding wall:

    y=13−23xy=\frac{\sqrt{13}-2}{3}xy=313​−2​x

    with eigenvalue

    λ=13.\lambda=\sqrt{13}.λ=13​.
  • Contracting flow direction:

    y=−13+23xy=-\frac{\sqrt{13}+2}{3}xy=−313​+2​x

    with eigenvalue

    λ=−13.\lambda=-\sqrt{13}.λ=−13​.
  • Perpendicularity check:

    13−23(−13+23)=−1.\frac{\sqrt{13}-2}{3} \left(-\frac{\sqrt{13}+2}{3}\right) =-1.313​−2​(−313​+2​)=−1.
  • Expansion and contraction rates:

    Both have magnitude

    13.\sqrt{13}.13​.

The two perpendicular eigenlines completely describe the principal directions of this linear incompressible flow.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent