2

Method 1:

Method 1 image hyperlink

Method 2:

Method 2 image hyperlink

In these two images, you will see that I have integrated $\sin^3 x$ using different techniques. As you can see I get different answers. I asked my teacher why this is and he said it is because the constants '$C$' are different for each one.

Can someone please explain to me what that means? Also, Why does it vanish when we add limits?

I know this is a relatively easy question for this site, but could you be wary I am only 16. So, could you make your answers simple enough for me to understand?

Secondly, you'd've seen that I showed my working out in the images. I did this using word - WHICH TOOK A LIFETIME! Do you have any suggestions of apps, websites or literally anything that could speed up digitalising my working out for maths?

Thanks, IB

  • I suggest you learn how to use LaTeX, makes it much easier – mdave16 Mar 25 '17 at 17:33
  • also i think you made an error, the constant terms are different, but the functions themselves should be the same – mdave16 Mar 25 '17 at 17:34
  • 2
    Method 1 is definitely wrong: the derivative of the thing you found is not $\sin^3 x$. But if it WAS right, and so was the other, you'd have two functions whose derivatives were both $\sin^3 x$. So the derivative of their DIFFERENCE would be zero, right? What's that tell you about the difference? Well, a function whose derivative is zero is a constant. So the difference between your answers would be a constant. Simple example: integrate $2 \sin x \cos x$. One method gets you $\sin^2 x$; another gets you $-\cos^2 x$. The difference, $\sin^2 x + \cos^2 x$, is just 1, which is a constant. – John Hughes Mar 25 '17 at 17:37
  • Method 1 is wrong, note that $\sin^2(x) + \cos^2(x) = 1$, so $\sin^2(x) = 1 - \cos^2(x)$, not $\sin^2(x) = -\cos^2(x)$ like you have – mdave16 Mar 25 '17 at 17:38
  • damnit, 9 seconds before me! – mdave16 Mar 25 '17 at 17:38
  • Sorry, I don't understand what I did wrong. Is (sin x)^2 not 1/2(1- cos2x) – Brilyn Bangura Mar 25 '17 at 17:46
  • Well you must have done something wrong as you've basically concluded $\sin^2(x) = - \cos^2(x)$ which isnt so. $1- \cos 2x = (1- (\cos^2 x - \sin^2x)) = 1 - \cos^2 x + \sin^2 x = 1-\cos^2x + 1 - \cos^2 x=2 - \cos^2(x)$ not $-\cos^2(x)$. You did a sign error. 1+1 =2. Not 1+1 =0. – fleablood Mar 25 '17 at 18:35
  • But your teacher was wrong. This time. – fleablood Mar 25 '17 at 18:36
  • A "Word" of advice on writing equations: Word is one of the worst software programs in common use for writing equations. It is better to avoid it completely for this sort of thing if you can. To format math in the recommended way for this site, start reading http://math.stackexchange.com/help/notation (and follow the links)--it is much easier to write math this way than to do it in Word. – David K Mar 25 '17 at 18:49

4 Answers4

2

Your teacher was referring to a true fact that is worthwhile for you to know, although as it turns out, it does not apply to your two calculations.

To understand what your teacher is talking about, we need to remember that $\int f(x)\,dx$ does not describe a single function, but rather a family of functions containing every function whose derivative is $f.$ Each member of that family of functions is an antiderivative or primitive of $f.$

Since the notation for a family of functions like this is a bit complicated, we usually indicate the solution of an indefinite integral by writing down just one of its antiderivatives, that is, one representative from the family of functions that solves the integral. The $+C$ term is an acknowledgement that the choice of which function to write is arbitrary; it says that in order to say which of the antiderivatives of $f$ we have written, we just have to choose a value for the constant $C.$ A different choice will give us a different antiderivative, but it belongs to the same family of functions.

It often happens that when you use two different methods to integrate a function, you end up with answers that look different, in much the same way that your two answers look different. In those cases, your teacher is correct: if you remove the $+C$ from each answer, the functions that remain differ by a constant amount, and that is the difference your teacher referred to. An example of this is in this answer to another integration question

