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

Iit-jee questions, can u tell me a website for iit-jee questions?

can u tell me a website for iit-jee questions?

Calculate the total surface area which is exposed , A golf ball has a diame...

A golf ball has a diameter equal to 4.1cm. Its surface has 150 dimples each of radius 2mm. Calculate the total surface area which is exposed to the surroundings assuming that the d

SURFACE AREA AND VOLUMES, Metallic spheres of radii 6 centimetre, 8 centime...

Metallic spheres of radii 6 centimetre, 8 centimetre and 10 centimetres respectively are melted to form a single solid sphere. Find the radius of the resulting sphere.

Determine series is convergent or divergent by root test, Find out if the f...

Find out if the following series is convergent or divergent. Solution There really is not very much to these problems another than calculating the limit and then usin

Multiplication and division, you want to share 34 pencils among 6 friends ....

you want to share 34 pencils among 6 friends .How many would each friend get?

What is monomials and polynomials in maths, What is Monomials and Polynomia...

What is Monomials and Polynomials in maths? An expression like 7x is called a monomial. A monomial is an integer, a variable, or a product of integers and variables. Other e

Example of intersection, Can anybody provide me the solution of the followi...

Can anybody provide me the solution of the following example? You are specified the universal set as T = {1, 2, 3, 4, 5, 6, 7, 8} And the given subjects of the universal s

Example of inverse matrix, Determine the inverse of the following matrix, i...

Determine the inverse of the following matrix, if it exists. We first form the new matrix through tacking onto the 3 x 3 identity matrix to this matrix.  It is, We

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