Pages

Wednesday, August 13, 2014

Whether this or this or both or none (Logical connectives)

This post deals with propositional calculus. In propositional calculus we deal with propositions. Propositions are those sentences which are either true of false. One and the most important thing which is required in propositional calculus is reasoning. Our ancestors were able to form civilizations as they were able to reason things. But a rigorous study of logical reasoning was not done for a long time. The first such study that has been found is by the Greek philosopher Aristotle (384-322 BC). Leibnitz (1646-1716) and George Boole (1815-1864) seriously studied this and came up with with a theory and called it symbolic logic.

'The sun rises in the East.' is a proposition. It is a proposition because it can only take two values either true or false. The sentences which are either true or false are propositions or statements. In mathematics we come across many propositions and statements. x>2 is not a proposition as it can be true or false according as x>2 or x<2. So, 2<3 is a proposition but x<2 is not a proposition.

There are three main connectives in propositional calculus. It is conjunction(∧), disjunction(∨) and negation(¬).

Consider the two statements.
p: I play badminton.
q: I play football.

We can frame two statements with the combination of A and B. It is called compound statement.

I play badminton and I play football.

The above statement is formed by the combination of the two statements with the help of 'and'. This is called conjunction. It is denoted by the symbol '∧'. We can frame a table of all the possibilities. It is called truth table.
 
F is false. T is true.
pqp∧q
FFF
FTF
TFF
TTT

As we can see from the above that conjunction is true only when all the possibilities are true and false if anyone is false.

I play badminton or I play football.

The above statement is formed by the combination of the two statements with the help of 'or'. This is called disjunction. It is denoted by the symbol '∨' We can frame a truth table of all the possibilities.
 
F is false. T is true.
pqpq
FFF
FTT
TFT
TTT

As we can see from the above that conjunction is false only when all the possibilities are false and true if anyone is true.

I don't play football.

The statement 'I play football.' is transformed to 'I don't play football.' with the help of 'negation'. It is denoted by '¬'. The truth table for 'negation' is

F is false. T is true.
q¬q
FT
TF

Negation of q is true when q is false and false when q is true.

Tuesday, August 12, 2014

Whether real or complex (Quadratic Equation)

This post deals with the conditions to check whether the roots are real or complex. The roots are real when the graph really cuts the x-axis. When we look at the graph of a quadratic equation we see a cup like structure or cap like structure. Let us check when it is cup like and cap like. We call the cup like structure concave upward and a cap like structure convex upward. The quadratic equation is ax2 + bx + c = 0. Let it be equal to y or f(x). Now the rate of change of curve is f'(x) = 2ax + b. f(x) is differentiated to obtain f'(x). We again differentiate f'(x) to obtain f''(x), f''(x) = 2a. Now we find the x-coordinate of the point where the slope is zero i.e. f'(x) = 0.

2ax1 + b = 0
⇒ x1 = −b/2a
Now the point on the graph is concave upward or convex upward according as the point at the x-coordinate x1 = −b/2a is maxima or minima. This thing is determined by checking the value of f''(x). If it is positive then the curve has minima and if it is negative then the curve is maxima. We have f''(x) = 2a. It is positive if a is positive and negative when a is negative. Hence we can make following conclusions
  1. concave : The graph is concave upward if a is positive.

    The graph given above is of the function f(x) = 2x2 + 4x - 3.

  2. convex : The graph is convex upward if a is negative.

    The graph given above is of the function f(x) = −2x2 + 4x + 3
Now, we find the y coordinate of the point where it moves upward or downward traveling from x = −∞ at x = -b/2a. It changes its direction at −b/2a to opposite direction of y-axis.
y = ax2 + bx + c
at x = x1 = −b/2a
y1 = a(−b/2a)2 + b(−b/2a) + c
= b2/4a − b2/2a + c
= − b2/4a + c
= − (b2 − 4ac)/4a