In a definite integral of $f,$ again we can use any antiderivative of $f$ in the solution, but we must use the same antiderivative at both ends of the interval of integration. So whatever the amount is by which the antiderivative you chose is greater than the antiderivative someone else chose, the difference cancels out when you subtract the value at one end from the value at the other.

In your particular integral, however, in your first attempt at the solution you simplified $[1 - (2\cos^2 x - 1)]$ to $-2\cos^2 x.$ That is incorrect. In fact, $$[1 - (2\cos^2 x - 1)] = 2 - 2\cos^2 x.$$ The missing term $2$ is why you are missing the term $-\cos x$ at the end. That is, your first result is simply wrong, not just using a "different constant $C$" than your second result.

David K
  • 108,155
  • Doesn't change the fact that the teacher was wrong. That was not why he got different answers. – fleablood Mar 25 '17 at 18:35
  • @fleablood Yes, of course. One of the two "solutions" was simply incorrect. In the last paragraph I pointed out exactly where the error was introduced into that "solution." I have tried to clarify that by editing. – David K Mar 25 '17 at 18:43
1

$\int f(x) dx$ is a function, $F(x)$ so that $F'(x) = f(x)$. If $F(x)$ is such a function, then if $G(x) = F(x) +k$ for some constant $k$ then $G'(x) = F'(x)$ and ... well, then $\int f(x) dx$ could logically just as likely be $G(x)$ as well as $F(x)$ and there is no way to say one is correct and the other is wrong. So $\int f(x) dx $ is not one function but an infinite set of functions. But what all these functions have in common is that they all equal one another plus or minus some constant value difference between them.

In other words if $H'(x) = J'(x)= h(x)$ then $H(x)=J(x) + C$ for some $C$ and we say $\int h(x) dx = H(x)$ or any other $J(x) = H(x) + C$ for some constant.

or $\int h(x) dx = H(x) + C$.

Now if we take limits $\int_{a}^b h(x) dx$ that means we evaluate $H(x) +C$ at $x = b$ and at $x = a$ and subtract the result. So... $(H(b) + C) - (H(a) + C) = H(b) - H(a)$. Notice the constant (whichever value it was) "cancels out".

So we don't have to worry about the constants for specific values.

As to why you teacher said the constants were different. Your teacher was rushed, answering a common mistake, and not realizing that isn't the reason.

If you got $\frac {\cos^3 x}3 + C_1$ by method 1, and you goe $\frac{\cos^3 x}3 - \cos x + C_2$ by method 2. Something went wrong.

That would mean $\frac {\cos^3 x}3 + C_1 = \frac{\cos^3 x}3 - \cos x + C_2$ or $\cos x = C_2 - C_1$ which is a constant value. $\cos x$ is not a constant function so this can not be right.

You made an error somewhere else. Your teacher was too rushed to notice.

fleablood
  • 130,341
0

Consider $f(x)=x^2+3$. Then $f'(x)=2x$. Isn't it ? Now if integrate this $2x$ again what do I get ? I will get $x^2$. So what happened in this entire process ? I lost the "+3" in the original function. So to compensate for these losses that we add a "+c" at the end. This is just an elementary motivation. When we add limits we exactly quantify the value of "c" so it vanishes and we get the particular result. Hope this is clear.

For $\sin^3 x$ you can use the following formula directly $\sin 3x=3\sin x -4\sin^3x.$

being_hd
  • 3,573
0

Integration is just opposite of differentiation so whenever we integrate without limits we add a constant C which woud vanish on differentiating it. You can always write a function f(x) as (f(x) +0) and on integrating it, the integration of 0 is a constant ( differentiation of constant is zero) so we write a constant always beside the main answer. You can match both your answers by trignometry and you would observe that more constants come out and your both answers are same. On putting limits we actually do (g(final) +C)-(g(initial)+ C) and the constants cancel out.