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

Division Remainders, what is the remainder when 75 is divided by 4

what is the remainder when 75 is divided by 4

Find out the maximal elements of a poset, Refer the poset  ({1}, {2}, {4}, ...

Refer the poset  ({1}, {2}, {4}, {1,2}, {1,4}, {2,4}, {3,4}, {1,3,4}, {2,3,4}, ≤ ). (i)  Find out the maximal elements. (ii)  Find out the minimal elements. (iii)  Is ther

Homework help, Eduardo is combining two 6 inches pieces of wood with a piec...

Eduardo is combining two 6 inches pieces of wood with a piece that measures 4 inches. How many total inches of wood does he have?

Riddles, I am a number yell my identity subtract 20 from me and add 30 make...

I am a number yell my identity subtract 20 from me and add 30 make the total twice to reach century you still need eight

Permuation and combination, how many words can be formed from letters of wo...

how many words can be formed from letters of word daughter such that word contain 2vowles and 3consonant

Numbers, use the distributive law to write each multiplication in a differe...

use the distributive law to write each multiplication in a different way. then find the answer. 12x14 16x13 14x18 9x108 12x136 20x147

solve the game by linear programming, UA and DU are preparing for the NCAA...

UA and DU are preparing for the NCAA basketball game championship. They are setting up their strategies for the championship game. Assessing the strength of their "benches", each c

Which team should get the ball at the beginning, Why is tossing a coin cons...

Why is tossing a coin considered to be a fair way of deciding which team should get the ball at the beginning of a foot ball match? Ans: equally likely because they are mutual

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