1
$\begingroup$

I have the equation below:

$$(t^2 + 1)dx=(x+4)dt$$

Where $x(0) = 3$

I am trying to use separation of variables, and I end up here:

$$\ln(x+4)=\arctan(t)+C$$

Trying to simplify it more:

$$x=-4+\ln(\arctan(t)+C)$$

Is this correct? I think I should use $x(0) = 3$ to find value of the constant, how can I do that?

Thanks

  • 0
    From line 2 to line 3 went something wrong. I guess you wanted to exponentiate both sides?2012-05-14
  • 1
    @Sean87 I like the writing on the cup (Feel the same way about changing the world)2012-05-14
  • 0
    Good :P but the source is closed ;)2012-05-14

3 Answers 3

3

You are right when you got $\ln(x+4)=\arctan(t)+C$. Starting from here, since $e^{\ln x}=x$, we have $$x+4=e^{\ln(x+4)}=e^{\arctan(t)+C}=e^C\cdot e^{\arctan(t)}=C_1e^{\arctan(t)}$$ where $C_1=e^C$. By the initial condition $x(0)=3$, we have $$7=C_1e^{\arctan(0)}=C_1.$$ Therefore, $$x=7e^{\arctan(t)}-4$$ is the solution of the initial value problem.

  • 1
    It should be $7 e^{arctan(t)}$ because $x(0)=3$ not $4$. You still have +12012-05-14
  • 0
    @Artin: Thanks. I edited it.2012-05-14
5

$$ \frac{\mathrm{d}x}{x+4} = \frac{\mathrm{d}t}{t^2+1}$$

Integrating both sides

$$ \ln (x+4) = arctan(t) + C \tag{1}$$

$x(0) = 3$ implies

$$ \ln(7) = C$$

Rewriting $(1)$

$$ \begin{align*} \ln (x+4) &= arctan(t) + \ln(7) \\ \ln (x+4) - \ln (7) &= arctan(t)\\ \ln \frac{x+4}{7} &= arctan(t)\\ \frac{x+4}{7} = e^{arctan(t)}\\ \Rightarrow x = -4 + 7 e^{arctan(t)} \end{align*} $$

  • 0
    For full credit you should probably say why the other possibility $$\ln(-x-4) = \arctan(t)+C$$ is not the one to use.2012-05-14
  • 0
    Yes, of course (Thanks)2012-05-14
4

$x(0)=3$ means when $t = 0$ , $x(t) = x = 3$ here $x$ is function in $t$

Here you have to find value of $C$

$\log(x + 4) = \arctan(t) + C$

$\log(3 + 4) = \arctan(0) + C$; $C = \log(7)$

Therefore, the solution is $\log(x + 4) = \arctan(t) + \log(7)$

  • 0
    Looks better in TeX, doesn't it? Have a look at how I did it, and then you will be able to do it yourself.2012-05-14
  • 0
    To see the code behind the Tex code click on edit link just below the answer.2012-05-14
  • 0
    @Prasad, also mention that $\log()$ here is to the base $e$ otherwise one can use $\ln()$2012-05-14
  • 0
    Another way to see the $\TeX$ code is to highlight the expression, right-click (or Mac equivalent), select "Show Math As" and then "TeX Commands". You might copy what you see straight to your edit box and then modify it to suit your needs (after enclosing in $'s, since the display omits those).2012-05-14