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

Linear Systems, Find the solution to the following system of equations usin...

Find the solution to the following system of equations using substitution:

Using two variables, Leo works at the Bagel Shop after school and on Saturd...

Leo works at the Bagel Shop after school and on Saturdays. He is paid $4.00 per hour after school and $5.00 per hour on Saturday. Last week Leo worked a total of 12 hours and made

Determine the max theoretical information rate, 1 Data is to be transmitted...

1 Data is to be transmitted over Public Switched Telephone Network (PSTN) using 8 levels per signaling elements. If the bandwidth is 3000 Hz, deduce the theoretical maximum transfe

Analytical geometry, convert the equation 4x^2+4y^2-4x-12y+1=0 to standard ...

convert the equation 4x^2+4y^2-4x-12y+1=0 to standard form and determine the center and radius of the circle. sketch the graph.

How to grow your brand with existing customers., "To grow your brand, you n...

"To grow your brand, you need to encourage your existing customers to buy your product a liitle more often. It is far more important to maximise the number of times your buyers buy

Determine the property of join in a boolean algebra, Determine that in a Bo...

Determine that in a Boolean algebra, for any a and b, (a Λ b) V (a Λ b' ) = a.  Ans: This can be proved either by using the distributive property of join over meet (or of mee

Identify the surface for the equation , Identify the surface for each of th...

Identify the surface for each of the subsequent equations. (a) r = 5 (b) r 2 + z 2 = 100 (c) z = r Solution (a)  In two dimensions we are familiar with that this

Montel''s Theorem, In 5 pages, please try to prove Theorem 3 based on Monte...

In 5 pages, please try to prove Theorem 3 based on Montel''s Theorem. please use "Latex" Knuth Donald to write this paper. It is known that Theorem 3 on page 137 of the attached

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