Find the integral of a function, Mathematics

Assignment Help:

We want to find the integral of a function at an arbitrary location x from the origin. Thus,

1486_find the integral of a function.png

where I(x=0) is the value of the integral for all times less than 0. (Essentially, I(x=0) is the unknown constant of integration or the initial condition.) From the class lecture on the trapezoidal rule for numerical integration, it can be seen that this function can be approximated by

2413_find the integral of a function1.png

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule. Your function should accept two vectors as inputs, x and f.

The first vector (x) contains the independent variable data (the points at which the values of the function are known. The second vector (f) should contain the values of the function at the points provided in the first vector. Your function should return the integral of f with respect to x, as a function of x.


Related Discussions:- Find the integral of a function

Simultaneous linear equations (graphical method), Steps in solving graphica...

Steps in solving graphical method of simultaneous linear equations

Numerical.analysis. , Please, I want to know and study "stability 0n predic...

Please, I want to know and study "stability 0n predictor -corrector method .My gmail is [email protected] heap and kind to me .Thanks for this.

Explain the common forms of linear equations, Explain the Common Forms of L...

Explain the Common Forms of Linear Equations ? An equation whose graph is a line is called a linear equation. Here are listed some special forms of linear equations. Why should

Elli[ital paths of celestial bodies, Create a detailed diagram to describe ...

Create a detailed diagram to describe the equation of an ellipse in terms of it’s eccentricity and indicate how the foci and major and minor semi-axes are involved. Y

Properties of radicals, If n is positive integer greater than 1 and a & b b...

If n is positive integer greater than 1 and a & b both are positive real numbers then, Consider that on occasion we can let a or b to be negative and yet have these propert

Partial Differentiation, If the sides angles of a triangle ABC vary in such...

If the sides angles of a triangle ABC vary in such a way that it''s circum - radius remain constant. Prove that, da/cos A +db/cos B+dc/cos C=0

Mean roots, Find all the eighth roots of (19 + 7 i)

Find all the eighth roots of (19 + 7 i)

Measures of dispersion- measures of central tendency, Measures of Dispersio...

Measures of Dispersion - The measures of dispersion are extremely useful in statistical work since they indicate whether the rest of the data are scattered away from the mean

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd