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

Example of regression equation, Example of Regression Equation An inve...

Example of Regression Equation An investment company advertised the sale of pieces of land at different prices. The given table shows the pieces of land their costs and acreag

., There are k baskets and n balls. The balls are put into the baskets rand...

There are k baskets and n balls. The balls are put into the baskets randomly. If k

Ratios, a doctor sees 3 boys to 5 girls in one week . If he sees 40 boys in...

a doctor sees 3 boys to 5 girls in one week . If he sees 40 boys in one day then how many girls does he see that day

Math Help, 1. Which of the following is greater than 4.3 x 10^9 a. 2.1 x ...

1. Which of the following is greater than 4.3 x 10^9 a. 2.1 x 10^9 b. 3.2 x 10^9 c. 5.3 x 10^9 d. 7.4 x 10^8 2. Which of the following is less than 6.5 x 10^-5 a. 1.4 x 10

What is her weekly paycheck assuming there are deductions, Kyra's weekly wa...

Kyra's weekly wages are $895. A Social Security tax of 7.51% and a State Disability Insurance of 1.2% are taken out of her wages. What is her weekly paycheck, assuming there are no

Divergence test - sequences and series, Divergence Test Once again...

Divergence Test Once again, do NOT misuse this test.  This test only says that a series is definite to diverge if the series terms do not go to zero in the limit.  If the

Linear equations, Linear Equations - Resolving and identifying linear fir...

Linear Equations - Resolving and identifying linear first order differential equations. Separable Equations - Resolving and identifying separable first order differential

Regression, Regression line drawn as y=c+1075x, when x was 2, and y was 239...

Regression line drawn as y=c+1075x, when x was 2, and y was 239, given that y intercept was 11. Caculate the residual

Basic, 8l550ml - 1/4l =

8l550ml - 1/4l =

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