Constant of integration's sign

  • Thread starter Thread starter DocZaius
  • Start date Start date
  • Tags Tags
    Constant Sign
DocZaius
Messages
365
Reaction score
11

Homework Statement



Solve for A:

dA/ds = -k s

Homework Equations



See problem statement

The Attempt at a Solution



I switched the equation around:
dA= -k s ds

Integrated:

A= -(k/2) (s^2+c)

Apparently, that is wrong and I see that the answer should be:

A= -(k/2) (s^2-b^2)

My question is: Why must the constant of integration subtract from s^2? Why couldn't it add to it?
 
Physics news on Phys.org
DocZaius said:

Homework Statement



Solve for A:

dA/ds = -k s

Homework Equations



See problem statement

The Attempt at a Solution



I switched the equation around:
dA= -k s ds

Integrated:

A= -(k/2) (s^2+c)

Apparently, that is wrong and I see that the answer should be:

A= -(k/2) (s^2-b^2)

My question is: Why must the constant of integration subtract from s^2? Why couldn't it add to it?

You wouldn't write the constant as ##-b^2## unless you had another condition given, such as an initial condition. Writing it that way implies the constant must be negative (or positive if you multiply the other minus sign through). In general you wouldn't do that. It doesn't matter whether you add or subtract the constant of integration, but it does matter if you square it, making the term positive.
 
Couldn't the constant of integration be complex? Are you allowed to have that when s is real?
 
If, as in your example, the functions in the DE are real and the boundary conditions are real, the solution will be real. You would typically write the solution as$$
y = -\frac{ks^2}{2} + C$$Equivalently you could write it as$$
y = -\frac{ks^2}{2} - C$$In neither case would you use ##C^2## without additional information about the DE. I thought that was what you were concerned about.
 
It was what I was concerned about. I was trying to think of some reason why -b^2 was there, and a complex b was the only thing that could make it work, since that squared must be real and could be either positive or negative. Oh well, thank you for your help.

edit: Nevermind even the square of b could be complex if b was complex. I was thinking of the absolute value. I give up!
 
Last edited:
DocZaius said:
It was what I was concerned about. I was trying to think of some reason why -b^2 was there, and a complex b was the only thing that could make it work, since that squared must be real and could be either positive or negative. Oh well, thank you for your help.

You're welcome. The upshot of this is that you wouldn't normally use that ##-b^2## without more info. So you were right on the money to wonder about it. There is probably more to that problem.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top