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

Toplogy, Let 0 ! V1 !    ! Vk ! 0 be a long exact sequence of vector spa...

Let 0 ! V1 !    ! Vk ! 0 be a long exact sequence of vector spaces with linear maps. Show that P (??1)i dim Vi = 0.

Estimate the value of x and y in liner equation, ( a+2b)x + (2a - b)y = 2...

( a+2b)x + (2a - b)y = 2, (a - 2b)x + (2a +b)y = 3 (Ans: 5b - 2a/10ab , a + 10b/10ab ) Ans: 2ax + 4ay = y , we get 4bx - 2by = -1 2ax+ 4ay = 5  4bx- 2by = - 1

#title., fixed cost of $1400 ,printing cost of .40 cents -each item to sell...

fixed cost of $1400 ,printing cost of .40 cents -each item to sell for $1.05. what is linear cost function, linear revenue function and number of items to be sold to make a profit

Real constant and difference equation, Derive for the filter from z=a and p...

Derive for the filter from z=a and poles at z=b andz=c, where a, b, c are the real constants the corresponding difference equation. For what values of parameters a, b, and c the fi

First order differential equations, In this section we will consider for so...

In this section we will consider for solving first order differential equations. The most common first order differential equation can be written as: dy/dt = f(y,t) As we wil

Multiplication of two matrices, Need assignment help, Explain Multiplicatio...

Need assignment help, Explain Multiplication of two Matrices.

Define histogram, Q. Define histogram? Ans. A histogram is a bar g...

Q. Define histogram? Ans. A histogram is a bar graph that gives the frequency of each value. Here are a few examples to illustrate the usefulness of this method of data r

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