1. definite integral of cosine...

Earlier today i was asked what i thought was going to be a simple problem and i can't for the life of me get an answer. I was asked to come up with an equation for a curve that looks like -cos(theta) from 0 - PI, has a y-intercept of 10,000, and has an area underneath of 200,000. So I immediately think -x cos(theta) + 10001 where x is the amplitude scale factor. So shouldn't I be able to set the definite integral of this equation (from 0 - PI), equal to 200000 and solve for x? Once I wrote it out I saw the problem I was going to have evaluating sin(0) and sin(PI).

[int from 0-PI] (-xcos(theta) + 10001) dtheta = 200000
-x [int from 0-PI](cos(theta) dtheta) + [int from 0-PI](10001 dtheta) = 200000
-x [sin(PI) - sin(0)] + 10001(PI) = 200000
-x(0) + 10001(PI) = 200000
10001(PI) = 200000 ?????

What am I doing wrong because all I'm getting is 10001(PI) = 200000 because my x get's multiplied by the zero sin(PI) - sin(0) leave behind. Have i set this up entirely wrong?

thanks for any help

2. Re: definite integral of cosine...

Hi.

Your question could have been better expressed which is why I think nobody has responded yet. Nevertheless, I understand what you're saying and I think I've spotted a problem with your algebra.

What is the $y$-intercept of the function $f(\theta) = -x\cos(\theta) + 10,001$?

I think you will find that it isn't as you'd hoped! This +10,001 is the culprit. I'm sure you can see a way to fix this: just solve for $-x\cos(0) + c = 10,000$ and you should be on your way.

Your approach in general is good, however, so your instincts were right.

Happy solving.

3. Re: definite integral of cosine...

Hey thanks for the reply. Sorry I didn't read up on the proper formatting tags, and yes it looked terrible. Thanks for still taking the time. I don' t exactly understand what you meant by the following.

$-x\cos(0) + c = 10,000$

But it did make me reconsider how I was treating the amplitude scaling. I forgot that scaling $cos$ or $sin$ doesn't just expand the function upwards but also downwards. So attempting to solve for the scale factor without compensating in the vertical shift is what killed me. As the wave's amplitude gets scaled it needs to be shifted upwards again to maintain a $y_intercept$ at 10000. I used the following equation and came up with the desired result:

$\int_0^\pi ( -x\cos(\theta) + x + 10000)$

This way what ever scale gets applied to the wave, the wave will be raised that same amount so it still has $y-intercept$ at $10000$.

The final value for $x$ is $approx. 63661.98$

I'm wondering if there's a way to do this without integrating.

Thanks a lot nimon!!