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

Reflection , How do you reflect about the origin

How do you reflect about the origin

Initial recognition of the financial instruments, Grimm plc (Grimm) has the...

Grimm plc (Grimm) has the following transactions: a) On 1 st January 2010, Grimm issued 400,000 convertible £1 6% debentures for £600,000.  The professional fees associated wit

Prerequisite, Is prerequisite multipcation or addition

Is prerequisite multipcation or addition

Lognormal distribution, The Lognormal Distribution If ln(X) is a normal...

The Lognormal Distribution If ln(X) is a normally distributed random variable, then X is said to be a lognormal variable. If P1, P2, P3, ... are the prices of a scrip in per

Arc length and surface area revisited, Arc Length and Surface Area Revisite...

Arc Length and Surface Area Revisited We won't be working any instances in this part.  This section is here exclusively for the aim of summarizing up all the arc length and su

How long will it take her to save $350, Each week Jaime saves $25. How long...

Each week Jaime saves $25. How long will it take her to save $350? Divide $350 by $25; 350 ÷ 25 = 14 weeks.

Evolve a game to help children remember basic multiplication, Evolve a game...

Evolve a game to help children remember basic multiplication facts. In this section we have looked at ways of helping children absorb some simple multiplication facts. But what

Rental car agency has 50 cars, Rental car agency has 50 cars. Rental rate i...

Rental car agency has 50 cars. Rental rate in winter is 60%. What is probability that in give winter month the rental rate is fewer than 35 cars rented? Use normal distribution to

Find the length of the rectangle, Suppose that the width of a rectangle is ...

Suppose that the width of a rectangle is three feet shorter than length and that the perimeter of the rectangle is 84 feet. a)    Set up an equation for the perimeter involving

Time and Work, A and B can finish a piece of work in 16 days and 12 days re...

A and B can finish a piece of work in 16 days and 12 days respectively.A started a work and worked at it for 2 days.He was then joined by B.Find the total time taken to finish the

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