MHB How to Solve the Differential Equation x'=x+sin(t)?

  • Thread starter Thread starter karush
  • Start date Start date
karush
Gold Member
MHB
Messages
3,240
Reaction score
5
Solve the differential equation
$x'=x+\sin(t)$
ok this uses x rather than y which threw me off
so rewrite as
$x'-x=\sin(t)$
thus $u(t)=e^{-t}$
$e^{-t}x'-e^{-t}x=e^{-t}\sin{t}$
and
$(e^{-t}x)'=e^{-t}\sin{t}$
intergrate thru
$\displaystyle e^{-t}x=\int {e^{-t} \sin(t)} dt = -1/2 e^{-t}\sin(t) - 1/2 e^{-t} \cos(t) +e^{-t} c$
divide thru
$\displaystyle x(t)=-\frac{\sin t}{2}-\frac{\sin t}{2}+ce^t$ok well typos probably

W|A returned $\displaystyle x(t) = c_1 e^t - \frac{\sin(t)}{2} - \frac{cos(t)}{2}$
 
Last edited:
Physics news on Phys.org
Let's back up to:

$$\frac{d}{dt}\left(e^{-t}x\right)=e^{-t}\sin(t)$$

Now, when we integrate, we get:

$$e^{-t}x=-\frac{1}{2}e^{-t}\left(\sin(t)+\cos(t)\right)+c_1$$

Hence:

$$x(t)=c_1e^t-\frac{1}{2}\left(\sin(t)+\cos(t)\right)$$

This is equivalent to W|A returned. :)
 
Isn't the 1/2 distributed?
 
karush said:
Isn't the 1/2 distributed?

You could if you want. I chose not to.
 
I have the equation ##F^x=m\frac {d}{dt}(\gamma v^x)##, where ##\gamma## is the Lorentz factor, and ##x## is a superscript, not an exponent. In my textbook the solution is given as ##\frac {F^x}{m}t=\frac {v^x}{\sqrt {1-v^{x^2}/c^2}}##. What bothers me is, when I separate the variables I get ##\frac {F^x}{m}dt=d(\gamma v^x)##. Can I simply consider ##d(\gamma v^x)## the variable of integration without any further considerations? Can I simply make the substitution ##\gamma v^x = u## and then...

Similar threads

  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
4K