Pages

Showing posts with label system. Show all posts
Showing posts with label system. Show all posts

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)

Linear Equations in one variable

Linear Equations are the starting point of two branches of mathematics. One deals with roots and other deals with solutions. Linear equation can be single variable or multi variable. The complexity of the solutions increases as we move to higher number of variables. As we will see every degree equation can be represented as multi variable linear equations. The point here is that the equations are related and a quadratic and cubic has 3 and 4 unknowns in it. Let us talk about the single variable linear equation. A single variable linear equation is very simple and is taught from the very basic grades or classes. A single variable linear equation looks like this:

ax + b = 0.

There can be many variant of it. ax + b = c or ax + c = bx + d or ax + c = bx, etc.

All we need to know is basic arithmetic. All the laws of basic arithmetic also works in algebra. To solve a linear equation in one variable we perform operations like this:

Let us solve different types of linear equations:
  1. ax + b = 0
    Transpose b to right hand side and divide by a.
    x = -b/a
  2. ax + b = c
    Transpose b to RHS and divide by a.
    x = (c - b)/a
  3. ax + b = cx
    Transpose cx to LHS and b to RHS
    ax - cx = -b
    (a-c)x = -b
    x = -b/(a-c)
Solution

The simplest way to solve a linear equation is to transpose all the constants to RHS and terms containing variable to LHS and divide RHS by the coefficient of resulting LHS.

Thursday, May 8, 2014

Method of differences

There are many occurrences when we have certain numbers and we have to find relation between them. The relation is usually in form of expressions. The expression can contain log function, exponential function and algebraic functions.The simplest among them is to find polynomial expressions.In this post I will describe how to find functions when we know a series which has its terms separated by certain constant. The method is similar to differentiation but a lot different from them.

Suppose we have the numbers (from a function) like given in the following table

161528456691
We find the difference of successive term
5913172125
We again find the difference of successive term
44444
We find the differences till we get a constant term for all

As we got the constant term so we can create a table of possible polynomials for all. We start from the bottom.

c''44444
a'x+b'5913172125
ax2+bx+c161528456691

We got a quadratic because we had three rows in the table.
Now we have
f(x) =ax2+bx+c
f(0) = c = 1
f(1) = a + b + c = 6
f(2) = 4a + 2b + c = 15
from f(0): c =1
from f(1): a + b = 5
from f(2): 4a + 2b = 14
so solving the simultaneous equations a = 2 and b = 3 hence the function is f(x) = 2x2 + 3x + 1.
Above it must be known from where the values start for x and what is their differences in each step.

Friday, December 27, 2013

Linear equations

Linear equations are those equations which are linear in its variables i.e. the power of the variables are 1. There can be many kinds of linear equations depending upon the number of variables used. a single variable linear equation has one variable, a double variable linear equation has two variables, a triple variable linear equation has three variables and so on. The linear equations with two or more variables is called a multi-variable linear equation. A single variable linear equation looks like this: ax = b where x is the variable. A double variable linear equation looks like this: ax + by = c and a triple variable linear equation looks like this: ax + by + cz = d. The number of variables can extend to any number of variables.

The solution of a linear requires as much equations as there are variables in it. A single variable linear equation requires one equation. a double variable linear equation requires two variables and a three variable linear equation requires three equations. The number of variables is equal to the number of equations. When we find the solution of a set of linear equations then the solutions can be unique or dependent or no solution. The solution of a linear equation can be found with the help of substitution, elimination or with the help of determinants. The solution using determinants is very cumbersome so to simplify the steps we use Gauss algorithms which use matrix to solve such equations. Let us look at the solutions of some linear equations.

Single variable linear equation
A single variable linear equation ax = b has solution x = b/a. When we plot it on a graph then we get a straight line parallel to y-axis. As the value of y is not present in the equation therefore the solution is independent of y.

Double variable linear equation

A double variable linear equation can be solved either by substitution method or elimination method. The solution on a graph is the point of intersection of the lines represented by the two equations.

The equations are 2x − y = 3 and 4x + y = −6

Let us solve the above two equations by substitution method and elimination method.

Substitution method

In substitution method we express one variable in terms of the other and substitute it to get value of one variable. Then substitute it in any equation to get value of other variable.

Step 1:Express any one equation in terms of one variable.
2x−y = 3 ⇒ y = 2x − 3
Step 2:Substitute it in next equation.
4x + y = −6
⇒ 4x + 2x − 3 = −6
⇒ 6x = −3
⇒ x = −(1/2) = −.5
Step 3:Substitute value in the first equation.
y = 2x − 3 = 2(−.5) − 3 = −4
So solution is x = −.5 and y = −4

Elimination method

The elimination method is based on the fact that if one variable is removed from the equation then the reduced equation contains only one variable. After we can find the solution. Substitute one solution in one equation to get the other solution.

Step 1: Eliminate one variable by making coefficient of that variable equal in two equations.
2x − y = 3
4x + y = −6
Add the two equations
6x = −3
x = −(1/2) = −.5
Substitute in anyone
2(−.5) − y = 3
y = − 4

the linear equations of multi variables is found by Gauss elimination method. We will discuss about such methods in some other posts.

Tuesday, December 24, 2013

Number System

Our ancestors used different kinds of symbols to mean different things. Some of those symbols were used to represent message and some were used to count things. The symbols which were used to count things entered into mathematics after a long phase of change. the symbols which transferred message entered the domain of language used to express what a person speaks. Language also went many phases of change. Here we are talking about numbers. So let us concentrate more on it. The most common number of symbols used in any language for the representation of numbers is 10. Maya civilization used 20 symbols. Actually they were not 20 but the representation was for 20. The use of ten symbols can be attributed due to the numbers of fingers in someone's hand. Many systems existed but the system which was adopted by most of the countries today is Decimal Number System.

With the advent of technology other number systems came into being. Some were used to simplify the task of the representation of older systems. The number of symbols used in a number system is called its base or radix of the number system. Let us look at the most important number systems used today

Decimal Number System

The Decimal Number System uses 10 symbols. Its base is 10. They are 0,1,2,3,4,5,6,7,8 and 9. It is known as Hindu-Arabic System as it was developed in India and modified in Arab. The system initially does not had a zero in it. All the multiples of ten used different symbols. After a lot of time zero was used in representation of the multiples of ten.

Binary Number System

Binary Number System is used in computers. It has two symbols 0 and 1. Its base is 2. Some kind of binary logic was used by Egyptians in the process to find multiplication and division.

Octal Number System

Octal Number System is also used in computers but only as representation and simplification of binary numbers. There are 8 symbols used in Octal Number System. They are 0,1,2,3,4,5,6 and 7. Its base is 8.

Hexadecimal Number System

Hexadecimal Number System has sixteen symbols. The use of hexadecimal number system is similar to octal number system. The symbols used are 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E and F. The letters used are due to the scarcity of symbols. Its base is 16.