Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

Monday, July 15, 2013

Matrices!

Hello everyone :-)

All right let's begin with the nets and bolts (haha!) of matrices.
What is a matrix? Aside from its namesake movies that raked in millions, what is it?
It's a representation of numbers is what it is.
Disappointed? Don't be, matrices are one of the funnest and most important topics in mathematics. They crop up everywhere like tiny rabbits out of the vast ground that is maths.

Fine. Enough prosaic things for now.

How can you actually represent numbers? We've already discussed the number line, so that's a way. But the number line is limited that it is one-dimensional.
A 1-D, or one dimension, can represent one quantity. It could be simply numbers. Of dresses, chocolates, fruits, so on.

Now for 2-D.

You might be accustomed to the graphs you draw in classes, with the two axes- X and Y. What makes it 2 dimensional? The simplest answer is that there are two quantities. For example:
X could be the candies you want to buy and Y could be the money corresponding to the X candies you want to buy. For instance, 10 candies might cost 200 dollars (in a ridiculously fancy shop maybe!).

How do matrices help? With the matrix structure you can represent numbers in 2-D, and larger dimensions too!

For instance:

if X= [1 2 3 4 5 6]
Y=[20 40 60 80 90 100]

where X= no.of pens
Y= cost of the pens

You could represent it as:














Aside from it being so big( magnified so it will be clearer), what strikes you about this?
From a clumsy set of 2 data, which will be tiresome to write everytime you want to express it, you could draw a simple structure. The first row is X and the second row is Y.
Remember, matrices can be 1 dimensional too, like X and Y are both 1-D. But it can also be used in larger dimensions.

MATLAB IMPLEMENTATION:

Okay, as I discussed in my previous article, I will be providing snippets of matlab code.
Here it is. I've done a printscreen of the matlab windows- which consist of blank M-file and workspace.



Okay the code is as follows:

close all
clear all

X=[1 2 3 4 5 6];
Y=[20 40 60 80 90 100];

C=[X;Y];
disp(C)
plot(X,Y)

This I have written in an M-file, which is where you write your code in MATLAB.

The workspace window is on the left, where the output is displayed.

The plot function plots X vs. Y.


















All right, that concludes it for today. As always, a pleasure and hope you learnt some interesting things! :-)

Tuesday, July 9, 2013

Never Too Late For Now!

Wow, that reminds me so much of the series 30 Rock!  :-)

Anyway, getting back to maths- I thought we could try matrices now. We're done with the number line and congruence, and I thought I might post some problems for today, but then this seemed urgent, particularly because I'm working on a concept called PCA (Principle Component Analysis) now, which is used heavily in imaging, face recognition and even, as I read in a recent paper, speech recognition! This is a fascinating concept that relies heavily on matrices. Very, very heavily. Also, this is a concept that is poorly explained in many of the tutorials I found. Now, I'm not going to be doing this immediately, but I hope to do so soon so more people out there find it's not such a mesh of complexity as they think it is!

Also, another thing- I'm going to be posting a few lines of code of MATLAB, an excellent, excellent piece of software that helps in computing in posts. A lot of technical papers rely on this, and I've started to do that too! Check these links to get to know this better:

http://en.wikipedia.org/wiki/MATLAB
http://www.mathworks.in/products/matlab/

Don't get scared- I'm going to go as slow as possible. I'm doing this because if I had come across MATLAB sooner, I wouldn't have gone through some of the rough patches I did.

However these are rules I strongly encourage you to follow:

1) Please do not start relying TOO heavily on this. You MUST be familiar with the concepts instead of asking it to do everything for you without you knowing what it's doing in the first place! Not following this rule may seem to be an easy way out but trust me, when you start writing codes with increasing complexity, you'll be stuck if you don't understand what each line does!

2)Try and learn concepts of C Programming as well. This will help you greatly in your projects as you get older. I'll try and start posting C lang. codes too as soon as possible!

3)Don't freak out. Don't be frightened. This is the most important rule. There is NOTHING you cannot do or understand. Give it time and ASK, ASK, ASK. Ask away if you have doubts. Remember, no judgment in brainstorming, understanding and asking valid doubts.

Okay, are we set? I will post a new entry and leave this one for people to get to know the rules and changes :-)

More Conditions To Prove Congruence

Hello again :-)
Right, so we were discussing conditions to prove congruence in the last post and covered two. Namely the SSS (Side Side Side) and the ASA (Angle Side Angle).
I'm going to repeat what I said before- that you need to apply intuition to many of these methods. Establishing congruence can be tricky- but if you look closely and apply both the conditions you're learning and a certain amount of intuition it is guaranteed that you can figure it out!
All right, now we discuss the three remaining methods.

3) SAS (Side Angle Side):
I like to call this the sister condition of the ASA. They are switched but similar.
To arrive at this condition and to understand it, first draw a side like we did in the ASA.
Assume AB=1 cm. (Fig. 1)
Please not it is not to scale in this blog- if I neglected to mention that earlier I'm sorry. I suggest that you  draw it to scale when you do it yourself, at least when you're still figuring out the conditions. Seeing is believing, they say!

Now, draw angle 30 degrees shooting out of A, and extend AC till AC=0.5 cm. You can change the numbers, but follow the steps. (Fig. 2)

Finally, draw a line to connect C and B. (Fig. 3)
The value of CB is not wholly important in this case, so I am not including the value.
If done right, it should look like the figures below.


Now do the same for DEF.
You should land up with:


Observe DEF and ABC are exactly the same. Hence ABC≅DEF

4) AAS: The Angle Angle Side

This condition is perhaps the most complex and you can understand this in a variety of ways. Let me show you my technique and I hope it helps!
Now, I want you to follow the following steps. Put away your pens and paper or keep them, but just try to imagine.
So we looked at the ASA. Let us try to use the ASA to understand the AAS.

We have a side AB= 1 cm.
Shoot an angle BAC= 30 degrees from point A.
Now we're left with line AC, but we really don't know what to do with it. How much should we extend it or retract it?
But we are given another piece of important information- the angle ACB.
I hope you're following this. This can be confusing, but it's learnt best slowly, steadily with lots of imagination. Put it this work now, and you can handle confusing sums later with a lot of confidence!

All right, getting back-
You may remember the property- sum of angles of a triangle is ALWAYS equal to 180 degrees.
When you have two angles, you can find out the third. In our case, we can find out angle CBA.
When we have angle CBA and angle BAC, along with side AB, what does that mean/

It means we're back to our good old ASA.

I'll leave the diagrams to you. Let me know in case of doubts!

5) Ah, finally. RHS. This is a special one- for right angled triangles ONLY!
This is the funnest one to prove, to me at least.
I assume you're familiar with Pythagoras's theorem:

a^2 + b^2 = c^2\!\,

where c= hypotenuse
a,b= sides of the right triangle

If you've forgotten, check this out.

So the RHS just states that if the hypotenuse of two right triangles are equal, and one of the other two sides are also correspondingly equal.

Look at the diagram. CB=EF (hypotenuse of triangle ABC= that of triangle DEF)

Also AC=DF
They are right triangles so they already have angle BAC= angle EDF
So, we have proved congruency. ABC≅DEF
You can do the same thing with sides AB and DE instead of AC and DF too.













Okay, so we're done for this session. Hope you've understood the concepts. Feel free to comment or e-mail :-)

Monday, July 8, 2013

The Congruence of Triangles

I have to apologize yet again for my delay in coming up with this post. There's been so many things to do, like work, work and coming up with even more excuses :-)
Anyway, let's not lose any more time and start.

So, in my last post, I had outlined the basics of congruence. Which means things being exactly the same.
Let's look at the usability of this concept. When you realize the importance of something, it's much more fun learning about it.

In many cases, we hear things like 'She looks SO MUCH like you!' or 'I have the EXACT same dress'. While this may be the truth, it may be an exaggeration as well. Looking like someone is not the same as being just like them- Anna and Melanie both might have blond hair, but Anna if Anna has green eyes and Melanie has grey eyes, the concept of congruence, of exactness, is immediately ruled out.
An exact same dress- if Anna has a brown shirt in a small size and Melanie has the same thing in a larger size, say medium, the dresses aren't exactly the same.

These may be small examples, but they are significant in learning about this concept that at many times proves frustratingly elusive.
But without this concept, we wouldn't have cola cans all being the same size, we might end up with a random size that takes all the fun out. We wouldn't have the impressive precision that mass produced products have- your favourite brand of shampoo, conditioner, chocolate, and so on.

This link talks about more examples- read it to get a further understanding.

All right, so I'm hoping you're starting to get the drift.
Congruency is exactness, fine, but how do you prove it?
A subjective way congruency can be expressed is saying something like 'I like the series 'Arrested Development' as much as I like 'Breaking Bad' '. As much as. In this case, equally.
Unfortunately, that's too arbitrary and people around you might disagree. So, to establish objectivity, we have a set of rules by which you can prove to everyone that two triangles (sorry, not series! not yet, at least!) are the same.

1)SSS: This stands for Side Side Side. Namely, if EACH side of one triangle is EQUAL to the CORRESPONDING side of the OTHER triangle, the triangles are said to be congruent.

Look at the triangles above. There's something missing. The naming of the triangle points which is VERY IMPORTANT TO ESTABLISH CONGRUENCY.

Better, I hope.
Now.
AB=DE
BC=EF
AC=DF


Yay! Thus ABC  DEF. Notice the difference from '='. It is merely the sign that represents mathematical congruence.

2)ASA: Angle Side Angle
I'm going to ask you to apply some intuition to this one. Imagine a triangle with  one of its sides AB. Imagine JUST the side. Assume it is of length 1 cm.


Now imagine two angles shooting out of its ends.
Extend the lines till they meet. Assume angles 30 degrees and 60 degrees.



OK, we have a triangle now!
Now do the same thing for line DE, again assuming DE= 1 cm etc. etc.. You land up with DEF. Try doing it yourself for practice.
You know ABC  DEF because we arrived at both the same way!

The remaining conditions will be discussed in the next post. Any questions, feel free to ask in comments or email :-)