0% found this document useful (0 votes)
262 views3 pages

Numerical Differentiation & Integration Lab

The document outlines a laboratory exercise for CENGR 3140 at Central Luzon State University, focusing on numerical differentiation and integration. It details objectives, required equipment, and procedures for calculating derivatives and integrals using various numerical methods. Students are instructed to use specific data sets and their ID numbers to perform calculations and present their solutions in a structured format.

Uploaded by

Russel Miranda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
262 views3 pages

Numerical Differentiation & Integration Lab

The document outlines a laboratory exercise for CENGR 3140 at Central Luzon State University, focusing on numerical differentiation and integration. It details objectives, required equipment, and procedures for calculating derivatives and integrals using various numerical methods. Students are instructed to use specific data sets and their ID numbers to perform calculations and present their solutions in a structured format.

Uploaded by

Russel Miranda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Republic of the Philippines

CENTRAL LUZON STATE UNIVERSITY


College of Engineering

DEPARTMENT OF CIVIL ENGINEERING

CENGR 3140 LAB


(Numerical Solutions to CE Problem)

Full Name: ID Number:


Laboratory Work No. 5 & 6
NUMERICAL DIFFERENTIATION AND INTEGRATION

OBJECTIVE:

a. To utilize finite difference formulas in solving for the approximate derivative of


a point in a given data set.
b. To utilize close and open integration methods in solving for approximate
integral of a function within the given integration limits.

EQUIPMENT:

a. Calculator

PROCEDURES:

a. Let the last four digits of your ID number to be variables A, B, C, and D


respectively (e.g. for an ID number of 19-0621, A = 0, B = 6, C = 2, and D =
1). Substitute the value of these variables on the given data for all the
problems below (do not multiply).
b. Perform the necessary calculations of the following problems. Write your
complete solutions in separate sheets of A4-sized bond paper. Box your final
answers rounded to four decimal places as needed. Always perform exact
calculations.

Numerical Differentiation

1. Given the following data:

x 1 2 3 4 5

f(x) 10.6A33 10.78B2 10.97C6 12.1D14 12.4A17

find the first derivative 𝑓'(𝑥) at the point 𝑥 = 3 using:

a. three-point forward difference formula


b. three-point backward difference formula
c. two-point central difference formula

2. Given the following data:

x 0.6 0.8 1.0 1.2 1.4

f(x) 5.C296 3.6A55 2.75D1 2.27B7 2.0C13

find the second derivative 𝑓''(𝑥) at the point 𝑥 = 1. 0 using:

a. three-point forward difference formula


b. three-point backward difference formula
c. three-point central difference formula

3. The following data show estimates of the population of Liberia in


selected years between 1960 and 2010:

Year 1960 1970 1980 1990 2000 2010

Population 1.1B2 1.42C 1.9AB 2.CD1 2.8A1 [Link]


(millions)

calculate the rate of growth of the population in millions per year for
2010 using:

a. two-point backward difference formula


b. three-point backward difference formula

Using the slope in 2010 from part (b), apply the two-point central
difference formula to extrapolate and predict the population in the year
2020.

Numerical Integration

1. The function 𝑓(𝑥) is given in the following tabulated form. Compute


3.0
∫ 𝑓(𝑥)𝑑𝑥 with ℎ = 0. 5 using:
0

x 0 0.5 1.0 1.5 2.0 2.5 3.0

f(x) 0.5DC 0.6AB 0.89D 1.301 2.A39 3.2CB 4.B71

a. composite trapezoidal method


b. composite Simpson’s ⅓ method
c. composite Simpson’s ⅜ method
2.4
3𝑥
2. Evaluate the integral 𝐼 = ∫ 2 𝑑𝑥 using the following methods:
0 1+𝑥
a. Simpson’s ⅓ method, divide the whole interval into six
subintervals
b. Simpson’s ⅜ method, divide the whole interval into six
subintervals
c. three-point Gauss quadrature
d. four-point Gauss quadrature

The exact value of the integral is 𝐼 =


3
2 (𝑙𝑛 ). Compare the results
169
25
and discuss the reasons for the differences.

Common questions

Powered by AI

