This document discusses differential equations and methods for solving them numerically. It begins by defining first and second order differential equations. It then introduces Taylor series expansions for solving differential equations and describes Euler's method and the modified Euler's method. Euler's method uses the slope at the start of each interval while modified Euler's method uses the average slope across each interval for improved accuracy. The document provides examples of applying these numerical methods and analyzes the associated errors.
This document discusses differential equations and methods for solving them numerically. It covers:
- Types of differential equations including first-order and second-order equations.
- Taylor series expansion as a method for solving differential equations.
- Euler's method and modified Euler's method for numerically approximating solutions to differential equations. This involves calculating slopes at interval points and averaging them.
- Sources of error in numerical methods and how to reduce error by decreasing step size in the interval. Tables show decreasing error with smaller step sizes.
So in summary, it presents analytical and numerical techniques for solving differential equations, including Taylor series, Euler's methods, and analyzing error in numerical approximations.
Introduction to Numerical Methods for Differential Equationsmatthew_henderson
The document introduces the Euler method for numerically approximating solutions to initial value problems (IVPs). It defines IVPs and shows an example. The Euler method uses the derivative approximation y(x+h) ≈ y(x) + hf(x,y) to march forward in small steps h to construct a table of approximate y-values. For the example IVP, the Euler method produces values that begin to resemble the exact solution. While not exact, the errors are small. The method is derived from the definition of the derivative and works because it approximates the tangent line at each step.
The document discusses numerical methods for solving ordinary differential equations (ODEs), including Taylor's series method and Picard's method. It provides examples of applying Taylor's series method to approximate solutions of first order ODEs at different values of x to 4-5 decimal places of accuracy. The examples given include solving ODEs with initial conditions and computing solutions at multiple x values by taking terms from the Taylor series expansion.
The document discusses initial value problems for first order differential equations and Euler's method for solving such problems numerically. It provides an example problem where Euler's method is used to find successive y-values for the differential equation dy/dx = x with the initial condition y(0) = 1. The y-values found using Euler's method are then compared to the actual solution, showing small errors that decrease as the step size h is reduced.
The document discusses solving ordinary differential equations using Taylor's series method. It presents the Taylor's series for the first order differential equation dy/dx = f(x,y) and gives an example of solving the equation y = x + y, y(0) = 1 using this method. The solution is obtained by taking the Taylor's series expansion and determining the derivatives of y evaluated at x0 = 0. The values of y are computed at x = 0.1 and x = 0.2. A second example solves the differential equation dy/dx = 3x + y^2 using the same approach.
This document describes Picard's method for solving simultaneous first order differential equations numerically. It presents the iterative formula used in Picard's method and applies it to solve four example problems of simultaneous differential equations. The problems are solved over multiple iterations to obtain successive approximations of the solutions at increasing values of x, with the approximations being carried to three or four decimal places.
The document provides examples of solving linear and nonlinear inequalities algebraically and graphing their solution sets. For linear inequalities, the solutions are intervals of real numbers defined by the solutions to the corresponding equalities. For nonlinear inequalities, the solutions are unions of intervals where the factors of the corresponding equalities have the same sign. The document also demonstrates solving compound inequalities and inequalities involving rational expressions.
Howard, anton calculo i- um novo horizonte - exercicio resolvidos v1cideni
This document contains exercises related to functions and graphs. Exercise set 1.1 contains word problems involving various functional relationships and graphs. Exercise set 1.2 involves evaluating and sketching functions, determining domains and ranges, and identifying piecewise functions. Exercise set 1.3 involves selecting appropriate axis ranges and scales to graph functions over specified domains.
This document discusses differential equations and methods for solving them numerically. It covers:
- Types of differential equations including first-order and second-order equations.
- Taylor series expansion as a method for solving differential equations.
- Euler's method and modified Euler's method for numerically approximating solutions to differential equations. This involves calculating slopes at interval points and averaging them.
- Sources of error in numerical methods and how to reduce error by decreasing step size in the interval. Tables show decreasing error with smaller step sizes.
So in summary, it presents analytical and numerical techniques for solving differential equations, including Taylor series, Euler's methods, and analyzing error in numerical approximations.
Introduction to Numerical Methods for Differential Equationsmatthew_henderson
The document introduces the Euler method for numerically approximating solutions to initial value problems (IVPs). It defines IVPs and shows an example. The Euler method uses the derivative approximation y(x+h) ≈ y(x) + hf(x,y) to march forward in small steps h to construct a table of approximate y-values. For the example IVP, the Euler method produces values that begin to resemble the exact solution. While not exact, the errors are small. The method is derived from the definition of the derivative and works because it approximates the tangent line at each step.
The document discusses numerical methods for solving ordinary differential equations (ODEs), including Taylor's series method and Picard's method. It provides examples of applying Taylor's series method to approximate solutions of first order ODEs at different values of x to 4-5 decimal places of accuracy. The examples given include solving ODEs with initial conditions and computing solutions at multiple x values by taking terms from the Taylor series expansion.
The document discusses initial value problems for first order differential equations and Euler's method for solving such problems numerically. It provides an example problem where Euler's method is used to find successive y-values for the differential equation dy/dx = x with the initial condition y(0) = 1. The y-values found using Euler's method are then compared to the actual solution, showing small errors that decrease as the step size h is reduced.
The document discusses solving ordinary differential equations using Taylor's series method. It presents the Taylor's series for the first order differential equation dy/dx = f(x,y) and gives an example of solving the equation y = x + y, y(0) = 1 using this method. The solution is obtained by taking the Taylor's series expansion and determining the derivatives of y evaluated at x0 = 0. The values of y are computed at x = 0.1 and x = 0.2. A second example solves the differential equation dy/dx = 3x + y^2 using the same approach.
This document describes Picard's method for solving simultaneous first order differential equations numerically. It presents the iterative formula used in Picard's method and applies it to solve four example problems of simultaneous differential equations. The problems are solved over multiple iterations to obtain successive approximations of the solutions at increasing values of x, with the approximations being carried to three or four decimal places.
The document provides examples of solving linear and nonlinear inequalities algebraically and graphing their solution sets. For linear inequalities, the solutions are intervals of real numbers defined by the solutions to the corresponding equalities. For nonlinear inequalities, the solutions are unions of intervals where the factors of the corresponding equalities have the same sign. The document also demonstrates solving compound inequalities and inequalities involving rational expressions.
Howard, anton calculo i- um novo horizonte - exercicio resolvidos v1cideni
This document contains exercises related to functions and graphs. Exercise set 1.1 contains word problems involving various functional relationships and graphs. Exercise set 1.2 involves evaluating and sketching functions, determining domains and ranges, and identifying piecewise functions. Exercise set 1.3 involves selecting appropriate axis ranges and scales to graph functions over specified domains.
Howard, anton cálculo ii- um novo horizonte - exercicio resolvidos v2Breno Costa
This document provides 40 examples of solving initial value problems for ordinary differential equations using separation of variables. The examples cover both first and second order linear differential equations with various forcing functions. Solutions are obtained by separating variables, integrating, and applying initial conditions to determine constants of integration. Special cases where the standard procedure fails due to singularities are also discussed.
The document provides solutions to physics problems for chapter 4 of mathematics 2. It includes solutions for determining derivatives and differentials of various functions with respect to variables like x, y, r, and θ. The highest level of mathematics involved includes taking second order derivatives and solving simultaneous equations. Sample problems include determining derivatives of functions that define relationships between polar and Cartesian coordinates.
This document discusses various numerical methods for solving differential equations, including:
1) Euler's method, which uses the slope at the start of each interval to estimate the solution.
2) Modified Euler's method, which uses the average slope over each interval.
3) Higher-order Runge-Kutta methods, which use multiple slope estimates within each interval to improve accuracy.
This document discusses numerical methods for solving differential equations and calculating integrals. It introduces Euler's method, modified Euler's method (Heun's method), Taylor's method of order two, Lagrange interpolation, and Simpson's rule for numerical integration. Euler's method approximates the slope at each step to calculate the next value. Modified Euler's method takes the average of the slopes. Taylor's method uses the slope and second derivative. Lagrange interpolation fits a polynomial through given data points. Simpson's rule approximates the integral of a function using a weighted sum over intervals.
This document discusses numerical methods for solving initial value problems for ordinary differential equations. It introduces the Taylor series method and Runge-Kutta method for solving initial value problems. Examples are provided to demonstrate solving first and second order differential equations using these two methods and to compare their results. Stability of numerical solutions is also discussed.
This document summarizes approaches for structured decomposition of multi-view data. It discusses challenges with separate and joint decompositions of views that ignore relationships between views. Linked component models represent each view via shared and individual structures to address this. The document presents the Joint and Individual Variation Explained (JIVE) model as an example. It discusses challenges in determining ranks and proposes the Simultaneous Learning of Ranks and Decomposition (SLIDE) model to address this. Open questions are raised about generalizing SLIDE to more than two views and simultaneously learning ranks and decomposition.
This document contains 30 multi-variable integral problems with solutions. The integrals range from simple to more complex, involving functions of one or more variables over various regions.
1. The document describes an investigation of infinite sequences and calculating the sum of the first n terms as n approaches infinity.
2. The analysis shows that as n increases, the sum approaches the value of the parameter a, regardless of the values of a and x. However, larger values of a and x cause the sum to converge more slowly.
3. The general conclusion is that the sum of the infinite sequence (lna)n/n! as n approaches infinity equals the value of the parameter a.
This document provides an overview of the topics covered in Lecture 3 of a Calculus I course, including:
- Evaluating functions and using trial and improvement to find solutions to equations
- Differentiating polynomial expressions and finding the gradient of a curve at a given point
- Key terms like function, polynomial, curve, tangent, and derivative
- Examples of using trial and improvement to find solutions between values and determining points where the gradient of a curve is zero
This document provides an overview of the key topics covered in Lecture 4, including:
1. How to sketch quadratic and cubic curves by finding intercepts and stationary points.
2. How to use the second derivative to determine if a stationary point is a maximum, minimum, or point of inflection.
3. Rules for simplifying expressions using indices and how to convert numbers to and from standard form.
1. The document discusses using the Echelon method to solve systems of linear equations.
2. Examples are provided to demonstrate solving systems with 2x2 and 2x3 equations that have no solution, one solution, or an infinite number of solutions (represented by a line or surface).
3. Manipulations between rows are explained, such as multiplying a row by a constant or adding rows together.
1. The document discusses using the Echelon method to solve systems of linear equations.
2. Examples are provided to demonstrate solving systems with 2x2 and 2x3 equations that have no solution, one solution, or an infinite number of solutions (represented by a line or surface).
3. Key steps in the Echelon method include row operations to put the system in row echelon form and then reading the solution based on the reduced form.
The document discusses integration, which is the reverse process of differentiation. It provides formulas for integrating polynomial expressions like xn and axn and explains how to find the constant of integration C. Examples are given for integrating expressions and finding the area under a curve by integrating between limits of integration.
1. The document discusses concepts related to expectation and variance of random variables including expected value, variance, moments, and examples of calculating these for different probability distributions like uniform, normal, exponential, and Rayleigh.
2. Problems at the end provide examples of computing expected value, variance, and cumulative distribution function for random variables following different distributions. Solutions show the calculations and formulas used.
3. Key formulas introduced include definitions of expected value and variance, the relationship between them, and formulas for calculating moments, expected value, and variance for specific distributions. Examples demonstrate applying the concepts and formulas to problems.
1. The document discusses bases and dimensions for vector spaces. A basis for a subspace enables visualizing the subspace as a k-dimensional hyperplane through the origin in Rn.
2. Examples are provided of determining if sets of vectors form a basis by checking if they are linearly independent. The dimension of solution spaces of homogeneous systems is also determined based on the rank of the systems.
3. Specific examples involve finding bases for solution spaces of systems of linear equations by reducing the coefficient matrices to echelon form and writing the general solutions in terms of the basis vectors.
This document discusses solving second-order linear differential equations near a regular singular point, which is done by assuming power series solutions and obtaining recursion relations between the coefficients. Specifically, it provides an example of solving the differential equation ( ) 012 2=++′−′′ yxyxyx near the regular singular point x=0. Two linearly independent solutions are obtained in the forms of ( )( )∑∞=1!12753)1( nnnxaxy and ( )( )∑∞=12/1!12531)1( nnnxaxy , yielding the general solution ( )0),()()( 2211 >+= xxycxycxy .
A semi analytic method for solving nonlinear partial differential equationsAlexander Decker
1) The document describes Adomian's decomposition method, a semi-analytic technique for solving nonlinear partial differential equations. It involves decomposing the solution as an infinite series and determining the components recursively.
2) As an example, the method is applied to solve two nonlinear PDEs: 1) a diffusion equation and 2) a nonlinear wave equation. For each, the PDE is rewritten in operator form before applying the decomposition approach to determine the solution components.
3) The solutions obtained for both examples using only a few terms of the decomposition series are shown to match the exact solutions, demonstrating the effectiveness of the Adomian method.
Mathematics (from Greek μάθημα máthēma, “knowledge, study, learning”) is the study of topics such as quantity (numbers), structure, space, and change. There is a range of views among mathematicians and philosophers as to the exact scope and definition of mathematics
Solving second order ordinary differential equations (boundary value problems) using the Least Squares Technique. Contains one numerical examples from Shah, Eldho, Desai
B.tech ii unit-2 material beta gamma functionRai University
1. The document discusses the gamma and beta functions, which are defined in terms of improper definite integrals involving exponential and power functions.
2. Examples are provided to demonstrate properties and applications of the gamma function, including evaluating integrals involving the gamma function.
3. The beta function is defined in terms of an integral from 0 to 1, and its relationship to the gamma function is described.
This document provides an introduction to differential equations. It defines a differential equation as an equation containing an unknown function and its derivatives. Ordinary differential equations are presented, along with definitions of the order and degree of a differential equation. Methods for solving differential equations are introduced, including Taylor series methods, Euler's method, and error analysis. Examples are provided to demonstrate applying these methods.
Numerical Method for UOG mech stu prd by Abdrehman Ahmed አብድረህማን አህመድ
The document discusses several numerical methods:
1. The bisection method is used to find the positive root of a function between 2 and 3 iterations.
2. The secant method estimates the root of a function with initial estimates over 3 iterations.
3. Linear regression is used to find the equation of the straight line that best fits a set of tabular points.
4. Fourier approximation expresses a pH variation over time as a summation of cosine and sine terms.
Howard, anton cálculo ii- um novo horizonte - exercicio resolvidos v2Breno Costa
This document provides 40 examples of solving initial value problems for ordinary differential equations using separation of variables. The examples cover both first and second order linear differential equations with various forcing functions. Solutions are obtained by separating variables, integrating, and applying initial conditions to determine constants of integration. Special cases where the standard procedure fails due to singularities are also discussed.
The document provides solutions to physics problems for chapter 4 of mathematics 2. It includes solutions for determining derivatives and differentials of various functions with respect to variables like x, y, r, and θ. The highest level of mathematics involved includes taking second order derivatives and solving simultaneous equations. Sample problems include determining derivatives of functions that define relationships between polar and Cartesian coordinates.
This document discusses various numerical methods for solving differential equations, including:
1) Euler's method, which uses the slope at the start of each interval to estimate the solution.
2) Modified Euler's method, which uses the average slope over each interval.
3) Higher-order Runge-Kutta methods, which use multiple slope estimates within each interval to improve accuracy.
This document discusses numerical methods for solving differential equations and calculating integrals. It introduces Euler's method, modified Euler's method (Heun's method), Taylor's method of order two, Lagrange interpolation, and Simpson's rule for numerical integration. Euler's method approximates the slope at each step to calculate the next value. Modified Euler's method takes the average of the slopes. Taylor's method uses the slope and second derivative. Lagrange interpolation fits a polynomial through given data points. Simpson's rule approximates the integral of a function using a weighted sum over intervals.
This document discusses numerical methods for solving initial value problems for ordinary differential equations. It introduces the Taylor series method and Runge-Kutta method for solving initial value problems. Examples are provided to demonstrate solving first and second order differential equations using these two methods and to compare their results. Stability of numerical solutions is also discussed.
This document summarizes approaches for structured decomposition of multi-view data. It discusses challenges with separate and joint decompositions of views that ignore relationships between views. Linked component models represent each view via shared and individual structures to address this. The document presents the Joint and Individual Variation Explained (JIVE) model as an example. It discusses challenges in determining ranks and proposes the Simultaneous Learning of Ranks and Decomposition (SLIDE) model to address this. Open questions are raised about generalizing SLIDE to more than two views and simultaneously learning ranks and decomposition.
This document contains 30 multi-variable integral problems with solutions. The integrals range from simple to more complex, involving functions of one or more variables over various regions.
1. The document describes an investigation of infinite sequences and calculating the sum of the first n terms as n approaches infinity.
2. The analysis shows that as n increases, the sum approaches the value of the parameter a, regardless of the values of a and x. However, larger values of a and x cause the sum to converge more slowly.
3. The general conclusion is that the sum of the infinite sequence (lna)n/n! as n approaches infinity equals the value of the parameter a.
This document provides an overview of the topics covered in Lecture 3 of a Calculus I course, including:
- Evaluating functions and using trial and improvement to find solutions to equations
- Differentiating polynomial expressions and finding the gradient of a curve at a given point
- Key terms like function, polynomial, curve, tangent, and derivative
- Examples of using trial and improvement to find solutions between values and determining points where the gradient of a curve is zero
This document provides an overview of the key topics covered in Lecture 4, including:
1. How to sketch quadratic and cubic curves by finding intercepts and stationary points.
2. How to use the second derivative to determine if a stationary point is a maximum, minimum, or point of inflection.
3. Rules for simplifying expressions using indices and how to convert numbers to and from standard form.
1. The document discusses using the Echelon method to solve systems of linear equations.
2. Examples are provided to demonstrate solving systems with 2x2 and 2x3 equations that have no solution, one solution, or an infinite number of solutions (represented by a line or surface).
3. Manipulations between rows are explained, such as multiplying a row by a constant or adding rows together.
1. The document discusses using the Echelon method to solve systems of linear equations.
2. Examples are provided to demonstrate solving systems with 2x2 and 2x3 equations that have no solution, one solution, or an infinite number of solutions (represented by a line or surface).
3. Key steps in the Echelon method include row operations to put the system in row echelon form and then reading the solution based on the reduced form.
The document discusses integration, which is the reverse process of differentiation. It provides formulas for integrating polynomial expressions like xn and axn and explains how to find the constant of integration C. Examples are given for integrating expressions and finding the area under a curve by integrating between limits of integration.
1. The document discusses concepts related to expectation and variance of random variables including expected value, variance, moments, and examples of calculating these for different probability distributions like uniform, normal, exponential, and Rayleigh.
2. Problems at the end provide examples of computing expected value, variance, and cumulative distribution function for random variables following different distributions. Solutions show the calculations and formulas used.
3. Key formulas introduced include definitions of expected value and variance, the relationship between them, and formulas for calculating moments, expected value, and variance for specific distributions. Examples demonstrate applying the concepts and formulas to problems.
1. The document discusses bases and dimensions for vector spaces. A basis for a subspace enables visualizing the subspace as a k-dimensional hyperplane through the origin in Rn.
2. Examples are provided of determining if sets of vectors form a basis by checking if they are linearly independent. The dimension of solution spaces of homogeneous systems is also determined based on the rank of the systems.
3. Specific examples involve finding bases for solution spaces of systems of linear equations by reducing the coefficient matrices to echelon form and writing the general solutions in terms of the basis vectors.
This document discusses solving second-order linear differential equations near a regular singular point, which is done by assuming power series solutions and obtaining recursion relations between the coefficients. Specifically, it provides an example of solving the differential equation ( ) 012 2=++′−′′ yxyxyx near the regular singular point x=0. Two linearly independent solutions are obtained in the forms of ( )( )∑∞=1!12753)1( nnnxaxy and ( )( )∑∞=12/1!12531)1( nnnxaxy , yielding the general solution ( )0),()()( 2211 >+= xxycxycxy .
A semi analytic method for solving nonlinear partial differential equationsAlexander Decker
1) The document describes Adomian's decomposition method, a semi-analytic technique for solving nonlinear partial differential equations. It involves decomposing the solution as an infinite series and determining the components recursively.
2) As an example, the method is applied to solve two nonlinear PDEs: 1) a diffusion equation and 2) a nonlinear wave equation. For each, the PDE is rewritten in operator form before applying the decomposition approach to determine the solution components.
3) The solutions obtained for both examples using only a few terms of the decomposition series are shown to match the exact solutions, demonstrating the effectiveness of the Adomian method.
Mathematics (from Greek μάθημα máthēma, “knowledge, study, learning”) is the study of topics such as quantity (numbers), structure, space, and change. There is a range of views among mathematicians and philosophers as to the exact scope and definition of mathematics
Solving second order ordinary differential equations (boundary value problems) using the Least Squares Technique. Contains one numerical examples from Shah, Eldho, Desai
B.tech ii unit-2 material beta gamma functionRai University
1. The document discusses the gamma and beta functions, which are defined in terms of improper definite integrals involving exponential and power functions.
2. Examples are provided to demonstrate properties and applications of the gamma function, including evaluating integrals involving the gamma function.
3. The beta function is defined in terms of an integral from 0 to 1, and its relationship to the gamma function is described.
This document provides an introduction to differential equations. It defines a differential equation as an equation containing an unknown function and its derivatives. Ordinary differential equations are presented, along with definitions of the order and degree of a differential equation. Methods for solving differential equations are introduced, including Taylor series methods, Euler's method, and error analysis. Examples are provided to demonstrate applying these methods.
Numerical Method for UOG mech stu prd by Abdrehman Ahmed አብድረህማን አህመድ
The document discusses several numerical methods:
1. The bisection method is used to find the positive root of a function between 2 and 3 iterations.
2. The secant method estimates the root of a function with initial estimates over 3 iterations.
3. Linear regression is used to find the equation of the straight line that best fits a set of tabular points.
4. Fourier approximation expresses a pH variation over time as a summation of cosine and sine terms.
This document discusses various topics related to integration including:
1. The anti-derivative and how it is the reverse of differentiation.
2. Indefinite integrals which do not have limits and require an arbitrary constant.
3. Definite integrals which do have limits and are used to find the area under a curve between two points.
4. Applications of integration such as using definite integrals to find the area under a curve or revolving an area about an axis to find the volume of a solid.
Department of MathematicsMTL107 Numerical Methods and Com.docxsalmonpybus
Department of Mathematics
MTL107: Numerical Methods and Computations
Exercise Set 8: Approximation-Linear Least Squares Polynomial approximation, Chebyshev
Polynomial approximation.
1. Compute the linear least square polynomial for the data:
i xi yi
1 0 1.0000
2 0.25 1.2840
3 0.50 1.6487
4 0.75 2.1170
5 1.00 2.7183
2. Find the least square polynomials of degrees 1,2 and 3 for the data in the following talbe.
Compute the error E in each case. Graph the data and the polynomials.
:
xi 1.0 1.1 1.3 1.5 1.9 2.1
yi 1.84 1.96 2.21 2.45 2.94 3.18
3. Given the data:
xi 4.0 4.2 4.5 4.7 5.1 5.5 5.9 6.3 6.8 7.1
yi 113.18 113.18 130.11 142.05 167.53 195.14 224.87 256.73 299.50 326.72
a. Construct the least squared polynomial of degree 1, and compute the error.
b. Construct the least squared polynomial of degree 2, and compute the error.
c. Construct the least squared polynomial of degree 3, and compute the error.
d. Construct the least squares approximation of the form beax, and compute the error.
e. Construct the least squares approximation of the form bxa, and compute the error.
4. The following table lists the college grade-point averages of 20 mathematics and computer
science majors, together with the scores that these students received on the mathematics
portion of the ACT (Americal College Testing Program) test while in high school. Plot
these data, and find the equation of the least squares line for this data:
:
ACT Grade-point ACT Grade-point
score average score average
28 3.84 29 3.75
25 3.21 28 3.65
28 3.23 27 3.87
27 3.63 29 3.75
28 3.75 21 1.66
33 3.20 28 3.12
28 3.41 28 2.96
29 3.38 26 2.92
23 3.53 30 3.10
27 2.03 24 2.81
5. Find the linear least squares polynomial approximation to f(x) on the indicated interval
if
a. f(x) = x2 + 3x+ 2, [0, 1]; b. f(x) = x3, [0, 2];
c. f(x) = 1
x
, [1, 3]; d. f(x) = ex, [0, 2];
e. f(x) = 1
2
cosx+ 1
3
sin 2x, [0, 1]; f. f(x) = x lnx, [1, 3];
6. Find the least square polynomial approximation of degrees 2 to the functions and intervals
in Exercise 5.
7. Compute the error E for the approximations in Exercise 6.
8. Use the Gram-Schmidt process to construct φ0(x), φ1(x), φ2(x) and φ3(x) for the following
intervals.
a. [0,1] b. [0,2] c. [1,3]
9. Obtain the least square approximation polynomial of degree 3 for the functions in Exercise
5 using the results of Exercise 8.
10. Use the Gram-Schmidt procedure to calculate L1, L2, L3 where {L0(x), L1(x), L2(x), L3(x)}
is an orthogonal set of polynomials on (0,∞) with respect to the weight functions w(x) =
e−x and L0(x) = 1. The polynomials obtained from this procedure are called the La-
guerre polynomials.
11. Use the zeros of T̃3, to construct an interpolating polynomial of degree 2 for the following
functions on the interval [-1,1]:
a. f(x) = ex, b. f(x) = sinx, c. f(x) = ln(x+ 2), d. f(x) = x4.
12. Find a bound for the maximum error of the approximation in Exercise 1 on the interval
[-1,1].
13. Use the zer.
Question bank Engineering Mathematics- ii Mohammad Imran
its a very short Revision of complete syllabus with theoretical as well Numerical problems which are related to AKTU SEMESTER QUESTIONS, UPTU PREVIOUS QUESTIONS,
Mathematics (from Greek μάθημα máthēma, “knowledge, study, learning”) is the study of topics such as quantity (numbers), structure, space, and change. There is a range of views among mathematicians and philosophers as to the exact scope and definition of mathematics
Here are the steps to solve this problem:
Let x = one number
Let y = the other number
x + y = 84
x = 3y
x + 3y = 84
4y = 84
y = 21
x = 3(21) = 63
The numbers are 21 and 63.
Introduction to Neural Networks and Deep Learning from ScratchAhmed BESBES
If you're willing to understand how neural networks work behind the scene and debug the back-propagation algorithm step by step by yourself, this presentation should be a good starting point.
We'll cover elements on:
- the popularity of neural networks and their applications
- the artificial neuron and the analogy with the biological one
- the perceptron
- the architecture of multi-layer perceptrons
- loss functions
- activation functions
- the gradient descent algorithm
At the end, there will be an implementation FROM SCRATCH of a fully functioning neural net.
code: https://github.com/ahmedbesbes/Neural-Network-from-scratch
numericai matmatic matlab uygulamalar ali abdullahAli Abdullah
The document discusses various interpolation methods including Newton's forward and backward interpolation methods. Newton's forward interpolation method uses forward difference operators to calculate interpolated values near the beginning of a data set. Newton's backward interpolation method uses backward difference operators to calculate interpolated values near the end of a data set. The document provides examples of applying Newton's forward and backward interpolation methods to calculate interpolated values using given data tables. It also discusses writing a MATLAB program to calculate interpolated values using a third degree polynomial interpolation.
This document provides examples and explanations for evaluating double and triple integrals using Cartesian and polar coordinates. It begins by introducing double and triple integrals and their notation. It then discusses the evaluation of double and triple integrals, including the process of integrating inner integrals first and noting that integral limits should proceed from variable to constant. Several examples are worked through to demonstrate evaluating double and triple integrals over different regions of integration. The document also covers changing the order of integration and evaluating area integrals using double integrals in both Cartesian and polar coordinate systems.
The document discusses solving systems of nonlinear equations in two variables. It provides examples of nonlinear systems that contain equations that are not in the form Ax + By = C, such as x^2 = 2y + 10. Methods for solving nonlinear systems include substitution and addition. The substitution method involves solving one equation for one variable and substituting into the other equation. The addition method involves rewriting the equations and adding them to eliminate variables. Examples demonstrate both methods and finding the solution set that satisfies both equations.
This document provides a review of various algebra and trigonometry concepts including exponents, radicals, functions, polynomials, factoring, rational expressions, graphing, equations, inequalities, trigonometric functions and identities, inverse trigonometric functions, and solving trigonometric equations. It includes over a dozen practice problems for each topic to help reinforce the concepts and formulas through worked examples.
This document discusses the fixed point iteration method for solving nonlinear equations numerically. It begins with an overview of the method, explaining that it involves rewriting equations in the form x=g(x) and then iteratively calculating xn+1=g(xn) until convergence. The document then provides an example of using the method to solve the equation x3+x2-1=0. It shows rewriting the equation, choosing an initial guess, iteratively calculating the next value of x, and checking for convergence. The document concludes by explaining how to implement the fixed point iteration method numerically using loops in code.
The document discusses differentiation and rules for finding derivatives. It contains:
1) An introduction to differentiation, defining it as the rate of change of a function with respect to another variable.
2) Explanation of the first principle of differentiation (definition of derivatives) using a graph and formula.
3) Examples of using the first principle to find the derivatives of various functions.
4) Discussion of the power rule of differentiation, where the derivative of a function is the power as a coefficient times the same function with the power decreased by 1.
So in summary, the document covers the definition and methods for finding derivatives, specifically the first principle and power rule of differentiation.
This document provides a methodology for solving definite and indefinite integrals of various types, including simple, logarithmic, exponential, trigonometric, and their inverses. It contains over 40 examples of integrals worked out step-by-step, covering the basic rules for evaluating indefinite integrals of functions like polynomials, trigonometric functions, exponentials, and their inverses.
This document is an internship project report submitted by Siddharth Pujari to the Indian Institute of Space Science and Technology. The report focuses on advanced control system design for aircraft and simulating aircraft trajectory. It includes modeling an aircraft's state space model in MATLAB to test controllability. The report also covers theoretical aspects of stability of linear systems, linearizing nonlinear models, controllability of linear systems using the Kalman criterion and transition matrix, and applying these concepts to simulate aircraft controllability in MATLAB.
Assignment For Matlab Report Subject Calculus 2Laurie Smith
This document provides the requirements and assignments for a Calculus 2 Matlab report. It includes topics such as: finding partial derivatives of various functions, studying extrema of functions, evaluating double and triple integrals, and calculating mass and centers of mass of solids. Students are divided into groups and will be randomly assigned a topic involving solving concrete problems numerically using Matlab.
This document contains information about specialist maths exam problems from 2010-2013, including median exam scores, common student errors, and exam questions and solutions. The median exam score was a C+ and 49% of students received a B or higher. Handwriting and setting out work clearly were identified as areas of concern. Example exam questions and solutions covered topics like complex numbers, calculus, vectors, and differential equations.
This document provides examples of finding Taylor and Maclaurin series expansions for various functions. It gives the step-by-step workings for finding the first few terms of series expansions centered at different points for functions like ln(x), 1/x, sin(x), x^4 + x^2, (x-1)e^x, and others. It also discusses using these expansions to approximate integrals and find sums of infinite series.
CA in Patna is a team of professional Chartered Accountant which are providing best services like Company Registration, Income Tax Return, Sales Tax Consultants, Bank Audit and other services specially in Patna.
CA in Dwarka is a team of professional Chartered Accountant which are providing best services like Company Registration, Income Tax Return, Sales Tax Consultants, Bank Audit and other services specially in Dwarka and Delhi NCR.
CA in Dwarka is a team of professional Chartered Accountant which are providing best services like Company Registration, Income Tax Return, Sales Tax Consultants, Bank Audit and other services specially in Dwarka and Delhi NCR.
CA in Dwarka is a team of professional Chartered Accountant which are providing best services like Company Registration, Income Tax Return, Sales Tax Consultants, Bank Audit and other services specially in Dwarka and Delhi NCR.
Css Founder is Website Designing Company working with the mission of Website For Everyone Website Start From 999/-* More Packages are available. we are best company in website designing company in Delhi, as we are also working in Website Designing company in Mumbai.
Css Founder is Website Designing Company working with the mission of Website For Everyone Website Start From 999/-* More Packages are available. we are best company in website designing company in Delhi, as we are also working in Website Designing company in Mumbai.
Css Founder is Website Designing Company working with the mission of Website For Everyone Website Start From 999/-* More Packages are available. we are best company in website designing company in Delhi, as we are also working in Website Designing company in Mumbai.
This document provides steps for designing a website. It begins by explaining the purpose of a website and identifying key considerations like audience and goals. It then lists rules for website design, such as understanding the user perspective and respecting interface conventions. The document outlines the website design process, including planning, following design rules, using website building tools to create pages, and types of pages. It also lists common website development languages and tools. The document concludes by encouraging the use of templates and pre-designed elements to efficiently build a website.
CA in Patna is a team of professional Chartered Accountant which are providing best services like Company Registration, Income Tax Return, Sales Tax Consultants, Bank Audit and other services specially in Patna.
CA in Dwarka is a team of professional Chartered Accountant which are providing best services like Company Registration, Income Tax Return, Sales Tax Consultants, Bank Audit and other services specially in Dwarka and Delhi NCR.
CA in Dwarka is a team of professional Chartered Accountant which are providing best services like Company Registration, Income Tax Return, Sales Tax Consultants, Bank Audit and other services specially in Dwarka and Delhi NCR.
CA in Dwarka is a team of professional Chartered Accountant which are providing best services like Company Registration, Income Tax Return, Sales Tax Consultants, Bank Audit and other services specially in Dwarka and Delhi NCR.
Css Founder is Website Designing Company working with the mission of Website For Everyone Website Start From 999/-* More Packages are available. we are best company in website designing company in Delhi, as we are also working in Website Designing company in Mumbai.
Css Founder is Website Designing Company working with the mission of Website For Everyone Website Start From 999/-* More Packages are available. we are best company in website designing company in Delhi, as we are also working in Website Designing company in Mumbai.
Css Founder is Website Designing Company working with the mission of Website For Everyone Website Start From 999/-* More Packages are available. we are best company in website designing company in Delhi, as we are also working in Website Designing company in Mumbai.
Css Founder is Website Designing Company working with the mission of Website For Everyone Website Start From 999/-* More Packages are available. we are best company in website designing company in Delhi, as we are also working in Website Designing company in Mumbai.
Css Founder is Website Designing Company working with the mission of Website For Everyone Website Start From 999/-* More Packages are available. we are best company in website designing company in Delhi, as we are also working in Website Designing company in Mumbai.
Css Founder is Website Designing Company working with the mission of Website For Everyone Website Start From 999/-* More Packages are available. we are best company in website designing company in Delhi, as we are also working in Website Designing company in Mumbai.
Css Founder is Website Designing Company working with the mission of Website For Everyone Website Start From 999/-* More Packages are available. we are best company in website designing company in Delhi, as we are also working in Website Designing company in Mumbai.
Css Founder is Website Designing Company working with the mission of Website For Everyone Website Start From 999/-* More Packages are available. we are best company in website designing company in Delhi, as we are also working in Website Designing company in Mumbai.
Strategies for Effective Upskilling is a presentation by Chinwendu Peace in a Your Skill Boost Masterclass organisation by the Excellence Foundation for South Sudan on 08th and 09th June 2024 from 1 PM to 3 PM on each day.
Executive Directors Chat Leveraging AI for Diversity, Equity, and InclusionTechSoup
Let’s explore the intersection of technology and equity in the final session of our DEI series. Discover how AI tools, like ChatGPT, can be used to support and enhance your nonprofit's DEI initiatives. Participants will gain insights into practical AI applications and get tips for leveraging technology to advance their DEI goals.
Macroeconomics- Movie Location
This will be used as part of your Personal Professional Portfolio once graded.
Objective:
Prepare a presentation or a paper using research, basic comparative analysis, data organization and application of economic information. You will make an informed assessment of an economic climate outside of the United States to accomplish an entertainment industry objective.
বাংলাদেশের অর্থনৈতিক সমীক্ষা ২০২৪ [Bangladesh Economic Review 2024 Bangla.pdf] কম্পিউটার , ট্যাব ও স্মার্ট ফোন ভার্সন সহ সম্পূর্ণ বাংলা ই-বুক বা pdf বই " সুচিপত্র ...বুকমার্ক মেনু 🔖 ও হাইপার লিংক মেনু 📝👆 যুক্ত ..
আমাদের সবার জন্য খুব খুব গুরুত্বপূর্ণ একটি বই ..বিসিএস, ব্যাংক, ইউনিভার্সিটি ভর্তি ও যে কোন প্রতিযোগিতা মূলক পরীক্ষার জন্য এর খুব ইম্পরট্যান্ট একটি বিষয় ...তাছাড়া বাংলাদেশের সাম্প্রতিক যে কোন ডাটা বা তথ্য এই বইতে পাবেন ...
তাই একজন নাগরিক হিসাবে এই তথ্য গুলো আপনার জানা প্রয়োজন ...।
বিসিএস ও ব্যাংক এর লিখিত পরীক্ষা ...+এছাড়া মাধ্যমিক ও উচ্চমাধ্যমিকের স্টুডেন্টদের জন্য অনেক কাজে আসবে ...
This presentation was provided by Steph Pollock of The American Psychological Association’s Journals Program, and Damita Snow, of The American Society of Civil Engineers (ASCE), for the initial session of NISO's 2024 Training Series "DEIA in the Scholarly Landscape." Session One: 'Setting Expectations: a DEIA Primer,' was held June 6, 2024.
Assessment and Planning in Educational technology.pptxKavitha Krishnan
In an education system, it is understood that assessment is only for the students, but on the other hand, the Assessment of teachers is also an important aspect of the education system that ensures teachers are providing high-quality instruction to students. The assessment process can be used to provide feedback and support for professional development, to inform decisions about teacher retention or promotion, or to evaluate teacher effectiveness for accountability purposes.
How to Fix the Import Error in the Odoo 17Celine George
An import error occurs when a program fails to import a module or library, disrupting its execution. In languages like Python, this issue arises when the specified module cannot be found or accessed, hindering the program's functionality. Resolving import errors is crucial for maintaining smooth software operation and uninterrupted development processes.
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...PECB
Denis is a dynamic and results-driven Chief Information Officer (CIO) with a distinguished career spanning information systems analysis and technical project management. With a proven track record of spearheading the design and delivery of cutting-edge Information Management solutions, he has consistently elevated business operations, streamlined reporting functions, and maximized process efficiency.
Certified as an ISO/IEC 27001: Information Security Management Systems (ISMS) Lead Implementer, Data Protection Officer, and Cyber Risks Analyst, Denis brings a heightened focus on data security, privacy, and cyber resilience to every endeavor.
His expertise extends across a diverse spectrum of reporting, database, and web development applications, underpinned by an exceptional grasp of data storage and virtualization technologies. His proficiency in application testing, database administration, and data cleansing ensures seamless execution of complex projects.
What sets Denis apart is his comprehensive understanding of Business and Systems Analysis technologies, honed through involvement in all phases of the Software Development Lifecycle (SDLC). From meticulous requirements gathering to precise analysis, innovative design, rigorous development, thorough testing, and successful implementation, he has consistently delivered exceptional results.
Throughout his career, he has taken on multifaceted roles, from leading technical project management teams to owning solutions that drive operational excellence. His conscientious and proactive approach is unwavering, whether he is working independently or collaboratively within a team. His ability to connect with colleagues on a personal level underscores his commitment to fostering a harmonious and productive workplace environment.
Date: May 29, 2024
Tags: Information Security, ISO/IEC 27001, ISO/IEC 42001, Artificial Intelligence, GDPR
-------------------------------------------------------------------------------
Find out more about ISO training and certification services
Training: ISO/IEC 27001 Information Security Management System - EN | PECB
ISO/IEC 42001 Artificial Intelligence Management System - EN | PECB
General Data Protection Regulation (GDPR) - Training Courses - EN | PECB
Webinars: https://pecb.com/webinars
Article: https://pecb.com/article
-------------------------------------------------------------------------------
For more information about PECB:
Website: https://pecb.com/
LinkedIn: https://www.linkedin.com/company/pecb/
Facebook: https://www.facebook.com/PECBInternational/
Slideshare: http://www.slideshare.net/PECBCERTIFICATION
Physiology and chemistry of skin and pigmentation, hairs, scalp, lips and nail, Cleansing cream, Lotions, Face powders, Face packs, Lipsticks, Bath products, soaps and baby product,
Preparation and standardization of the following : Tonic, Bleaches, Dentifrices and Mouth washes & Tooth Pastes, Cosmetics for Nails.
This presentation includes basic of PCOS their pathology and treatment and also Ayurveda correlation of PCOS and Ayurvedic line of treatment mentioned in classics.
हिंदी वर्णमाला पीपीटी, hindi alphabet PPT presentation, hindi varnamala PPT, Hindi Varnamala pdf, हिंदी स्वर, हिंदी व्यंजन, sikhiye hindi varnmala, dr. mulla adam ali, hindi language and literature, hindi alphabet with drawing, hindi alphabet pdf, hindi varnamala for childrens, hindi language, hindi varnamala practice for kids, https://www.drmullaadamali.com
2. Chapter 8 Differential Equations
An equation that defines a relationship between an
unknown function and one or more of its derivatives
is referred to as a differential equation.
A first order differential equation:
dy =
Example:
8-2
f (x, y)
dx
x y x
= = =
5 , with boundary condition 2 at 1.
dy
dx
Solving it, we get 5
y = x +
c
2
2
2
school.edhole.com
y x y x
= = = -
Substituting 2 and 1, we obtain 2.5 0.5
3. Example:
dy = -
A second-order differential equation:
d y =
Example:
8-3
f x y dy
( , , ) 2
2
dx
dx
c( y x)
dx
y''= 2x + xy + y'
school.edhole.com
4. Taylor Series Expansion
Fundamental case, the first-order ordinary differential
equation:
dy = = =
0 0 f (x) subject to y y at x x
dx
Integrate both sides
ò = òx
dy f x dx
0 x
0
y
y
( )
y g x y f x dx
or ( ) ( ) 0
The solution based on Taylor series expansion:
8-4
= = + òx
x
0
y g x g x x x g x x x g x
= = + - + - +
( ) ( ) ( ) '( ) ( )
school.edhole.com
where ( ) and '( ) ( )
''( ) ...
2!
0 0 0 0
0
2
0
0 0
y = g x g x =
f x
5. Example : First-order Differential
Equation
Given the following differential equation:
dy
= 3x2 such that y =1 at x =1
dx
The higher-order derivatives:
8-5
6
6
0 for n 4
d y
d y
3
3
2
2
=
=
= ³
n
dx
n
dx
d y
x
dx
school.edhole.com
6. The final solution:
8-6
x d y
x d y
g x x dy
= + - + - + -
( 1)
x x x x x
= + - + - + -
(6 ) ( 1)
( ) 1 ( 1) ( 1)
1 ( 1)(3 ) ( 1)
x x x
= + - + - + -
1 3( 1) 3( 1) ( 1)
where 1
(6)
3!
2!
3!
2!
0
2 3
3
0
2
2
0
3
3 3
2
2 2
=
x
dx
dx
dx
school.edhole.com
7. 8-7
Table: Taylor Series Solution
x One Term Two Terms Three Terms Four Terms
1 1 1 1 1
1.1 1 1.3 1.33 1.331
1.2 1 1.6 0.72 1.728
1.3 1 1.9 2.17 2.197
1.4 1 2.2 2.68 2.744
1.5 1 2.5 3.25 3.375
1.6 1 2.8 3.88 4.096
1.7 1 3.1 4.57 4.913
1.8 1 3.4 5.32 5.832
1.9 1 3.7 6.13 6.859
2 1 4 7 8
school.edhole.com
9. General Case
The general form of the first-order ordinary
differential equation:
dy = = =
0 0 f (x, y) subject to y y at x x
dx
The solution based on Taylor series expansion:
y = g ( x ) = g ( x , y ) + ( x - x ) g '( x , y ) + ( x - x ) g x y +
0 0 0 0 0 0 0
''( , ) ...
2!
0
8-9
school.edhole.com
10. Euler’s Method
Only the term with the first derivative is used:
e
g(x) = g(x ) + (x - x ) dy + 0 0
dx
This method is sometimes referred to as the one-step
Euler’s method, since it is performed one step at a
time.
8-10
school.edhole.com
11. Example: One-step Euler’s Method
Consider the differential equation:
dy
= 4x2 such that y =1 at x =1
dx
For x =1.1
dy 4x dx y
1 4 1.1
y - = x3 =
Therefore, at x=1.1, y=1.44133 (true value).
8-11
ò = ò 1.1
1
2
1
0.44133
3
1
school.edhole.com
12. D = - =
With a step size of ( ) 0.1, we get
(1.1) 1 0.1[4(1) ] 1.4
g
The error 0.04133 (in absolute value).
Use a step size of 0.05 and apply Euler's equation twice
x x
= =
(at 1 and 1.05) :
g g
= + - = + =
(1.05) (1) (1.05 1.00)[4(1) ] 1 0.2 1.2
= + - =
(1.10) (1.05) (1.10 1.05)[4(1.05) ] 1.4205
The error is reduced to 0.020833.
For a step size of 0.02, after five steps, the estimated value
8-12
g(1.10) 1.43296
The error is 0.008373.
2
2
2
0
=
=
= + =
g g
x x x
school.edhole.com
13. Errors with Euler`s Method
Local error: over one step size.
Global error: cumulative over the range of the solution.
The error e using Euler`s method can be approximated using the
second term of the Taylor series expansion as
2 2
0
e = ( x - x )
d y
2!
2
2
x x
d y
dx
where is the maximum in [ , ].
2 0
dx
If the range is divided into n increments, then the error at the end
of range for x would be ne.
8-13
school.edhole.com
14. Example: Analysis of Errors
8-14
= = =
4 such that 1 at 1
dy
d y
Thus, the error is bounded by ( )
For step sizes of 0.1, 0.05, and 0.02. the upper limits on the error
= =
4(1.1)(0.1) 0.044
= =
2(4)(1.1)(0.05) 0.022
5(4)(1.1)(0.02) 0.0088
at 1.1:
(8 ) 4 ( )
2!
8
2
e
e
0.02
2
0.05
2
0.1
2
0
2
0
2
2
2
= =
=
= - = -
=
e
e
x
x x x x x x
x
dx
x y x
dx
school.edhole.com
15. 8-15
Table: Local and Global Errors with a Step Size of 0.1.
x Exact
solution
Numerical
Solution
Local
Error(%)
Global
Error(%)
1 1 1 0 0
1.1 1.4413333 1.4 -2.8677151 -2.8677151
1.2 1.9706667 1.884 -2.300406 -4.3978349
1.3 2.596 2.46 -1.9003595 -5.238829
1.4 3.3253333 3.136 -1.6038492 -5.6936648
1.5 4.1666667 3.92 -1.396 -5-92
1.6 5.128 4.82 -1.1960478 -6.0062402
1.7 6.2173333 5.844 -1.0508256 -6.004718
1.8 7.4426667 7 -0.9315657 -5.947689
1.9 8.812 8.296 -0.8321985 -5.8556514
2 10.333333 9.74 -0.7483871 -5.7419355 school.edhole.com
16. 8-16
Table: Local and Global Errors with a Step Size of 0.05.
x Exact
solution
Numerical
Solution
Local
Error(%)
Global
Error(%)
1 1 1 0 0
1.05 1.2101667 1.2 -0.8401047 -0.8401047
1.1 1.4413333 1.4205 -0.7400555 -1.4454209
1.15 1.6945 1.6625 -0.6589948 -1.8884627
1.2 1.9706667 1.927 -0.5920162 -2.2158322
1.25 2.2708333 2.215 -0.5357798 -2.4587156
1.3 2.596 2.5275 -0.4879301 -2.6386749
1.35 2.9471667 2.8655 -0.4467568 -2.771023
1.4 3.3253333 3.23 -0.4109864 -2.8668805
1.45 3.7315 3.622 -0.3796507 -2.9344768
1.5 4.1666667 4.4025 -0.352 -2.98
school.edhole.com
17. 8-17
Table: Local and Global Errors with a Step Size of 0.05
(continued).
x Exact
solution
Numerica
l Solution
Local
Error(%)
Global
Error(%)
1.55 4.6318333 4.4925 -0.3274441 -3.0081681
1.6 5.128 4.973 -0.3055122 -3.0226209
1.65 5.6561667 5.485 -0.2858237 -3.0261956
1.7 6.2173333 6.0295 -0.2680678 -3.0211237
1.75 6.8125 6.6075 -0.2519878 -3.0091743
1.8 7.4426667 7.22 -0.2373701 -2.9917592
1.85 8.1088333 7.868 -0.2240355 -2.9700121
1.9 8.812 8.5525 -0.2118323 -2.9448479
1.95 9.5531667 9.2745 -0.2006316 -2.9170083
2 10.333333 10.035 -0.1903226 -2.8870968
school.edhole.com
19. Modified Euler’s Method
Use an average slope, rather than the slope at the start
of the interval :
a. Evaluate the slope at the start of the interval
b. Estimate the value of the dependent variable y at the
end of the interval using the Euler’s metod.
c. Evaluate the slope at the end of the interval.
d. Find the average slope using the slopes in a and c.
e. Compute a revised value of the dependent variable y
at the end of the interval using the average slope of
step d with Euler’s method.
8-19
school.edhole.com
20. Example : Modified Euler’s Method
dy
= x y such that y = 1 at x = 1
dx
D =
The five steps of the first iteration for 0.1:
= =
dy
1a. 1 1 1
1
g g dy
= + - = + =
1b. (1.1) (1.0) (1.1 1.0) 1 0.1(1) 1.1
= =
dy
1c. 1.1 1.1 1.15369
1.1
dx
dy
1d. 1
1
= + =
(1 1.15369) 1.07684
2
g g dy
= + - = + =
1e. (1.1) (1.0) (1.1 1.0) 1 0.1(1.07684) 1.10768
a
a
dx
dx
dx
dx
x
8-20
school.edhole.com
21. The steps for the second interval :
= = =
dy
2a. 1.1 1.10768 1.15771
1.1
g g dy
= + - = + =
2b. (1.2) (1.1) (1.2 1.1) 1.10768 0.1(1.15771) 1.22345
8-21
1.1
= =
dy
2c. 1.2 1.22345 1.32732
1.2
dx
dx
2d. 1
dx
dx
= + =
( ) 1.24251
2
1.1 1.2
g g dy
= + - =
2e. (1.2) (1.1) (1.2 1.1) 1.23193
a
a
dx
dy
dy
dy
dx
x y
dx
school.edhole.com
22. Second-order Runge-Kutta Methods
The modified Euler’s method is a case of the second-order
Runge-Kutta methods. It can be expressed as
y = y + 0.5[ f ( x , y ) + f ( x + h , y +
hf ( x , y ))]
h
i i i i i i i i
y = g x y = g x + D
x
where ( ), ( ),
i i i i
x = x + D x h = D
x
i +
i
+
+
,
1
1
1
8-22
school.edhole.com
23. The computations according to Euler’s method:
1. Evaluate the slope at the start of an interval, that is,
at (xi,yi) .
2. Evaluate the slope at the end of the interval (xi+1,yi+1) :
3. Evaluate yi+1 using the average slope S1 of and S2 :
8-23
( , ) 1 i i S = f x y
( , ) 2 1 S f x h y hS i i = + +
y y S S h i i 0.5( ) 1 1 2 = + + +
school.edhole.com
24. Third-order Runge-Kutta Methods
The following is an example of the third-order Runge-
Kutta methods :
1
y y f x y f x h y hf x y
= + + + + + +
[ ( , ) 4 ( 0.5 , 0.5 ( , ))
6
i i i i i i i i
f ( x h , y hf ( x , y ) 2 hf ( x 0.5 h , y 0.5 hf ( x , y )))]
h
i i i i i i i i
1
+ - + + +
8-24
school.edhole.com
25. The computational steps for the third-order method:
1. Evaluate the slope at (xi,yi).
( , ) 1 i i S = f x y
2. Evaluate a second slope S2 estimate at the mid-point
in of the step as
3. Evaluate a third slope S3 as
4. Estimate the quantity of interest yi+1 as
8-25
( 0.5 , 0.5 ) 2 1 S f x h y hS i i = + +
( , 2 ) 3 1 2 S f x h y hS hS i i = + - +
1
y = y + [ S + 4 S + S ]
h i +
1 i 1 2 3 6
school.edhole.com
26. Fourth-order Runge-Kutta Methods
dy = = = D =
( , ) such that at . 0 0 f x y y y x x x h
dx
1. Compute the slope S1 at (xi,yi).
2. Estimate y at the mid-point of the interval.
i 1/ 2 i 2 i i y = y + h f x y +
3. Estimate the slope S2 at mid-interval.
4. Revise the estimate of y at mid-interval
8-26
( , ) 1 i i S = f x y
( , )
( 0.5 , 0.5 ) 2 1 S f x h y hS i i = + +
y y h S i i = + + school.edhole.com
1/ 2 2 2
27. 5. Compute a revised estimate of the slope S3 at mid-interval.
6. Estimate y at the end of the interval.
7. Estimate the slope S4 at the end of the interval
8. Estimate yi+1 again.
8-27
( 0.5 , 0.5 ) 3 2 S f x h y hS i i = + +
1 3 y y hS i i = + +
( , ) 4 3 S f x h y hS i i = + +
1 6 1 2 3 4 y y h S S S S i i = + + + + +
( 2 2 )
school.edhole.com
28. Predictor-Corrector Methods
Unless the step sizes are small, Euler’s method and
Runge-Kutta may not yield precise solutions.
The Predictor-Corrector Methods iterate several times
over the same interval until the solution converges to
within an acceptable tolerance.
Two parts: predictor part and corrector part.
8-28
school.edhole.com
29. Euler-trapezoidal Method
Euler’s method is the predictor algorithm.
The trapezoidal rule is the corrector equation.
Eluer formula (predictor):
,*
y = y + h dy +
i 1, j i ,*
dx
i
Trapezoidal rule (corrector):
y y h dy
+ = + +
dy
[ ]
2 ,* 1, 1
i 1, j i ,*
dx
i i j
+ -
dx
The corrector equation can be applied as many times as
necessary to get convergence.
8-29
school.edhole.com
30. Example 8-6: Euler-trapezoidal Mehtod
dy
Problem: = x y such that y = 1 at x = 1
dx
The initial (predictor) estimate for at 1.1 is
= =
1 1 1
é
dy
y y 0.1
dy
1 0.1(1) 1.1
1,0
0,0
0,0
1,0 0,*
= + =
ù
úû
êë
= +
=
y
dx
dx
y x
8-30
The corrector equation is used to improve the estimate :
1.1 1.1 1.15369
school.edhole.com
1,0
= =
dy
dx
31. 8-31
[ ]
[ ]
1 0.1
é
y y h dy
= + +
= =
ù
dy
1.1 1.10768 1.15771
1 0.1
é
dy
y y h dy
= + +
dy
= =
ù
1.1 1.10789 1.15782
1 0.1
[1 1.15782] 1.10789
2
dy
y y h dy
2
1 1.15771 1.10789
2
2
1 1.15369 1.10768
2
2
dy
0,0 1,2
1,1
1,2
1,3 0,*
0,0 1,1
1,2 0,*
0,0 1,0
1,1 0,*
ù
= + + = úû
êë é
= + +
= + + = úû
êë
= + + = úû
êë
dx
dx
dx
dx
dx
dx
dx
dx
y y y x
= =
Since , converges to 1.10789 at 1.1.
1,3 1,2
y =
y
And we have .
1,* 1,3
school.edhole.com
32. 8-32
=
For the estimate of at 1.2, the predictor equation :
y y h dy
2,0 1,* 1,* = + = + =
1.10789 0.1(1.15782) 1.22367
dx
y x
The corrector equation :
= =
1.2 1.22367 1.32744
ù
dy
y y h dy
= + +
dy
[ ]
2
é
1.10789 0.1
= + + =
1.15782 1.32744 1.23215
2
1.2 1.23215 1.33203
2,1
2,2
1,* 2,1
2,1 1,*
= =
úû
êë
dy
dx
dx
dx
dx
school.edhole.com
33. 8-33
y y h dy
= + +
dy
dx
1,* 2,2
ù
úû
[ ]
2
2,2 1,*
é
êë
dx
1.10789 0.1
= + + =
1.15782 1.33203 1.23238
2
= =
1.2 1.23238 1.33215
dy
dx
y y h dy
= + +
dy
dx
1,* 2,3
ù
úû
[ ]
2
2,3
2,3 1,*
é
êë
dx
1.10789 0.1
= + + =
1.15782 1.33215 1.23239
2
Again, the corrector algorithm converges in three iterations.
=
y x
The estimate of at 1.2 is 1.23239.
school.edhole.com
34. Milne-Simpson Method
Milne’s equation is the predictor euqation.
The Simpson’s rule is the corrector formula.
Milne’s equation (predictor):
y y 4
h dy
dy
+ - = + - +
dy
i i dx
i i i
For the two initial sampling points, a one-step
method such as Euler’s equation can be used.
Simpsos’s rule (corrector):
8-34
[2 2 ]
3
,* 1,* 2,*
1,0 3,*
- -
dx
dx
dy
y y h dy
+ - = + + +
dy
[ 4 ]
3 1, ,* 1,*
i 1, j i 1,*
dx
dx
i j i i
+ -
dx
school.edhole.com
35. Example 8-7: Milne-Simpson Mehtod
x y y x
= = =
dy
Problem: such that 1 at 1
y x x
= =
dx
We want to estimate at 1.3 and 1.4.
Assume that we have the following values,
obtained from the Euler-trapezoidal method
in Example 8-6.
dy
x y dx
8-35
1 1 1
1.1 1.10789 1.15782
1.2 1.23239 1.33215
school.edhole.com
36. To compute the initial (predictor) estimate for at 1.3 ,
Euler's method can be used :
y y hdy
= + = + =
1.23239 0.1(1.33215) 1.36560
1.3 1.36560 1.51917
3,0
2,*
3,0 2,*
= =
=
dy
dx
dx
y x
8-36
The corrector formular :
4
ù
dy
dy
[ ]
y y 0.1
dy
1.10789 0.1
= + + +
1.37474
1.51917 4(1.33215) 1.15782
3
3
3,0 2,* 1,*
3,1 1,*
=
úû
êë é
= + + +
dx
dx
dx
school.edhole.com
37. 8-37
= =
1.3 1.37474 1.52424
[ ]
1.10789 0.1
= + + +
=
= =
1.3 1.37491 1.52434
[ ]
1.10789 0.1
= + + +
1.37492
1.52434 4(1.33215) 1.15782
3
1.37491
1.52424 4(1.33215) 1.15782
3
3,1
3,2
3,2
3,3
=
dy
dx
y
dy
dx
y
The computations for x=1.3 are complete.
school.edhole.com
38. The Milne predictor equation for estimating y at x=1.4:
8-38
y y 4
h dy
ù
é
dy
= + - +
dy
( ) [ ( ) ( )]
1 4 0.1
= + - +
1.53762
2 1.52434 1.33215 2 1.15782
3
2 2
3
3,* 2,* 1,*
4,0 0,*
=
úû
êë
dx
dx
dx
The corrector formular:
1.4 1.53762 1.73610
4,1
= =
dy
dx
school.edhole.com
39. 8-39
dy
y y h dy
= + + +
4
ù
úû
dy
[ ( ) ]
3
é
êë
1.23239 0.1
= + + +
1.53791
1.73601 4 1.52434 1.33215
3
=
= =
1.4 1.53791 1.73617
[ ( ) ]
1.23239 0.1
1.73617 4 1.52434 1.33215 1.53791
3
Then it is complete.
4,2
4,2
4,0 3,* 2,*
4,1 2,*
= + + + =
dy
dx
y
dx
dx
dx
school.edhole.com
40. Least-Squares Method
The procedure for deriving the least-squares
function:
1. Assume the solution is an nth-order polynomial:
2. Use the boundary condition of the ordinary
differential equation to evaluate one of (bo,b1,b2,
…,bn).
3. Define the objective function:
8-40
n
x ny = b + b + b x2 ++ b x
0 1 2 ˆ
x = ò 2
F e dx
dy
dx
e = dy - ˆ
where
dx
school.edhole.com
41. 4. Find the minimum of F with respect to the unknowns
(b1,b2, b3,…,bn) , that is
F = 2 e ¶
e
0
¶
dx
b
b
5. The integrals in Step 4 are called the normal
equations; the solution of the normal equations yields
value of the unknowns (b1,b2, b3,…,bn).
8-41
ò =
¶
¶
all x
i i
school.edhole.com
42. Example 8-8: Least-squares Method
xy y x
dy
= = =
Problem: such that 1 at 0
Solve it for the interval 0 x 1.
Analytical solution :
y ex
2 / 2 dx
=
£ £
8-42
• First, assume a linear model is used:
y = b +
b x
0 1
Using the boundary condition
ˆ 1 (0)
y = = b +
b
yields 1. Thus the linear model is
y = +
b x
1
1
0
0 1
ˆ 1
ˆ
ˆ
b
dy
dx
b
=
=
school.edhole.com
43. 8-43
e = b - xy = b - x +
b x
e de
x
de
x x
ò ò
dx b x b x x dx
= - + - =
x
) 0
(1 )
The error function :
= -
db
0 0
b x x b x x b x
3 4 5
2
1
2
(
2 2[ (1 )](1 ) 0
0
5
1
3 4
1
2
1
2
1 1
1
2
1
1 1 1
- - + + =
db
£ £
Since we are interested in the range 0 1, solve the
above integral with 1, we get b . Thus,
y x
x
x
15
32
15
32
1
ˆ 1
= +
= =
school.edhole.com
44. 8-44
x True y Value Numerical y Value Error (%)
y = ex2 / 2 y ˆ = 1+ 15
x 32
0 1. 1. -
0.2 1.0202 1.0938 7.2
0.4 1.0833 1.1875 9.6
0.6 1.1972 1.2812 7.0
0.8 1.3771 1.3750 0.0
1.0 1.6487 1.46688 -10.9
school.edhole.com
45. Next, to improve the accuracy of estimates, a
quadratic model is used:
8-45
ˆ
y = b + b x +
b x
2
0 1 2
Using the boundary condition
ˆ 1 (0) (0 )
y = = b + b +
b
=
0 1 2
yields 1.
0
b b x
dy
= +
2
1 2
The error function is
2
e = b + b x - xy = b + b x - x + b x +
b x
2 2 (1 )
b x b x x x
dx
b
= - + - -
(1 ) (2 )
ˆ
3
2
2
1
2
1 2 1 2 1 2
school.edhole.com
46. 8-46
= -
1
e
[ ( ) ( ) ]( )
b x b x x x x dx
- + - - - =
1 2 1 0
b x b x b x b x x b x b x x
=
¶
ò
é
x
Using 1 as the upper limit :
1
4
5
12
8
15
0
4 2 5 6 4
3
3
2
1 2
0
6 4
2
5
1
4 2
2 2
2
3
1
1
0
3 2
2
2
1
2
1
+ =
ù
= úû
êë
- + - - + + +
¶
b b
x
b
x
x
school.edhole.com
47. 8-47
x x
= -
[ ( ) ( ) ]( )
b x b x x x x x dx
e
¶
ò
b
- + - - - =
2 1 2 2 0
b x b x b x b x x b x b x x
x
=
é
Using 1 as the upper limit :
7
15
b 71
b
+ =
105
9
20
b b
= - =
We get 0.14669 and 0.78776.
2
0
1 2
1 2
0
7 5
2
5
1
5 2
2
4
2
4
2 1
1
3 3
2
2
1
3
2
ˆ 1 0.14669 0.78776
0
3 5 7 5
2
5
4
3
4
4
2
2
y x x
x
x
= - +
ù
= úû
êë
- + - - + + +
¶
school.edhole.com
48. 8-48
x True y Value Numerical y Value Error (%)
y = ex2 / 2 yˆ = 1- 0.14669x + 0.78776x2
0 1. 1. -
0.2 1.0202 1.0022 -1.8
0.4 1.0833 1.0674 0.0
0.6 1.1972 1.1956 0.0
0.8 1.3771 1.38668 0.0
1.0 1.6487 1.6411 0.0
school.edhole.com
49. Galerkin Method
ò = =
w edx i n
w
0 1,2...
where is a weighting factor.
i
x i
For the least squares method,
Example: Galerkin Method
w = ¶
e
b
i
i
¶
The same problem as Example 8-8.
Use the quadratic approximating equation.
8-49
Let and 2.
1 2 w = x w = x
school.edhole.com
50. 8-50
b x b x x x xdx
- + - - =
[ (1 ) (2 ) ] 0
b x b x x x x dx
- + - - =
[ (1 ) (2 ) ] 0
ò
We get the following normal equations :
2
7
b b
+ =
1 2
15
1
b b
+ =
1 2
1
0
3 2
2
2
1
1
0
3
2
2
1
1
3
1
4
3
1
12
2
15
The final result :
ˆ 1 0.26316 0.85526
y = - x +
x
ò
school.edhole.com
51. Table: Example for the Galerkin method
x True y value Numerical y value Error
(%)
y = ex2 / 2 yˆ = 1- 0.26316x + 0.85526x2
0 1. 1. --
0.2 1.0202 0.9816 0.0
0.4 1.0833 1.0316 0.0
0.6 1.1972 1.1500 0.0
0.8 1.3771 1.3368 0.0
1.0 1.6487 1.5921 0.0
8-51
school.edhole.com
52. Higher-Order Differential Equations
Second order differential equation:
2
d y , , 2
f x y dy
= æ
ö çè
÷ø
dx
dx
Transform it into a system of first-order differential
equations.
dy
dx
( , , )
y y y dy
dx
y
dy
dy
dx
f x y y
dx
= = =
=
=
1
1 2
2
1
1 2
2
where and
8-52
school.edhole.com
53. In general, any system of n equations of the following
type can be solved using any of the previously
discussed methods:
8-53
( , , ,... )
n
( , , ,... )
n
( , , ,... )
3 1 2
( , , ,... )
1 2
3
2 1 2
2
1 1 2
dy
1
n n
n
n
f x y y y
dy
dy
dy
dx
f x y y y
dx
f x y y y
dx
f x y y y
dx
=
=
=
=
school.edhole.com
54. Example: Second-order Differential Equation
8-54
2 10 Problem: = = -
d Y X X
2
EI
M
EI
dX
2
It can be transformed into :
M
= = -
Z
dZ
dY
dX
X X
EI
EI
dX
=
10
2
EI X Y Z
= = = = -
Assume 3600 at 0, 0 and 0.02314
Use Euler's method to solve the following equations :
Z = Z +
f ( X , Y , Z )
h
i +
i i i i
1 2
= +
Y Y f ( X , Y , Z )
h
i +
1 i 1
i i i
school.edhole.com
55. Table: Second-order Differential Equation
Using a Step Size of 0.1 Ft
X
(ft)
Y
(ft)
Exact Z Exact Y
(ft)
dZ
Z = dY
0 0 -0.0231481 0 -0.0231481 0
0.1 0.000275 -0.0231481 -0.0023148 -0.0231344 -0.0023144
0.2 0.0005444 -0.0231206 -0.0046296 -0.0230933 -0.004626
0.3 0.0008083 -0.0230662 -0.0069417 -0.0230256 -0.0069321
0.4 0.0010667 -0.0229854 -0.0092483 -0.0229319 -0.0092302
0.5 0.0013194 -0.0228787 -0.0115469 -0.0228125 -0.0115177
0.6 0.0015667 -0.0227468 -0.0138347 -0.0226681 -0.0137919
0.7 0.0018083 -0.0225901 -0.0161094 -0.0224994 -0.0160505
0.8 0.0020444 -0.0224093 -0.0183684 -0.0223067 -0.018291
0.9 0.002275 -0.0222048 -0.0206093 -0.0220906 -0.020511
8-55
dX
dX
school.edhole.com
56. Table: Second-order Differential Equation
Using a Step Size of 0.1 Ft (continued)
X
(ft)
Y
(ft)
Exact Z Exact Y
(ft)
dZ
Z = dY
1 0.0025 -0.0219773 -0.0228298 -0.0218519 -0.0227083
2 0.0044444 -0.0185565 -0.0434305 -0.0183333 -0.04296663
3 0.0058333 -0.0134412 -0.0298019 -0.0131481 -0.0588194
4 0.0066667 -0.007187 -0.0704998 -0.0068519 -0.0688889
5 0.0069444 -0.0003495 -0.0746352 0.00000000 -0.071228
6 0.0066667 0.0065157 -0.0718747 0.0068519 -0.0688889
7 0.0058333 0.0128532 -0.06244066 0.0131481 -0.0588194
8 0.0044444 0.0181074 -0.0471107 0.0183333 -0.042963
9 0.0025 0.0217227 -0.0272183 0.0278519 -0.0227083
10 0.000000 0.0231435 -0.00466523 0.0231481 0.000000
8-56
dX
dX
school.edhole.com