MAT10f Midterm PDF
MAT10f Midterm PDF
Again multiply eq. (1) by a2 and eq. (2) by a1 and subtracting, we get
Note that x and y from equations (3) and (4) has the same denominator a1b2 –
a2b1. So the system of equations (1) and (2) has solution only when a1b2 – a2b1
≠ 0.
The solutions for x and y of the system of equations (1) and (2) can be
written directly in terms of determinants without any algebraic operations, as
Here
If
and
Then,
and
SAMPLE PROBLEM
Solve the system using Cramer’s rule given the equations below
SOLUTION
for |Ax|, replacing the first column of |A| with the corresponding constants
2, 5 and 8, we have
And
Hence
1.
2.
3.
4.
5.
INTRODUCTION
There are many other functions for which the root cannot be determined so
easily. Before the advent of digital computers, there were a number of ways to
solve for the roots of such equations. For some cases, the roots could be
obtained by direct methods. Although there were equations like this that could
be solved directly, there were many more that could not. In such instances, the
only alternative is an approximate solution technique.
OBJECTIVE
After completing this module, you should be able to
understand what roots problems are and where they occur in engineering and
science
Knowing how to determine a root graphically
Knowing how to solve a roots problem with the bisection method
DISCUSSION
BRACKETING METHODS
1. GRAPHICAL METHODS
A simple method for obtaining an estimate of the root of the equation f(x) = 0
is to make a plot of the function and observe where it crosses the x axis.
This point, which represents the x value for which f (x) = 0, provides a rough
approximation of the root.
Graphical techniques are of limited practical value because they are not very
precise. However, graphical methods can be utilized to obtain rough estimates
of roots
EXAMPLE
Graph the equation. This could either be done by making a table of values or
by computer or a graphing calculator.
The parabola cross the x-axis at x = -2 and x = 5. These are the roots of the
quadratic equation.
Note:
A quadratic equation has two roots if its graph has two x-intercepts
A quadratic equation has one root it its graph has one x-intercept
A quadratic equation has no real solutions if its graph has no x-
intercepts.
The following goes through the actual computations involved in the method
1. Choose lower xl and upper xu guesses for the root such that the function
changes sign over the interval. This can be checked by ensuring that
f( xl )f(xu) < 0.
2. An estimate of the root xr is determined by
EXAMPLE
Determine the root of the given equation x² - 3 = 0 for x ∈ [1, 2].
SOLUTION
Given: x²-3 = 0
The given function is continuous, and the root lies in the interval [1,
2].
So, at the seventh iteration, we get the final interval [1.7266, 1.7344]
Hence, 1.7344 is the approximated solution.
Using similar triangles (Fig. 5.12), the intersection of the straight line
with the x axis can be estimated as
Eq. (3-a)
which can be solved for
Eq. (3-b)
(Eq. 3-c)
This is one form of the method of false position. Note that it allows the
computation of the root xr as a function of the lower and upper guesses xl and
xu. It can be put in an alternative form by expanding it:
Or
This is the false-position formula. The value of xr computed with Eq. (3-c) then
replaces whichever of the two initial guesses, xl or xu, yields a function value
with the same sign as f(xr). In this way, the values of xl and xu always bracket
the true root. The process is repeated until the root is estimated adequately.
EXAMPLE
Find a root of an equation f(x)= 2x³ - 2x - 5 using False Position method
(regula falsi method)
SOLUTION
Here 2x³ -2x -5 = 0
Here
1st iteration :
Here f(1)=-5<0 and f(2)=7>0
2nd iteration :
Here f(1.41667)=-2.14699<0 and f(2)=7>0
∴ Now, Root lies between x0=1.41667 and x1=2
4th iteration :
Here f(1.58924)=-0.15063<0 and f(2)=7>0
5th iteration :
Here f(1.59789)=-0.0361<0 and f(2)=7>0
6th iteration :
Here f(1.59996)=-0.00858<0 and f(2)=7>0
7th iteration :
Here f(1.60045)=-0.00203<0 and f(2)=7>0
INTRODUCTION
From previous topic you have learned how to find the roots of an equation.
Now, you now apply your minimization results to the interpolation and least
squares fitting of data and functions.
OBJECTIVE
After completing this module, you should be able to solve linear systems with
more equations than unknowns.
DISCUSSION
Polynomial Interpolation
Given the following n+1 data points
Quadratic Interpolation
Given: (x0,y0 ) , (x1,y1 ) and (x2,y2)
A parabola passes from these three points.
Similar to the linear case, the equation of this parabola can be written
as
EXAMPLE
For the data points (2, 3) and (5, 7) find P1(x).
SOLUTION
The least squares solution to a linear system is one means of getting as close
as one can to an actual solution.
EXAMPLE
Xi Yi XiYi Xi²
1 0.5 0.5 1
2 2.5 5 4
3 2 6 9
4 4 16 16
5 3.5 17.5 25
6 6 36 36
7 5.5 38.5 49
Ʃ 28 24 119.5 140
answer
OBJECTIVE
After completing this module, you should be able to determine the maximum or
minimum values that an equation may have.
DISCUSSION
The optimum is the point where the curve is flat. In mathematical terms, this
corresponds to the x value where the derivative f’(x) is equal to zero.
Additionally, the second derivative, f”(x), indicates whether the optimum is
a minimum or a maximum: if f”(x)< 0, the point is a maximum; if f”(x)> 0, the
point is a minimum.
Most of the mathematical models you have dealt with to this point have been
descriptive models. That is, they have been derived to simulate the behavior of
an engineering device or system. In contrast, optimization typically deals with
finding the “best result,” or optimum solution, of a problem. Thus, in the
context of modeling, they are often termed prescriptive models since they can
be used to prescribe a course of action or the best design
Now we can develop a similar approach for locating the optimum of a one-
dimensional function. For simplicity, we will focus on the problem of finding
a maximum. When we discuss the computer algorithm, we will describe the minor
modifications needed to simulate a minimum.
The initial step of the golden-section search algorithm involves choosing two
interior points according to the golden ratio.
(Eq. 6-1)
(Eq. 6-2)
The first condition specifies that the sum of the two sublengths l1 and l2 must
equal the original interval length. The second says that the ratio of the
lengths must be equal. Equation (6-1) can be substituted into Eq. (6-2).
or
which can be solved for the positive root
EXAMPLE
Use the golden-section search to find the maximum of
SOLUTION
First, the golden ratio is used to create the two interior points
Because f(x2) > f(x1), the maximum is in the interval defined by xl , x2, and
x1. Thus, for the new interval, the lower bound remains xl = 0, and x1 becomes
the upper bound, that is, xu = 2.472. In addition, the former x2 value becomes
Note that the current maximum is highlighted for every iteration. After the
eighth iteration, the maximum occurs at x = 1.4427 with a function value of
1.7755. Thus, the result is converging on the true value of 1.7757 at x =
1.4276.
INSTRUCTION: Analyze and solve the given problems in a neat and precise manner.
Label your final answer. Submit in Long bond paper, due date May 12, 2023
ROOTS OF AN EQUATIONS
Find the roots of the given function using
A) Graphical Method
B) Bisection Method
C) False-Position Method
2. 𝑓(𝑥) = 𝑒 −𝑥
INTERPOLATION
3. The following logarithmic table is given below. a) Interpolate log(5) using the
points x=4 and x=6, b) Interpolate log(5) using the points x=4.5 and x=5.5, c)
Interpolate log(5) using the points x=4.5, x=5.5 and x=6 ( Quadratic
Interpolation)
Note: The exact value is log(5) = 0.69897
5. Supposed your company have figures: the turnover of the last five (5) years as
shown in table below.Determine the equation of the line best fit for 6th year and the
estimated turnover for 2021.
Year Xi Yi
2015 1 80
2016 2 162
2017 3 250
2018 4 300
2020 5 408
7. Maximize the daily profit in producing x1 metal frames F1 (profit P90.00 per
frame) and x2 frames F2(profit P50.00 per frame) subject to x1 + _x0005_ 3x2 ≦
18(material), x1 + x2 ≦ 10(machine hours), 3x1 + x2 ≦ 24 (labor).
8. Maximize f = 2x1 _x0005_+ x2 _x0005_+ 3x3 subject to 4x1+ 3x2 + 6x3 = 12.
10. Maximize f = 2x1 + 3x2 subject to 5x1+ 3x2 ≦ 105, 3x1+ 6x2 ≦ 126.