Now, four conditions arise as given in the following table
ab2−4acComment
−ve−veThe value of y1 is −ve and the curve is concave downward. The curve will be present below y1. Hence it will cut the x-axis at no points. So the roots are imaginary.

−ve+veThe value of y1 is +ve and the curve is concave downward. The curve will be present below y1. Hence it will cut the x-axis at one or two points. So the roots are real and may be equal if y1 = 0.
+ve−veThe value of y1 is +ve and the curve is concave upward. The curve will be present above y1. Hence it will cut the x-axis at no points. So the roots are imaginary.
+ve+veThe value of y1 is −ve and the curve is concave upward. The curve will be present above y1. Hence it will cut the x-axis at one or two points. So the roots are real and may be equal if  y1 = 0.

Saturday, June 14, 2014

More Dimensions Less freedom

You may wonder how can a person suffer from less freedom if he has more and more dimensions. In mathematics the more dimensions you have the more freedom you have. If there is one dimension then the life of a person is confined to a straight line. If he has two dimensions then he can move in a plane. If he has three dimensions then he can move in space. These three dimensions in physics are called of space. The next dimension which comes is fourth dimension and in physics it is called a dimension of time. These four dimensions clearly define the life of a human being. The first three define the position and the last defines the time he is present in. But according to me if someone lives in many dimensions and the number of dimensions increase then his life becomes more and more specific. Let us see how.

When a person lives in one dimension and its other dimensions are sleeping then  his sleeping dimensions can take any value at any instant of time as they are not defined. Our life will become simple if we consider a person living in three dimensions and the fourth dimension is sleeping. As no specific value is assigned to the fourth dimension so the fourth co-ordinate can be anything. If a person is at (2,2,3) then his fourth coordinate if it comes into being can be 1 or 2 or 3 or 4 or anything among infinite values of numbers. Now if we call the fourth dimension a dimension of time then the person can reach any time if he is able to interact with the fourth dimension. And this thing forms the basis of time travel. Now as we know that we cannot be present at many places at the same time so there can be no more freedom for the fourth dimension and our time dimension exist and is united with the three dimensions we have.  If there would have been only three dimensions then if we are able to interact with the fourth dimension or create a dimension which runs through the three dimensions then we could travel time. Now you would have understood that the more dimensions are defined the more freedom we loose.

The more dimensions are defined the more freedom we loose.

Monday, June 2, 2014

Binomial theorem

We are interested in finding relation between many things. When (a + b) is raised to different powers then relation between previous expansion with the next expansion has a very interesting result. This post is about this and binomial theorem. It is called binomial as it has two variables in it. In this post I will show you how we can arrive at the coefficients of the Binomial Expansion. The foundation of binomial theorem lies in Pascals Triangle. Pascals triangle is an interesting topic and I will cover it in detail. A Pascals Triangle looks like this.

                              1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
so on.
A pascals triangle is generated from coefficients of the expansion of different powers raised to (a + b). Let us expand some of the powers.

(a + b)1 = (a + b)

(a + b)2 = (a2 + 2ab + b2)

(a + b)3 = (a3 + 3a2b + 3ab2 + b3)

(a + b)4 = (a4 + 4a3b + 6a2b2 + 4ab3 + b4)

