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

Help, How do I solve step by step 7

How do I solve step by step 7

The mean value theorem with proof, The Mean Value Theorem  Assume f(x)...

The Mean Value Theorem  Assume f(x) is a function that satisfies both of the subsequent. 1.   f(x) is continuous on the closed interval [a,b]. 2.   f(x) is differentiabl

Prepare a bar diagram, Question Write a short note on the following: ...

Question Write a short note on the following: 1 The weekly salaries of a group of employees are given in the following table. Find the mean and standard deviation of the

Inequalities, seven more than a number is less than or equal to -18

seven more than a number is less than or equal to -18

The new area is 168 square inches how many inches increase, A 4-inch by 6-i...

A 4-inch by 6-inch photograph is going to be enlarged through increasing each side by the similar amount. The new area is 168 square inches. How many inches is each dimension incre

What is angle pairs in parallel lines, What is Angle Pairs in Parallel Line...

What is Angle Pairs in Parallel Lines ? Next, we introduce several angle pairs formed by transversals which are very important in our study of geometry. Alternate interior an

String art, finding distance using circumference

finding distance using circumference

General rule - probability rule, GENERAL RULE A general rule is to sub...

GENERAL RULE A general rule is to subtract the probabilities with an even number of components inside the parentheses and add those with an odd number of components (one or th

Limit properties, Limit Properties :  The time has almost come for us t...

Limit Properties :  The time has almost come for us to in fact compute some limits.  Though, before we do that we will require some properties of limits which will make our lif

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