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

Addition of like terms with same signs, Case 1: Suppose we are given...

Case 1: Suppose we are given expressions like 3abc and 7abc and asked to compute their sum. If this is the case we should not worry much. Because adding like exp

Quantitative, A lobster catcher spends $12 500 per month to maintain a lobs...

A lobster catcher spends $12 500 per month to maintain a lobster boat. He plans to catch an average of 20 days per month during lobster season. For each day, he must allow approx

Find the shortest weighted paths, 1. Answer the questions about the graph b...

1. Answer the questions about the graph below. a. Name one cycle that begins and ends at B. b. True/False - the graph is strongly connected.  If not, explain why not.

Show frequency tables, Q. Show Frequency Tables? Ans. A frequency ...

Q. Show Frequency Tables? Ans. A frequency table is used to show how often a piece of data occurs. Example: Michelle decides to keep track of the number of phone call

How many different combinations could she form these item, Wendy has 5 pair...

Wendy has 5 pairs of pants and 8 shirts. How many different combinations could she form with these items? Multiply the number of choices for each item to find out the number of

Relation and functions, Prove that if f and g are functions, then f interse...

Prove that if f and g are functions, then f intersect g is a function by showing f intersect g = glA A={x:g(x)=f(x)}

Calculus, how to find relative extrema at the indicated interval of the fol...

how to find relative extrema at the indicated interval of the following functions and how to sketch it?

Basic Stat, You have been research for your statistics class on how nervous...

You have been research for your statistics class on how nervous the American adults are in general, you have decided to use HINTS 2007 data set that has a scale (going from 0 to 24

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