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

Introduction to technical mathmatic, 81 miles equal how many inches simplif...

81 miles equal how many inches simplify your answer integer od decimal..

Steps for alternating series test, Steps for Alternating Series Test Su...

Steps for Alternating Series Test Suppose that we have a series ∑a n and either a n = (-1) n b n or a n = (-1) n+1 b n where b n > 0 for all n.  Then if,   1.

Linda bought 35 yards of fencing how much did she spend, Linda bought 35 ya...

Linda bought 35 yards of fencing at $4.88 a yard. How much did she spend? To multiply decimals, multiply generally, count the number of decimal places in the problem, then us

Function, f(x)=x^2-5x+6, determine inverse of f(x)!

f(x)=x^2-5x+6, determine inverse of f(x)!

Describe visualize solutions of simultaneous equations, Describe Visualize ...

Describe Visualize Solutions of Simultaneous Equations ? By drawing the graph of each equation in a system of equations, you can see a picture of the system's solutions. Fo

Left-handed limit, Left-handed limit We say provided we can mak...

Left-handed limit We say provided we can make f(x) as close to L as we desire for all x sufficiently close to a and x Note that the change in notation is extremely m

Fenrir chain, Fenrir the wolf is bound by a magical chain. The chain is an ...

Fenrir the wolf is bound by a magical chain. The chain is an endless piece madr up of 30 links.Originally forged by 6 pieces , each made up of 5 links. It costs 2 silver coins to c

Draw the graph for finite state machine, Consider the finite state machine ...

Consider the finite state machine whose state transition table is : Draw the graph for it.  Ans: The graph for the automata according to the transition table is drawn b

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