1

$$y^\prime=(y-1)^2, \qquad y(0)=1.01$$

I have tried: $$\begin{align} \int \frac{dy}{(y-1)^2} &= \int dx \\[4pt] -(y-1)^{-1} &= x \\ y &= 1-\frac{1}{x}+C \end{align}$$

Then I cannot find the $C$, because if $x=0$, then $y= -\infty$.

What's wrong?

Blue
  • 75,673
Hanna
  • 11
  • 1
    The question in your title is different than the first question you typed up. – John W. Smith Oct 02 '18 at 01:39
  • the constant $C$ should wind up in the denominator with $x,$ and should have been included in the line just above the first place you currently write it. – Will Jagy Oct 02 '18 at 02:19
  • You forgot to put constant $C$ in this equation $$-(y-1)^{-1} = x$$. As soon as you integrate you have to add constant to the equation even before rearranging the equation. This is incorrect. $$\begin{align} -(y-1)^{-1} &= x \ y &= 1-\frac{1}{x}+C \end{align}$$ . This is correct $$\begin{align}-(y-1)^{-1} &= x+C \ y &= 1-\frac{1}{x+C} \end{align}$$. Here C will come out to be as $-100$ –  Oct 02 '18 at 02:34

3 Answers3

1

A modified approach is to let $f(t) = y(t) - 1$ to obtain a solution to the modified problem $$f' = f^2 \, \hspace{5mm} \, f(0) = \frac{1}{100}.$$ With this then \begin{align} \frac{d f}{dt} &= f^2 \\ \int \frac{df}{f^2} &= \int dt \\ - \frac{1}{f} &= t + c_{0}. \end{align} When $t = 0$ this leads to $c_{0} = - 100$ and $$f(t) = - \frac{1}{t - 100}.$$ In terms of $y(t)$ this result provides $$y(t) = 1 + \frac{1}{100 - t} = \frac{101 - t}{100 - t}.$$

Check: $$y'(t) = \frac{1}{(100 - t)^2} = (y-1)^2$$ and $y(0) = 101/100$.

Leucippus
  • 26,329
0

$$\int \frac{dy}{(y-1)^2}=-(y-1)^{-1}+C = \int dx = x+C.$$

Consolidate the $C$'s:

$$-(y-1)^{-1}=x+C.$$

Set $x=0,y=1.01$ and solve for $C$.

It looks to me like you integrated both sides with respect to $y$, which is not actually what is happening when you solve an ODE by separation of variables. One side gets integrated with respect to $y$ and the other gets integrated with respect to $x$.

Ian
  • 101,645
0

I would emphasize:

$$ - (y-1)^{-1} = x - E $$ for a constant $E$ $$ (y-1)^{-1} = E - x $$ $$ y-1 = \frac{1}{E-x} $$ $$ y = 1 + \frac{1}{E-x} $$

Writing it this way, $E$ is positive. Furthermore, the graph has a vertical asymptote at $x=E.$ The solution does not exist for all $x,$ it blows up.

Will Jagy
  • 139,541