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

How many inches long is the bedroom, Raul's bedroom is 4 yards long. How ma...

Raul's bedroom is 4 yards long. How many inches long is the bedroom? There are 36 inches within a yard; 4 × 36 = 144 inches. There are 144 inches in 4 yards.

Methods of set representation, I have an assignment of set theory, please E...

I have an assignment of set theory, please Explain Methods of set representation.

Find the probability of having 53 sundays in leap year , Find the probabili...

Find the probability of having 53 Sundays in (i) a leap year                           (ii) a non leap year       (Ans:2/7 , 1/7 ) Ans:          An ordinary year has 365 da

Draw grouped frequency tables, Q. Draw Grouped Frequency Tables? Ans. ...

Q. Draw Grouped Frequency Tables? Ans. Grouped frequency tables are often used when there are many different values. In these tables, the values are grouped into classes

Permatuation and combination problem, A student is allowed to select at mos...

A student is allowed to select at most n-blocks from a collection of (2n + 1) books. If the total number of ways in which he can select a book is 63, find the value of n. Solution

Trig identities, What is the exact vale of sin(theta/2) when sintheta=3/5, ...

What is the exact vale of sin(theta/2) when sintheta=3/5, pi/2

Example of binomial distribution, Example:  Joanne is given a four-question...

Example:  Joanne is given a four-question multiple-choice quiz.  She hasnt studied the material to be quizzed, so she decides to answer the questions by randomly guessing the answe

Draw tangent graph y = tan ( x ), Graph y = tan ( x ). Solution In...

Graph y = tan ( x ). Solution In the case of tangent we need to be careful while plugging x's in since tangent doesn't present wherever cosine is zero (remember that tan x

Statistical estimation, Statistical estimation This is the procedure of...

Statistical estimation This is the procedure of using statistic to estimate a population parameter This is divided into point estimation whereas an estimate of a population

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