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

Composite functions, f(x)=4x-3 and g(x)=(x+3)/4 a)Find the function fg(x) ...

f(x)=4x-3 and g(x)=(x+3)/4 a)Find the function fg(x) b)Hence describe the relationship between the functions f and g c)Write down the exact value of fg(sqrt(3))

., round 64 to the nearest 10

round 64 to the nearest 10

What kinds classroom activities help children to learn maths, What kinds of...

What kinds of classroom activities can you think of for helping children to make groups of 5 and 10? Once they have enough practice with such activities, children can be helped

Estimate how much should every friend pay, A group of ?ve friends gone out ...

A group of ?ve friends gone out to lunch. The total bill for the lunch was $53.75. Their meals all cost about the similar, so they needed to split the bill evenly. Without consider

Which of the following sets are equal, Which of the following sets are equa...

Which of the following sets are equal? S 1 = {1, 2, 2, 3}, S 2 = {x | x 2 - 2x + 1 = 0}, S 3 = {1, 2, 3}, S 4 = {x | x 3 - 6x

Definition of laplace transforms, You know that it's all the time a little ...

You know that it's all the time a little scary while we devote an entire section just to the definition of something. Laplace transforms or just transforms can appear scary while w

.fractions, what is the difference between North America''s part of the tot...

what is the difference between North America''s part of the total population and Africa''s part

How to calculate percentiles, Q. How to calculate Percentiles? Ans. ...

Q. How to calculate Percentiles? Ans. In a large group of standardized test scores we expect the scores to approximate a normal curve. If all scores are translated to z-s

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