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

Fft algorithm, (a) Using interpolation, give a polynomial f ∈ F 11 [x] of d...

(a) Using interpolation, give a polynomial f ∈ F 11 [x] of degree at most 3 satisfying f(0) = 2; f(2) = 3; f(3) = 1; f(7) = 6 (b) What are all the polynomials in F 11 [x] which

Mensuration, if area of a rectangle is 27 sqmtr and it perimeter is 24 m fi...

if area of a rectangle is 27 sqmtr and it perimeter is 24 m find the length and breath#

Probability of tossing a head with the dime, Q. Find Probability of tossing...

Q. Find Probability of tossing a head with the dime? List the sample space, and find n(S), for the outcomes of tossing a nickel followed by a dime. What is the probability of t

Logarithms, How to solve this: log x(81) = 4

How to solve this: log x(81) = 4

Proof of alternating series test, Proof of Alternating Series Test With...

Proof of Alternating Series Test With no loss of generality we can assume that the series begins at n =1. If not we could change the proof below to meet the new starting place

Operations Research inventory , A firm buys a product using the price sched...

A firm buys a product using the price schedule given in the table: The company estimate holding costs at 10% of the purchase price per year and ordering costs at $40 per order .

Find out the taylor series for f (x) = ex about x = 0, Find out the Taylor ...

Find out the Taylor Series for f (x) = e x about x = 0. Solution In fact this is one of the easier Taylor Series that we'll be asked to calculate.  To find out the Taylor

Quadratic equations by completing the square method, Can we solve the Quadr...

Can we solve the Quadratic Equations by completing the square method? if yes explain it.

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