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

What is minimum spanning tree, What is minimum spanning tree?  Determine a ...

What is minimum spanning tree?  Determine a railway network of minimal cost for the cities in the following graph using Kruskal's algorithm. Ans: Minimum spanning tree in a con

Linear equations, A police academy is training 14 new recruits. Some are wo...

A police academy is training 14 new recruits. Some are working dogs and others are police officers. There are 38 legs in all. How many of each type of recruits are there?

Evaluate following. 0ln (1+)excos(1-ex)dx substitution, Evaluate following....

Evaluate following. ∫ 0 ln (1 + π )   e x cos(1-e x )dx Solution The limits are little unusual in this case, however that will happen sometimes therefore don't get

Rectilinear figure, In a parallelogram ABCD AB=20cm and AD=12cm.The bisecto...

In a parallelogram ABCD AB=20cm and AD=12cm.The bisector of angle A meets DC at E and BC produced at F.Find the length of CF.

Algebra, how do i sole linear epuation

how do i sole linear epuation

Mode, What is the median for this problem (55+75+85+100+100)

What is the median for this problem (55+75+85+100+100)

A jeweler has bars of 18-carat gold , A jeweler has bars of 18-carat gold a...

A jeweler has bars of 18-carat gold and 12-carat gold. How much of every melted together to obtain a bar of 16-carat gold, weighing 120 gm ? It is given that pure gold is 24 carat.

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