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

Evaluate the convergence of the algorithms, Evaluate the convergence of the...

Evaluate the convergence of the algorithms: From the convergence proof of power method, LR and QR algorithm for the computation of eigenvalues we see that the easiest case to

Find the distance between these two cities, Memphis, Tennessee, and New Orl...

Memphis, Tennessee, and New Orleans, Louisiana, lie approximately on the same meridian. Memphis has latitude 35°N and New Orleans has latitude 30°N. Find the distance between these

Determine the angle between dec, Using the example provided below, if the m...

Using the example provided below, if the measure ∠AEB = 5x + 40 and ∠BEC = x + 20, determine m∠DEC. a. 40° b. 25° c. 140° d. 65° c. The addition of the measurem

Evaluate negative infinity, Evaluate both of the following limits. ...

Evaluate both of the following limits. Solution : Firstly, the only difference among these two is that one is going to +ve infinity and the other is going to negative inf

Find the second derivative of the equation, Find the second derivative of t...

Find the second derivative of the below given equation Y= e x cosx

Mean, Jocelyn has 6 birds, Their mean age is 10. The mode of their ages is ...

Jocelyn has 6 birds, Their mean age is 10. The mode of their ages is 8. What might their ages be? Show your work.

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