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

Implementation of kruskal algorithm, You are required to implement Kruskal'...

You are required to implement Kruskal's algorithm for finding a Minimum Spanning Tree of Graph.  This will require implementing : A Graph Data Type (including a display meth

Distribution of sample means not normal, The distribution of sample means i...

The distribution of sample means is not always a normal distribution. Under what circumstances is the distribution of sample means not normal?

Differentiate exponential functions, Differentiate following functions. ...

Differentiate following functions. (a)    R ( w) = 4 w - 5 log 9 w (b)   f ( x ) = 3e x + 10x 3 ln x Solution :  (a) It will be the only example which doesn't includ

1234 Mathematics, use only the digits 1,2,3 and 4 in any order to write an ...

use only the digits 1,2,3 and 4 in any order to write an expression for the numbers 1 to 100. you may only use each digit once. You may use exponents of 1,2,3 and 4 in some of th

Estimates the probabilities of price changes, Mr. Hoper is in charge of inv...

Mr. Hoper is in charge of investments for the golden horizon company. He estimates from past price fluctuations in the gold market that the probabilities of price changes on a give

Evaluating functions, Next we have to talk about evaluating functions.  Eva...

Next we have to talk about evaluating functions.  Evaluating a function is in fact nothing more than asking what its value is for particular values of x. Another way of looking at

Math problem, integral from 0 to pi of dx/(a+b*cos(x)

integral from 0 to pi of dx/(a+b*cos(x)

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

Transportation problem, 12. List the merits and limitations of using North ...

12. List the merits and limitations of using North West corner rule.

AREA, How do you find the distributive property any faster?

How do you find the distributive property any faster?

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