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

Calculus Homework, Find the slope of the line tangent to the graph of f(x)=...

Find the slope of the line tangent to the graph of f(x)= 3-2ln(2x^2+4) at the point (4, F(4))

Determine the general solution reduction of order, Determine the general so...

Determine the general solution to 2t 2 y'' + ty' - 3y = 0 It given that y (t) = t -1 is a solution.  Solution Reduction of order needs that a solution already be iden

Quadriatic-equations, Q. a(b - c)x^2 + b(c - a)x + c(a - b) = 0 has equal r...

Q. a(b - c)x^2 + b(c - a)x + c(a - b) = 0 has equal roots then b = ? Ans: Condition that a quadratic equation ax² + bx + c = 0 has equal roots is: Its discriminant, b² - 4ac = 0 A

Reason why we start division, Reasons why we start division : The reason w...

Reasons why we start division : The reason we start division by considering the digit in the leftmost place is efficiency and ease . For instance, suppose we divide 417 by 3, we

External division of section formula, give me the derivation of external di...

give me the derivation of external division of sectional formula using vectors

If field of his patio is 195 what is the length of diagonal, Patrick has a ...

Patrick has a rectangular patio whose length is 5 m less than the diagonal and a width which is 7 m less than the diagonal. If the field of his patio is 195 m 2 , what is the lengt

Trignometry, whta are the formulas needed for proving in trignometry .

whta are the formulas needed for proving in trignometry .

Factoring, how are polynomials be factored/?

how are polynomials be factored/?

The volume and surface area of this solid , The region bounded by y=e -x a...

The region bounded by y=e -x and the x-axis among x = 0 and x = 1 is revolved around the x-axis. Determine the volume and surface area of this solid of revolution.

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