(a + b)5 = (a5 + 5a4b + 10a3b2 + 10a2b3 + 5ab4 + b5)
Let us express the coefficients in other form:
1   1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
1 6 15 20 15 6 1
so on
Some points to note
  1. The first column is a constant.
  2. The second column is an arithmetic sequence whose common difference is 1. i.e. the terms are represented by n/1.
  3. The third column needs some explanation
    The sequence is 1 3 6 10 15...
    The difference between successive terms is 2 3 4 5....
    The difference of elements again is 1 1 1.
    Don't worry about the method which I am going to follow. Learn the method. If on finding successive differences you reach at a constant in 2 steps. Suppose the sequence is formed by the second power. Here, the equation is an2 + bn + c. Where n is the position of term. Let us take the first three terms of the sequence. Then we get a system of simultaneous equations.

    a + b + c = 1
    4a + 2b + c = 3
    9a + 3b + c = 6

    solving we get, a = 1/2, b = 1/2 and c = 0
    The equation is (1/2)(n2+n). In the table the sequence start from row 2 so we will replace n by (n-1).
    Then the equation becomes (1/2)((n-1)2 + (n-1)).
    Reducing into factors we get n(n-1)/2 = n(n-1)/(1x2)
    The above thing in combinations is represented as nC2.
  4. Following the above process and assuming the sequence depends on third power and solving and replacing n by (n-2) we get nC3.
  5. Following the above process and assuming the sequence depends on fourth power and solving and replacing n by (n-3) we get nC4.
  6. Following the above process we get nC5.
  7. Following the above process we get nC6.
Hence the expansion of (a+b) raised to nth power is

The binomial theorem
(a + b)n = nC0an + nC1an-1b + nC2an-2b2 + ... + nCn-1abn-1 + nCnbn

Saturday, May 31, 2014

Finite and Infinite Sequences

If a set of numbers are such that they follow a specific pattern is called a sequence. If all the terms are added in order then it is called a series. The main types of series and sequences which are taught till intermediate are Arithmetic series and sequences, Geometric Series and Sequences and Harmonic Sequence.
    Look at the following sequences:
  1. 2, 4, 6, 8, 10, 12,...
  2. 3, 9, 27, 81, 243,...
  3. 1/2, 1/4, 1/6, 1/8, 1/10, 1/12,...
  • Arithmetic sequence: The first sequence (2, 4, 6, 8, 10, 12,...) among the three sequences is an arithmetic sequence. 2+4+6+8+10+12+.... is an arithmetic series. A general arithmetic sequence looks like this.
    a, a+d, a+2d, a+3d,... and its corresponding series is a + a+d + a+2d + a+3d +....
    a is called the first term and d is the common difference. The first term of the example sequence is 2 and common difference is 2.

    The nth term of an A.S. is
    tn = a + (n-1)d
    and sum of first n terms is
    Sn = (n/2)(2a + (n-1)d)

    n is the number of terms.

    How to check whether a sequence is arithmetic sequence.

    Difference is found by subtracting any term with its successor term. When all the differences are the same then the sequence is arithmetic sequence and the difference is called common difference.

  • Geometric sequence: The second series (3, 9, 27, 81, 243,...) among the three sequences is a geometric sequence. 3+9+27+81+243+.... is a geometric series. A general geometric sequence looks like this.
    a, ar, ar2, ar3,... and its corresponding series is a + ar + ar2 + ar3 + ....
    a is called the first term and r is the common ratio. The first term in the example is 3 and common ratio is 3.

    The nth term of an G.S. is
    tn = ar(n-1)
    and sum of first n terms is
    Sn = a(1-rn)/(1-r) if r<1
    else
    Sn = a(rn-1)/(r-1) if r>1

    n is the number of terms.

    How to check whether a sequence is geometric sequence.

    Ratio is found by dividing any term with its previous term. When all the ratios are the same then the sequence is geometric sequence and ratio is called common ratio.

  • Harmonic sequence: The third series (1/2, 1/4, 1/6, 1/8, 1/10, 1/12,...) among the three sequences is a harmonic sequence. 1/2+1/4+1/6+1/8+1/10+1/12+.... is a series. A general Harmonic sequence looks like this.
    1/a, 1/(a+d), 1/(a+2d), 1/(a+3d),... and its corresponding series is 1/a + 1/(a+d) + 1/(a+2d) + 1/(a+3d) +....

    (1/a) is called the first term. There is no formula to find the sum of n terms of the series.

    How to check whether a sequence is harmonic sequence.

    Find the reciprocal of all the terms. If the sequence formed is an arithmetic sequence then the sequence is harmonic sequence.

