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

Real numbers, prove root 2 as irrational number

prove root 2 as irrational number

Need answer urgently, using a pair of compasses a ruler and a pencil. const...

using a pair of compasses a ruler and a pencil. construct a triangle CDE in which DE=10cm, DC+8cm and CDE= 45 degrees. construct CF perpendicular to DE such that F lies on DE using

Joey participated-a-thon how many hours did joey team dance, Joey participa...

Joey participated within a dance-a-thon. His team begin dancing at on Friday 10 A.M. and stopped at 6 P.M. on Saturday. How many hours did Joey's team dance? From 10 A.M. Frida

Differentiation, Need Solution Find (dy)/( dx) for; (i). y = x 7 ...

Need Solution Find (dy)/( dx) for; (i). y = x 7 (ii). y = x 2γ (iii). y = x -3 (iv). y = x

Algebra, simplify mn+mp+nq+pq /n+p

simplify mn+mp+nq+pq /n+p

Mean roots, Find all the eighth roots of (19 + 7 i)

Find all the eighth roots of (19 + 7 i)

#title.automotive cruise control system., What are some of the interestingm...

What are some of the interestingmodern developments in cruise control systems that contrast with comparatively basic old systems

Factoring quadratic polynomials, Primary, note that quadratic is another te...

Primary, note that quadratic is another term for second degree polynomial. Thus we know that the largest exponent into a quadratic polynomial will be a2. In these problems we will

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