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

Inventory record, a) Complete the inventory record below for an FOQ of 100 ...

a) Complete the inventory record below for an FOQ of 100 units. b) Talk about weaknesses of MRP. List at least 3 and describe each in a sentence or two. Item: A

Variation of parameters, In the previous section we looked at the method of...

In the previous section we looked at the method of undetermined coefficients for getting a particular solution to p (t) y′′ + q (t) y′ + r (t) y = g (t)    .....................

Trigomometrical, ABCD is a rhombus. the sides of the rhombus are 8cm long ....

ABCD is a rhombus. the sides of the rhombus are 8cm long .one of its diagonals is 12cm .find the angels of the rhombus

Fractions, Andre''s boss asked him to arrange bolts placing the shortest bo...

Andre''s boss asked him to arrange bolts placing the shortest bolt near the front 1 and three fourth inch 1 and 5 eigths 1 and 11 sixteenths which is the shortest

Evaluate performance of mental arithmetic maths, E 1) Try the two activitie...

E 1) Try the two activities detailed above with a few children around you Evaluate whether they really helped to improve the children's performance of mental arithmetic. Anot

Word problems, Ana has hiked 4 1/2 miles. She is 2/3 of the way along the t...

Ana has hiked 4 1/2 miles. She is 2/3 of the way along the trail. How long is the trail?

Find the perameter of square in maths, Find the perameter of SQUARE in math...

Find the perameter of SQUARE in maths? Remember that in a square, all sides are of equal length. A square is also a kind of rectangle. So, you can use length (l) times width

Customary units of length, Eileen needs 9 feet of fabric to make a skirt. I...

Eileen needs 9 feet of fabric to make a skirt. If Eileen has 18 feet of fabric how many skirts can she make?

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