Cauchy problem with absolute value

84 Views Asked by At

How can I solve the following Cauchy problem?

$x''(t)=\left|x\right|+t$

where

$x(0)=0$ and $x'(0)=0$?

1

There are 1 best solutions below

3
On BEST ANSWER

Solve $x'' = x + t$ with those initial conditions to get $x = \sinh(t)-t$: note that $x \ge 0$ for $t \ge 0$. Solve $x'' = -x + t$ with the same initial conditions to get $x = t - \sin(t)$: note $x \le 0$ for $t \le 0$. So the solution is $$ x(t) = \cases{\sinh(t)-t & for $t \ge 0$\cr t - \sin(t) & for $t \le 0$}$$