# Question on infinite solutions via a line vs plane

**URL:** <https://community.deeplearning.ai/t/question-on-infinite-solutions-via-a-line-vs-plane/719961>\
**Category:** Linear Algebra for Machine Learning and Data Sc...\
**Tags:** week-module-2\
**Created:** [November 7, 2024, 9:19pm UTC](https://community.deeplearning.ai/t/question-on-infinite-solutions-via-a-line-vs-plane/719961 "2024-11-07T21:19:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![YodaKenobi](https://avatars.discourse-cdn.com/v4/letter/y/aca169/32.png) [@YodaKenobi](https://community.deeplearning.ai/u/YodaKenobi)\
**Post date:** [November 7, 2024, 9:19pm UTC](https://community.deeplearning.ai/t/question-on-infinite-solutions-via-a-line-vs-plane/719961/1 "2024-11-07T21:19:43Z")

</div>

In the _Interactive Tool: Graphical Representation of Linear Systems with 3 variables_ , I noticed you can toggle between a _line_, _plane_, or _all space_ for the _Infinite_ selection for _Number of solutions_:

_line_ with infinite solutions:

 ![Screenshot 2024-11-07 at 4.14.13 PM](https://global.discourse-cdn.com/dlai/original/3X/1/7/17682457ecdaeaf374d18a4f9e8b8662d19ce4ce.png)

_plane_ with infinite solutions:

 ![Screenshot 2024-11-07 at 4.15.28 PM](https://global.discourse-cdn.com/dlai/original/3X/e/1/e1712e2a9ac19fb43324eea1515bbccd3e411701.png)

My question is: why exactly do they differ based on their equations? I notice in the _line_ case the solutions for each variable themselves are linear equations with the variable _t_; while in the _plane_ case the solutions use 2 variables _t_ and _s_. Does it have anything to do with the linear dependencies?

In the infinite, plane case:

```auto
4x - 2y + 2z = 8;
2x - 1y + 1z = -4;
-2x + y - z = 4;

```

1st equation = second + -1\*third equation

In the infinite line case:

```auto
4x - 3y + 1z = -8;
2x + 1y + 3z = 2;
2x - 4y - 2z = -10;

```

the first equation is equal to the sum of the 2nd and third equations

---

<div class="post-metadata">

**Author:** ![YodaKenobi](https://avatars.discourse-cdn.com/v4/letter/y/aca169/32.png) [@YodaKenobi](https://community.deeplearning.ai/u/YodaKenobi)\
**Post date:** [November 7, 2024, 9:23pm UTC](https://community.deeplearning.ai/t/question-on-infinite-solutions-via-a-line-vs-plane/719961/2 "2024-11-07T21:23:45Z")

</div>

Additionally, where are the _t_ and _s_ variables coming from?

---

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://community.deeplearning.ai/u/paulinpaloalto)\
**Post date:** [November 7, 2024, 9:38pm UTC](https://community.deeplearning.ai/t/question-on-infinite-solutions-via-a-line-vs-plane/719961/3 "2024-11-07T21:38:32Z")

</div>

Visualizing the meaning of all this requires understanding the geometric interpretation. If you take any linear equation in 3 variables like this:

ax + by + cz = d

That is the equation of a plane in 3-space. The vector (a, b, c) is the normal vector to the plane and d is the minimal distance from the origin to the plane.

So anytime you choose one such equation, you are defining a plane. Now think about how you can define 3 such equations and all the possibilities for how those three planes can intersect. Or not. It’s been a while since I watched the lectures for this course, but I’ve got to believe that Prof Serrano gives geometric examples to demonstrate the possibilities here.

> [@YodaKenobi](#):
>
> My question is: why exactly do they differ based on their equations?

The equations define everything, so of course it matters what the equations are. I must be missing your point. 🤓

---

<div class="post-metadata">

**Author:** ![YodaKenobi](https://avatars.discourse-cdn.com/v4/letter/y/aca169/32.png) [@YodaKenobi](https://community.deeplearning.ai/u/YodaKenobi)\
**Post date:** [November 7, 2024, 9:47pm UTC](https://community.deeplearning.ai/t/question-on-infinite-solutions-via-a-line-vs-plane/719961/4 "2024-11-07T21:47:18Z")

</div>

Hi, thanks for the reply. I guess what I’m wondering is is there a simple way of just looking at the equations in the screenshot and being able to tell that one would have infinite solutions via a line, and another infinite solutions via a plane (without graphing)?

---

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://community.deeplearning.ai/u/paulinpaloalto)\
**Post date:** [November 7, 2024, 9:52pm UTC](https://community.deeplearning.ai/t/question-on-infinite-solutions-via-a-line-vs-plane/719961/5 "2024-11-07T21:52:34Z")

</div>

Short answer is “no”. Well, unless you are some kind of intuitive mathematical genius who can solve equations just by looking at them.

---

<div class="post-metadata">

**Author:** ![YodaKenobi](https://avatars.discourse-cdn.com/v4/letter/y/aca169/32.png) [@YodaKenobi](https://community.deeplearning.ai/u/YodaKenobi)\
**Post date:** [November 7, 2024, 9:57pm UTC](https://community.deeplearning.ai/t/question-on-infinite-solutions-via-a-line-vs-plane/719961/6 "2024-11-07T21:57:22Z")

</div>

(I mean algebraically). With 2 dimensions we can simply see if 2 lines have the same slope and whether or not the y-intercept is the same (which would make them co-linear and parallel or not co-linear and parallel) to tell between equations with 0 solutions vs equations with infinite solutions; and similarly for lines of different slope we know there is 1 intersection: Is there a similar method for 3 dimensions? (Sorry if this has been covered, I’ll re watch the material)

---

<div class="post-metadata">

**Author:** ![YodaKenobi](https://avatars.discourse-cdn.com/v4/letter/y/aca169/32.png) [@YodaKenobi](https://community.deeplearning.ai/u/YodaKenobi)\
**Post date:** [November 8, 2024, 10:28pm UTC](https://community.deeplearning.ai/t/question-on-infinite-solutions-via-a-line-vs-plane/719961/7 "2024-11-08T22:28:19Z")

</div>

To follow up on this in case anyone is curious, it is covered in videos later; basically when he introduces the concept of _rank_ and compares it to the number of variables/systems of equations:

 ![IMG_3278](https://global.discourse-cdn.com/dlai/original/3X/e/0/e042392f9e7b9cf292b96b979dc78dbaf8c08eac.jpeg)
