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

We know this equation a°=1.prove this?, we know that log1 to any base =0 ta...

we know that log1 to any base =0 take antilog threfore a 0 =1

Take home test, what is 36 percent as a fraction in simplest form

what is 36 percent as a fraction in simplest form

4 accounting majors, 4 accounting majors, 2 economics majors and 3 marketin...

4 accounting majors, 2 economics majors and 3 marketing majors have an interview for5 different positions with a large company. Find the number of dfferent ways that 5 of these c

Dimensional analysis, Rachel had 3.25 quart of ice tea. her family drank 9 ...

Rachel had 3.25 quart of ice tea. her family drank 9 cups.How many cups are left

Five shirts and one tie cost $20 what price of one shirt, Three shirts and ...

Three shirts and five ties cost $23. Five shirts and one tie cost $20. What is the price of one shirt? Let x = the cost of one shirt. Let y = the cost of one tie. The ?rst part

Elementary row operations, Anne, Betty and Carol went to their local produc...

Anne, Betty and Carol went to their local produce store to buy some fruit. Anne bought one pound of apples and two pounds of bananas and paid $2.11. Betty bought two pounds of appl

Trig substitutions - integration techniques, Trig Substitutions - Integrati...

Trig Substitutions - Integration techniques As we have completed in the last couple of sections, now let's start off with a couple of integrals that we should previously be

find an explicit formula, (a) The generating function G(z) for a sequence ...

(a) The generating function G(z) for a sequence g n is given by G(z) = 1 - 2z/(1 + 3z)3 Give an explicit formula for g n . (b) For the sequence gn in the previous part co

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

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