I'm a bit rusty in mathematics so I need your help please :)
I need a function $y$ that satisfies: $$\begin{align*} y &= ax\\ y &= \left\{\begin{array}{ll} x &\text{if }x\geq 0;\\ 0 &\text{if }x\lt 0. \end{array}\right. \end{align*}$$
Is there a way to do this? What should $a$ be like? I believe I need something that is $1$ for positive value and $0$ for negative.
Thank you
You can certainly define a function as $\begin {cases} y=ax \text{ if } x\ge 0 \\ y=0 \text{ if } x \lt 0 \end {cases}$. It follows the negative $x$ axis from the left to the origin, then slopes up at slope $a$ and you can choose $a$ to fit your needs (like $1$). I don't know any simpler way to express it.