Numerical integration methods estimate the area under the curve of a function by approximating it as a sum of known geometric shapes (trapezoids or parabolas) over discrete intervals. Composite methods enhance accuracy by subdividing the integral into multiple smaller intervals and applying simple integration rules (like trapezoidal or Simpson's) over each subinterval, thereby reducing the effect of curvature and variability within each section. The advantage of composite methods lies in their ability to trade off potentially high local errors against smaller increments, distributing the total error more evenly across the domain and thereby maintaining overall accuracy, particularly important for functions with rapid variations .

The two-point central difference formula provides a symmetric approximation that can be valuable for extrapolation purposes as it considers data points equally spaced on both sides of the point of interest. For projecting Liberia's population in 2020, this method benefits from using previously acquired growth rates and predictions towards future values while mitigating potential bias inherent in forward or backward difference methods that favor recent or past data overweighted. In the absence of experimental future data, using established past information through this symmetric approach yields an extrapolated estimate that maintains consistency with the deduced growth trends .

Gauss quadrature methods, such as three-point and four-point Gauss quadrature, optimize integral approximation by using non-equidistant points and corresponding weights, which can yield more accurate results than traditional methods like Simpson's rules when dealing with similar numbers of function evaluations. This is because Gauss quadratures are designed to maximize accuracy by minimizing errors through an optimal choice of points based on orthogonal polynomials. Traditional methods depend on equidistant intervals, which might not capture variations in function behavior as effectively. However, Gauss quadrature is best suited for smooth and polynomial-like functions, possibly facing integration difficulty in functions with higher complexity unless adequately tuned .

The composite trapezoidal method approximates the area under a curve by dividing the area into trapezoids; it is simple and computationally straightforward, but it might not be as accurate for functions with curved sections. Composite Simpson's 1/3 method uses parabolas to approximate sections of the graph, increasing accuracy through its quadratic interpolation, especially effective for evenly spaced intervals. Composite Simpson's 3/8 method approximates using cubic polynomials, allowing for more flexibility and precision in certain cases (for instance, when multiple subintervals don't easily divide into two). Each method provides increasing accuracy with correspondingly increased computational requirements, with the trade-off being computational complexity and scope for curved function fit .

Data spacing and selection critically affect the accuracy of numerical differentiation since finite difference formulations are highly sensitive to interval choices. Sparse or irregular data often lead to increased truncation errors, as wider intervals can underestimate or overshoot real rates of change. For instance, with the given population data, selecting closely spaced data points maximizes accuracy, minimizing interpolation errors when estimating the rate of change with backward and forward difference formulas. As such, equidistant datasets offer more reliable estimations by ensuring that differences computed are representative and less prone to misleading values due to uneven temporal distributions or sparse sampling selections .

Accurate implementation of numerical techniques in differentiation and integration supports engineering problem-solving by enabling precise approximation of solutions to complex, real-world problems where exact solutions may be infeasible. They provide efficiency by reducing computational demands through smart approximation instead of solving complex equations directly. In engineering applications, this translates to faster calculations for structural loads or material stress analyses, improving project timelines and designs. Reliability is maintained through robust method selection that aligns with data quality and desired accuracy, ensuring results are consistent and valuable for practical decision-making across diverse engineering scenarios involving dynamic and intricate systems .

Potential sources of error when using finite difference methods include truncation errors arising from approximating an infinite series with a finite one, round-off errors from manipulating floating-point arithmetic, and errors from data sparsity or noise. These errors can impact derivative calculations by introducing significant deviations from true values, particularly when higher-order differences or poorly spaced datasets intensify the relative error magnification. Truncation errors are influenced by the spacing of points because wider spacings lead to less accurate approximations; round-off errors become prominent in iterative calculations requiring precision. The impact is compounded when these errors interact, affecting the reliability of derivative approximations .

The concept of numerical differentiation is illustrated through finite difference formulas such as the three-point forward difference, three-point backward difference, and two-point central difference formulas, which are used to approximate the derivative of a function at a given point. These methods involve using adjacent points in data to estimate the rate of change or slope. The three-point forward difference uses the known values at a point and two succeeding points, the three-point backward uses the current and two preceding points, and the two-point central uses a symmetric approach around the point for approximation. Each method has its trade-offs in terms of accuracy depending on the number of points and the positioning of the data used .

Understanding the basis of numerical integration methods is crucial for comparing results with exact values as it provides insight into the sources and nature of any discrepancies observed. Numerical methods rely on approximation techniques like midpoints, trapezoids, or polynomials, each introducing distinct approximation errors such as truncation or round-off. By comprehending these foundations, one can evaluate why deviations exist when juxtaposed with analytic results which are free from such errors, identifying whether these differences stem from method choice, function behavior, or interval selection. This understanding guides more informed selection of integration schemes and expected accuracy relative to theoretical results .

Numerical methods like finite differences for derivatives and numerical integration provide powerful tools in civil engineering for approximating solutions to complex problems where analytical solutions are intractable. Benefits include their ability to handle real-world data with irregularities and to perform computations that accommodate complex loading and material behaviors in structural analysis. However, limitations arise from their dependency on data resolution and quality; higher levels of noise or data inadequacies can lead to erroneous predictions. The efficiency of these methods is reliant on appropriate discretization, and errors can be exacerbated by poor approximations and boundary condition setups. Understanding these confines is crucial to leveraging numerical methods effectively in engineering projects .

You might also like