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

Chi-square test, my question involves frequencies less than five and i cann...

my question involves frequencies less than five and i cannot aggregate the data, what do i use instead of the chi-square test?

Utilizes second derivative test to classify critical point, Utilizes the se...

Utilizes the second derivative test to classify the critical points of the function,                                               h ( x ) = 3x 5 - 5x 3 + 3 Solution T

Find the sum of a+b and a-b, Find the sum of a+b, a-b, a-3b, ...... to 22 t...

Find the sum of a+b, a-b, a-3b, ...... to 22 terms. Ans:    a + b, a - b, a - 3b, up to 22 terms d= a - b - a - b = 2b S22 =22/2 [2(a+b)+21(-2b)] 11[2a + 2b - 42b] =

Help with individual questions, Hi, I''m looking for assistance/solutions t...

Hi, I''m looking for assistance/solutions to individual questions. I''ve already answered them but seek confirmation my answers are correct. I don''t want answers to a complete e

Standard errors of the mean, Standard errors of the mean The series of ...

Standard errors of the mean The series of sample means x¯ 1 , x¯ 2 , x¯ 3 ........ is normally distributed or nearly so as according to the central limit theorem. This can be

Limits, evaluate limit as x approaches 0 (x squared times sin (1/x)

evaluate limit as x approaches 0 (x squared times sin (1/x)

Algorithm for division, ALGORITHM FOR DIVISION : If you ask a 10 or 1 1-ye...

ALGORITHM FOR DIVISION : If you ask a 10 or 1 1-year-old child to solve, say, 81 + 9, the chances are that she will correctly do it. But if you ask her to solve, say 72 + 3, t

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