Friday, May 30, 2014

Quadratic equation

A quadratic expression when equated to zero is called a quadratic equation. A quadratic equation looks like this ax2 + bx + c = 0. In this post I will show you a method which is very good to find the solution of a quadratic equation. I found this method.Let us look at the method.

ax2 + bx + c = 0

We can write it as,
(x + b/a)x + c/a = 0
or (x + b/a)x = -c/a

Let A = x + b/a and B = x
Then,A-B = b/a, AB = -c/a and A+B = 2x + b/a
Applying the identity (A+B)2 = (A-B)2 + 4AB
(2x + b/a)2 = (b/a)2 - 4c/a = (b2 - 4ac)/a2
2x + b/a = ±(1/a)√(b2 - 4ac)
x = (-b ± √(b2 - 4ac))/2a

As we can see there are two values which satisfy the equation hence the number of solutions is two and there are two roots. As the solutions of a quadratic equation are called roots.

Let us analyze the roots i.e. when they are real. The value under the square root is positive if b2 - 4ac is positive. When such condition arises then the roots are real. The value b2 - 4ac is called the discriminant. If the discriminant is equal to zero then both the roots are equal. If the discriminant is negative then both the roots are imaginary and they occur in conjugate pairs. If the roots are real and distinct then the graph cuts the x-axis at two different points. If the roots are real and equal then the graph cuts the x-axis at one point. If the roots are imaginary then the graph does not cut the x-axis.

The graph below shows two real roots.
x2 + 5x - 2 = 0
The graph below shows two real roots
x2 + 5x + 6.25 = 0
The graph below represents when roots are imaginary.
x2 + 5x + 8 = 0


Wednesday, May 28, 2014

Linear equations in two variables

Let us first look at the form of linear equations in two variables.

ax + by = c

Such equations arise when we have two things changing at the same time. The simplest is to watch it on a graph. The x-axis forms one variable and the y-axis forms the other variable. A line has infinite number of solutions but we have to get a unique solution. And this is possible only when the number of lines is two and they intersect or in other words we have two linear equations in two variable. Hence to solve a system of two variable linear equation the required equations are

ax+ by = c
dx + ey = f
A system of two variable linear equation is solved either by Substitution method or by Elimination method.

Substitution method
In substitution method we find the value of one variable in terms of the other and substitute it in the other equation.

ax + by = c ----(i)
dx + ey = f ----(ii)
From (i) x = (c - by)/a

Substituting in second we get
d(c - by)/a + ey = f
dc/a - dby/a + ey= f
dc/a - (db - ea)y/a = f
dc - (db - ea)y = fa
(db - ea)y = (dc - fa)
y = (dc - fa)/(db - ea)

Substituting in (i) we get
ax + b(dc - fa)/(db - ea) = c
ax = c - b(dc - fa)/(db - ea)
ax = [c(db - ea) - b(dc - fa)]/(db - ea)
x = [cdb - cea - bdc + bfa]/a(db - ea)
x = (bf - ce)a/a(db - ea)
x = (bf - ce)/(db - ea)

x = (bf - ce)/(db - ea) = (ce - bf)/(ea - db)
y = (dc - fa)/(db - ea) = (fa - dc)/(ea - db)

Elimination method
In elimination method we eliminate one variable by equaling the other variable in both the equations. Then we substitute the value of first variable to get the value of other variable.

ax + by = c ----(i)
dx + ey = f ----(ii)

Multiplying (i) by e and (ii) by b, we get
aex + bey = ce ----(iii)
dbx + bey = fb ----(iv)

Subtracting (iv) from (iii) we get
(ae - db)x = (ce - fb)
x = (ce - fb)/(ae - db)
As substituted above in substitution method we get,
y = (fa - dc)/(ea - db)

x = (ce - bf)/(ea - db)
y = (fa - dc)/(ea - db)