Skip to main content

Bring Me Vector - Basics

via GIPHY

In this article, I`m going to explain the very basics of vectors. Then in the upcoming articles, I`m going to explain more concepts like span, subspace, basis vectors, vector components... etc.

"A vector is a geometrical object with both magnitude and direction. In simple words, it's a directed line segment, from two points A to B, where the line segment's length is the vector's magnitude and the line's direction from A to B is the direction of the vector AB. "

Well, that's quite a mouthful. I would advise the readers through my previous blog article What`s The Point? to understand more about the concepts of point and line.

Now, let us try to understand the above-provided definition of a vector by understanding line segments. A line segment is a line between two points. And a line is nothing but an infinite set of points. So ultimately a line segment is an infinite set of points between two points. 

Now imagine a two-dimensional space where we have identical line segments scattered all over the space.

Identical How? you may ask me. Because all of those line segments rise 1-unit with respect to the y-axis and run 1-unit with respect to the x-axis. Every line segment has a starting point and an ending point. Let us call the starting point as tail and the ending point as head. Now if you observe, in the above two-dimensional space, every line segment`s tail and head are different. i.e. the cartesian points of the head and tail are different for all the line segments. But the idea that we are more interested in here is the direction of the line segment. All the line segments in the above two-dimensional space are pointing in the same direction. In that sense that they are pointing in the same direction and have the same rise and run with respect to the two-dimensional space we can call these line segments identical.

To understand the idea of head and tail, you can go through the below diagram.

But an important thing to know is that the head B(1,1) is not equivalent to the cartesian point (1,1). Because the line segments tail is not starting from the origin i.e (0,0).

When a line segment`s tail is the origin (0,0), then that line segment or vector is said to be in the standard position. Also, AB is said to be the positional vector of point B when point A is the origin.

So a vector that is in standard position can be simply represented by its head, as below.

A vector can be represented in two ways, a row vector, or a column vector.

The magnitude of the vector is nothing but the length of the line segment. And it can be calculated by using the Pythagoras theorem.
And to find out the magnitude of a vector that is not in the standard position, we can simply use the formula used to calculate the distance between two points.
As discussed in the previous article What`s The Point? Adding a dimension means adding a degree of freedom to the point. Imagine the vector is present in the standard position, the dimensionality of a vector is the number of elements in the vector.

In a one-dimensional space (number line), the dimensionality of the vector below is 1, And in a two-dimensional space, the dimensionality of the vector below is 2.
And similarly, in a three-dimensional space, the dimensionality of the below vector is 3.


Comments

Popular posts from this blog

Tutorial: Setting Up a FastAPI Server with Nginx Reverse Proxy and HTTPS

In this tutorial, I will guide you through setting up a FastAPI server on a remote machine, configuring Nginx as a reverse proxy, and enabling HTTPS using Certbot. Step 1: Setting Up a Non-sudo User on the Remote Machine Create a Non-sudo User: sudo adduser karthik Switch to the New User: su karthik Create SSH Directory and Authorized Keys: cd ~/ mkdir .ssh touch .ssh/authorized_keys Append your local machine's SSH public key to ~/.ssh/authorized_keys on the remote machine. Step 2: Installing Nginx Install Nginx: sudo apt- get update sudo apt- get install nginx Verify Nginx Installation: Open a web browser and enter your remote machine's IP address. You should see the Nginx welcome page. Step 3: Configuring Nginx as a Reverse Proxy Edit Nginx Configuration: sudo nano /etc/ nginx /sites-available/ fastapi Add the following configuration (use a simple webserver for testing this): server { listen 80 ; server_name your_domain; loc...

Sandhya Vandanam - Krishna Yajurveda Paddhati

1. గురు నమస్కారం ఓం మహాగణాధిపతయే నమః శ్రీ గురుభ్యో నమః   హరిః ఓం 2. శుచిః అపవిత్రః పవిత్రో వా సర్వావస్థాం గతోఽపి వా యః స్మరేత్పుండరీకాక్షం స బాహ్యాభ్యన్తరశ్శుచిః పుండరీకాక్ష పుండరీకాక్ష పుండరీకాక్షాయ నమః (ఉద్ధరిణి లో నీళ్లు తీసుకొని కుడి చేతి మధ్యవేలు తో మీద జల్లుకుంటూ మంత్రం చెప్పాలి ) 3. పురాణ ఆచమనం   ఓం కేశవాయ స్వాహా ఓం నారాయణాయ స్వాహా ఓం మాధవాయ స్వాహా ఓం గోవిందాయ నమః (మొదటి మూడు నామాలకు ఆచమనం చేసి నాలుగవ నామానికి చెయ్యి శుభ్రం చేసుకోవాలి.మిగిలిన నామాలు మాములుగా పఠిస్తే  చాలు ) ఓం విష్ణవే నమః ఓం మధుసూదనాయ నమః ఓం త్రివిక్రమాయ నమః ఓం వామనాయ నమః ఓం శ్రీధరాయ నమః ఓం హృషీకేశాయ నమః ఓం పద్మనాభాయ నమః ఓం దామోదరాయ నమః ఓం సంకర్షణాయ నమః ఓం వాసుదేవాయ నమః ఓం ప్రద్యుమ్నాయ నమః ఓం అనిరుద్ధాయ నమః ఓం పురుషోత్తమాయ నమః ఓం అధోక్షజాయ నమః ఓం నారసింహాయ నమః ఓం అచ్యుతాయ నమః ఓం జనార్ధనాయ నమః ఓం ఉపేంద్రాయ నమః ఓం హరయే నమః ఓం శ్రీకృష్ణాయ నమః స్మృత్యాచమనము ౧. త్రిరాచామేత్ (స్వాహా | స్వాహా | స్వాహా ) ౨. ద్విఃపరిమృజ్య (పెదవులు) ౩. సకృదుపస్పృశ్య (పెదవులు) ౪. దక్షిణేన పాణినా సవ్యంప్రోక్ష్య (ఎడమ...

Midnight Musings - Intoxication

Beneath a sky where day and night entwine, The stars emerge as dusk begins to shine... Those are the starting lines of a beautiful poem, But anyway, today I`m not in the mood to write one. So for a change, let's not take the poetic route. And hop straight onto the bandwagon of my thought train of my memories. That beautiful evening, I was  at  Bugle Rock Park ,  a place I love and look forward to visiting  whenever I'm in Bengaluru. I was sitting on a rock, Opposite to me was my dear friend, Sincerely trying to meditate. I had one lollipop in my upper shirt pocket. I removed the wrapper of the candy and placed it in the mud. After a moment, I saw an ant, approaching the candy, It inspected it for some time, with its antlers. After another moment or two, I saw that the whole candy was swarmed by ants.  I started observing the trail of ants leading to the candy. Individually their movements were completely random. But the group of ants together displa...