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

How many hours will it take before the cars are 610 miles, Two commuters le...

Two commuters leave the similar city at the same time but travel in opposite directions. One car is traveling at an average speed of 63 miles per hour, and the other car is traveli

Determine the probability - probability example, Consider two bags, A and B...

Consider two bags, A and B, with the following contents Bag A Bag B 3 white marbles 4 white marbles 2 red marbles

staticis, a statisics professor plans classes so carefully that the length...

a statisics professor plans classes so carefully that the lengths of her classes are uniformly distributed between 46.0 and 56.0 minutes. find the probability that a given class pe

Trigonometry, Prove: 1/cos2A+sin2A/cos2A=sinA+cosA/cosA-sinA

Prove: 1/cos2A+sin2A/cos2A=sinA+cosA/cosA-sinA

Solving whole number riddles, What is the answer for I am greater than 30 a...

What is the answer for I am greater than 30 and less than 40. The sum of my digits is less than 5.

Simplifying rational expressions, I need to simple this rational expression...

I need to simple this rational expression, but I can''t figure out how. (x+1)/(x^2-2x-35)+(x^2+x-12)/(x^2-2x-24)(x^2-4x-12)/(x^2+2x-15)

Numercial analysis and computer techniques, write FORTRAN programme to gene...

write FORTRAN programme to generate prime numbers between 1 and 100

Shares and dividends, How do I proceed with a project on Shares and Dividen...

How do I proceed with a project on Shares and Dividends?

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