0
$\begingroup$

Sometimes I see that $e^c$ becomes only $c$ in the solution of a differential equation. When the problem asks for the general integral there is no problem but when we have some initial condition the answer is different. I have this doubt because even Wolfram Alpha shows $e^c$ as only $c$ in the solution.

  • 0
    A function of a variable is at any point.. a variable.A function of a constant is a constant2017-02-19
  • 0
    You can force WolframAlpha to express the solution in terms of the initial condition by adding `y(0)=y0` to the ODE. [example](http://www.wolframalpha.com/input/?i=y%27%28x%29%3Dy%28x%29^2,+y%280%29%3Dy0)2017-02-19

1 Answers 1

2

Consider the equation $y'(x)=y(x)$. Of course, zero function is a solution. Now let $y$ be a non-zero function. So, $$\frac{y'}{y}=1$$ and integrating we get $$\ln |y|=x+C$$ for $C\in\Bbb R$. Now, $|y|=e^C\cdot e^x$. The constant $e^C$ is positive, denote it by a new $C$. We arrive at $$|y|=Ce^x$$ for $C>0$. Because right-hand-side is always positive, then $y$ has no zeros and by continuity it has a constant sign. Then either $y=Ce^x$, or $y=-Ce^x$, where $C>0$. It allows us to denote $$y=Ce^x$$ for $C\ne 0$ ($-C$ above worked for negative constants). Having in mind that $y=0$ is a solution, we could write $$y=Ce^x$$ for $C\in\Bbb R$.

I hope it helps in your doubts.

Now put the initial condition $y(0)=-2$. Then $\ln |y|=x+C$, hence $C=\ln 2$ and $\ln |y|=x+\ln 2$. Next, $|y|=2e^x$ and, by the initial condition, we are interested with negative solutions: $y=-2e^x$.

The same could be obtained by $y=Ce^x$. Namely, $-2=C$ and $y=-2e^x$.

  • 0
    Yes, thank you. But if we had to solve a Cauchy problem at the and we have to use $e^C$ not $C$. Am i right?2017-02-19
  • 0
    Look at my post now, I added the discussion of the initial condition. Feel free to ask if you have trouble.2017-02-19
  • 0
    In a nutshell we can could say that writing $e^C$ or $C$ doesn't change anything. Right?2017-02-19
  • 0
    In my attempt it does not matter. You could see two methods: with and without $e^C$.2017-02-19