Evaluate definite integral. x if x<1; 1/x if x> or equal to 1.

In summary, to evaluate the definite integral for the given function, the integral must be broken up into two parts: one from 0 to 1, and the other from 1 to 4. The first part, ∫0 to 1 of x, evaluates to 1/2. The second part, ∫1 to 4 of (1/x)dx, evaluates to ln(4). The final answer is the sum of these two parts, which is approximately 1.886.
  • #1
Lo.Lee.Ta.
217
0
Evaluate definite integral. "x if x<1; 1/x if x> or equal to 1."

1. Consider the function: f(x) = {x if x<1
{1/x if x≥1

Evaluate the definite integral.

∫from 0 to 4 of f(x)dx


2. Okay, I think I vaguely remember something about these sorts of problems... Isn't it something like you choose which value to go along with depending on what the limits of the integral are?
But the limit 0 goes along with "x if x<1" and 1 through 4 go along with "1/x if x≥1."
And integrals just evaluate area, so can we break this up into 2 integral problems?

Integral #1

∫0 to 0
Wait...But that would be just zero. If the limits were from 0 to 0, then there'd be no area! :/

Integral #2

∫1 to 4 of (1/x)dx

= ln(4) - ln(1) = 1.386

Yeah, this is not the right answer.
I don't even really know what I'm doing... =_=
I'm probably not even going about it right at all...
Help?
Thank you SO much!
 
Physics news on Phys.org
  • #2


Right approach, but where did you get "0 to 0" from in the first integral?
 
  • #3


I was thinking that the "x if x<1" meant that 1 could not be part of the limit...

But maybe it's okay to have the integral from zero to one because it's just the area right up to one?

So would it be instead:

Integral #1

∫0 to 1 of x

= (x^2)/2 |0 to 1

= (1^2)/2 - (0^2)/2

= 1/2 - 0 = 1/2

Integral #2

∫1 to 4 of (1/x)dx

= ln(4) - ln(1) = 1.386

So would the answer be .5 + 1.386 = 1.886 ?
Not sure at all... :/
 
  • #4


Lo.Lee.Ta. said:
I was thinking that the "x if x<1" meant that 1 could not be part of the limit...

But maybe it's okay to have the integral from zero to one because it's just the area right up to one?

So would it be instead:

Integral #1

∫0 to 1 of x

= (x^2)/2 |0 to 1

= (1^2)/2 - (0^2)/2

= 1/2 - 0 = 1/2

Integral #2

∫1 to 4 of (1/x)dx

= ln(4) - ln(1) = 1.386

So would the answer be .5 + 1.386 = 1.886 ?
Not sure at all... :/

The inequality x < 1 just means that '1' is excluded, but everything to the left of 1 is included. The area under the curve AT x = 1 is zero (that is, it is the area of a line segment, which = 0). So, yes: the first part is the integral from 0 to 1.
 
  • #5


Lo.Lee.Ta. said:
I was thinking that the "x if x<1" meant that 1 could not be part of the limit...

But maybe it's okay to have the integral from zero to one because it's just the area right up to one?
...
If you want to get picky, for Integral#1 you could do

[itex]\displaystyle \lim_{\,a\to1^-\,}\int_0^a x\,dx\ .[/itex]

But that will give the same result as [itex]\displaystyle \ \ \int_0^1 x\,dx\ .[/itex]
 
  • #6


Lo.Lee.Ta. said:
I was thinking that the "x if x<1" meant that 1 could not be part of the limit...
Strictly speaking, as SammyS said, you can't. You need to use the limit as an improper integral. But even so, surely you realize that there are numbers between 0 and 1?

But maybe it's okay to have the integral from zero to one because it's just the area right up to one?

So would it be instead:

Integral #1

∫0 to 1 of x

= (x^2)/2 |0 to 1

= (1^2)/2 - (0^2)/2

= 1/2 - 0 = 1/2

Integral #2

∫1 to 4 of (1/x)dx

= ln(4) - ln(1) = 1.386

So would the answer be .5 + 1.386 = 1.886 ?
Not sure at all... :/
 
  • #7


Okay, so it's okay to have the limits from 0 to 1 and from 1 to 4.

But my homework computer program does not count the answer 1.886 as correct...

Did I make some mistake in calculating the integrals?
Do you have any idea where I went wrong?

Thank you!
 
  • #8


Lo.Lee.Ta. said:
Okay, so it's okay to have the limits from 0 to 1 and from 1 to 4.

But my homework computer program does not count the answer 1.886 as correct...

Did I make some mistake in calculating the integrals?
Do you have any idea where I went wrong?

Thank you!
Maybe it wants the exact number, i.e. (1/2)+ln(4) .
 
  • #9


@SammyS - Wow! You were exactly right! Thank you so much! :D
 

FAQ: Evaluate definite integral. x if x<1; 1/x if x> or equal to 1.

What is a definite integral?

A definite integral is a mathematical concept used to calculate the area under a curve on a graph. It represents the accumulation of infinitely small rectangles that make up the area under the curve.

What does "definite" mean in terms of definite integrals?

In a definite integral, the limits of integration (the numbers that define the start and end points of the curve) are specified. This makes the integral "definite" because it will always give a specific numerical value as the result.

How do you evaluate a definite integral?

To evaluate a definite integral, you first need to find the antiderivative of the function. Then, substitute the upper and lower limits of integration into the antiderivative and subtract the lower limit from the upper limit to get the final result.

What is the function represented in this definite integral?

The function represented in this definite integral is a piecewise function that changes depending on the value of x. For x<1, the function is x; for x>=1, the function is 1/x.

Can the definite integral be used to find the average value of a function?

Yes, the definite integral can be used to find the average value of a function over a given interval. The average value is calculated by dividing the definite integral by the difference between the upper and lower limits of integration.

Back
Top