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

Explain how we converting fractions to percents, Explain how we Converting ...

Explain how we Converting Fractions to Percents ? To convert a fraction to a percent: 1. Convert the fraction to a decimal using long division. 2. Move the decimal point two p

How many square centimeters are in one square meter, How many square centim...

How many square centimeters are in one square meter? There are 100 cm in a meter. A square meter is 100 cm through 100 cm. The area of this is 10,000 sq cm (100 × 100 = 10,000)

Calculate the limit of f (-4), Let's take a look at one more example to ens...

Let's take a look at one more example to ensure that we've got all the ideas about limits down that we've looked at in the last couple of sections. Example: Given the below gr

Logics Puzzle, It’s been a busy weekend for Larry. Five people in his neigh...

It’s been a busy weekend for Larry. Five people in his neighborhood left on vacation Saturday morning and each of them left a pet for Larry to care for until they return. It’s a go

Define regression, Define regression. The main reason of curve fitting ...

Define regression. The main reason of curve fitting is to estimate one of the variables (the dependent variable) from the other (the independent variable). The procedure of est

Percent problems.., I have a graph, i need to determine the many hours per ...

I have a graph, i need to determine the many hours per day becky spends on math activity if she does it 25% of her day.

Sketch the hyperbolic spiral-spiral of archimedes, 1. Sketch the Spiral of ...

1. Sketch the Spiral of Archimedes: r= aθ (a>0) ? 2: Sketch the hyperbolic Spiral: rθ = a (a>0) ? 3: Sketch the equiangular spiral: r=ae θ (a>0) ?

Jay bought twenty-five $0.37 stamps how much did he spend, Jay bought twent...

Jay bought twenty-five $0.37 stamps. How much did he spend? To ?nd how much Jay spent, you must multiply the cost of each stamp ($0.37) through the number of stamps purchased (

Determine z-scores and percentiles, Q. Determine Z-scores and Percentiles? ...

Q. Determine Z-scores and Percentiles? Ans. Z-scores help measure how far a piece of data is from the mean. More specifically, Z-scores tell how far a piece of data is fr

Slopes downward from left to right has a positive slope, Can you explain th...

Can you explain that it is true that a line that slopes downward from left to right has a positive slope?

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