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

Lesson 3.5 skills practice, Noah is renewing a magazine subscription. one p...

Noah is renewing a magazine subscription. one package offers to renew the magazine for 3 years for 26$. A second package offers to renew the magazine for 5 years for $38

Lisa was assigned 64 pages how many more pages must she read, Lisa was assi...

Lisa was assigned 64 pages to read for English class. She has ?nished of the assignment. How many more pages must she read? If Lisa has read 3/4 of the assignment, she has 1/4

Explain the common forms of linear equations, Explain the Common Forms of L...

Explain the Common Forms of Linear Equations ? An equation whose graph is a line is called a linear equation. Here are listed some special forms of linear equations. Why should

Evaluate infinity limit into the polynomial , Example   Evaluate following...

Example   Evaluate following limits. Solution Here our first thought is probably to just "plug" infinity into the polynomial & "evaluate" every term to finds out the

Conclusion of egroff''s theorem and lusin''s theorem, (1) Show that the con...

(1) Show that the conclusion of Egroff's theorem can fail if the measure of the domain E is not finite. (2) Extend the Lusin's Theorem to the case when the measure of the domain E

Applications of de moiver, what are the applications of de moiver''s theore...

what are the applications of de moiver''s theorem in programming and software engineering

Probability, The probability that a leap year will have 53 sunday is ? and ...

The probability that a leap year will have 53 sunday is ? and how please explain it ? (a)1/7    (b) 2/7    (c) 5/7    (d)6/7 Sol) A leap year has 366 days, therefore 52 weeks i.e

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