Unit
Unit
LINEAR SYSTEMS
Introduction:
A system of linear equations (or linear system) is a collection of two
or more linear equations involving the same variables.
Gaussian elimination
The Gaussian elimination method is known as the row reduction
algorithm for solving linear equations systems. It consists of a
sequence of operations performed on the corresponding matrix of
coefficients. We can also use this method to estimate either of the
following:
• The rank of the given matrix
• The determinant of a square matrix
• The inverse of an invertible matrix
To perform row reduction on a matrix, we have to complete a
sequence of elementary row operations to transform the matrix till
we get 0s (i.e., zeros) on the lower left-hand corner of the matrix as
much as possible. That means the obtained matrix should be an
upper triangular matrix. There are three types of elementary row
operations; they are:
Swapping two rows and this can be expressed using the notation ↔,
for example, R2 ↔ R3
Multiplying a row by a nonzero number, for example, R1 → kR2
where k is some nonzero number
Adding a multiple of one row to another row, for example, R2 → R2 +
3R1
The obtained matrix will be in row echelon form. The matrix is said
to be in reduced row-echelon form when all of the leading coefficients
equal 1, and every column containing a leading coefficient has zeros
elsewhere. This final form is unique; that means it is independent of
the sequence of row operations used.
UNIT-2
INTERPOLATION
Introduction:
Interpolation is a type of estimation, a method of constructing
(finding) new data points based on the range of a discrete set of
known data points
Newton’s Interpolation
• Forward Difference
Newton's forward interpolation formula is a method used to
approximate the value of a function near the beginning of a set
of values. It is used when the values of the independent variable
are at equal intervals and the value of the independent variable
is near the beginning of the set of values.
• Backward Difference
Newton's backward interpolation is a method for
approximating a function with a polynomial near the end that
passes through a set of equally spaced points.
• Newton Divided difference
Newton's divided difference interpolation method allows us to
create a polynomial function from a set of data points. This
polynomial is accurate at each of the data points and becomes
generally more accurate as we add more data points.
Forward difference
Backward difference
Divided difference
Lagrange Interpolation
Interpolation is a method of deriving a simple function from the given
discrete data set such that the function passes through the provided
data points. This helps to determine the data points in between the
given data ones. This method is always needed to compute the value
of a function for an intermediate value of the independent function. In
short, interpolation is a process of determining the unknown values
that lie in between the known data points. It is mostly used to
predict the unknown values for any geographical related data points
such as noise level, rainfall, elevation, and so on.
The unknown value on the data points can be found using the linear
interpolation and Lagrange’s interpolation formula.
Q: USING LAGRANGE INTERPOLATION FIND THE FORM OF Y(X) FROM THE FOLLOWING TABLE
AND HENCE DETERMINE LN (2)
X Y=LN(X)
0 -12
1 0
3 12
4 24
UNIT-3
INTEGRATION
There are various methods through which we may integrate complex
problems. The following methods have been used: -
The Euler Modified Method uses the average of the slopes at two
points to estimate the value of the function at the next point. This
reduces error and provides a more accurate estimate than the original
Euler's Method, which only uses the slope at the current point
RK2
The Runge-Kutta 2nd order method is a numerical technique used to
solve an ordinary differential equation of the form
dy/dx=f(x,y), y(x0)=y0
Euler’s method is given by
RK4 Method:
The Runge-Kutta method provides the approximate value of y for a
given point x. Only the first order ODEs can be solved using the
Runge Kutta RK4 method.
Comparison between Euler modified, RK2 and RK4
Unit-5
BVP (Boundary Value
problems)
Two Point Boundary value problems
A two-point boundary value problem is a set of coupled first-order ordinary
differential equations (ODEs) with boundary conditions at two points.
Neumann condition
In the Neumann boundary condition, the derivative of the dependent variable is
known in all parts of the boundary:
Robin condition
The Robin boundary condition is a weighted combination of the Dirichlet
boundary and the Neumann boundary condition in all the parts of the boundary:
That is
Python code: