For the function listed below, try expressing them in a single formula.
Example :
f(x)={−xxif x≥0if x<0
Answer : f(x)=−∣x∣
Challenge 1 :
f(x)={1−1if x<0if x>0
Challenge 2 :
f(x)={0xif x≤0if x>0
Challenge 3 :
f(x,y)={x−yx+yif x>yif x<y
Comment your answer and vote up good functions!
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
1)−∣x∣x 2)∣∣∣2x∣∣∣+2x 3)(x+x−y∣x−y∣y)(x−y)(x+y)
f2(x)=2∣x∣+x
We can find a solution by using the solutions for challenge 1 and 2:
I don't know how to type arrays so let 1,2 denote the conditions y−x<0,y−x>0 respectively.
Note that f2(y−x)+x=1.x,2.y and f2(y−x)−y=1.−y,2.−x.
Further, f1(y−x)(f2(y−x)−y)=1.−y,2.x
Hence f(x)=f2(y−x)+x+f1(y−x)(f2(y−x)−y)=1.x−y,2.x+y
Another way is by considering 21+f1(y−x)=1.1,2.0,21−f1(y−x)=1.0,2.1.
Thus, f(x)=(x−y)21+f1(y−x)+(x+y)21−f1(y−x)
For the first function, f(x)=1{x∣x<0}−1{x∣x>0} where f:R∖{0}→R. Because 1S is the characteristic function that returns 1 if the argument is in S and 0 otherwise.
If you want me to nitpick even more, those given aren't functions since you don't specify the domain (and the range, but the range usually can be inferred assuming it fits the whole domain). If I assume the domain of the first function is {1}, then my "formula" can be as simple as f(x)=−1 (because it only needs to work for the single number x=1 in the domain).
A more interesting question is why you want to look specifically for just a single formula, and not just leave the function piecewise which is much easier to understand compared to the single formula forms?
Log in to reply
Compute the value of
sin10∘sin30∘sin50∘sin70∘
without using a calculator.
Why shouldn't we use a calculator when we can? Isn't using a calculator faster and is less likely to have errors?
Log in to reply
You can't use calculator there because the result is rational. A calculator might round/truncate the result midway. I did throw it to WolframAlpha anyway, though.
Log in to reply
@Ivan Koswara, imagine you are solving a hard equation. yo just spend a huge time on it and are feeling proud of what you did! You want to show other people this cool eqn but when you show this to yor classmates, who suck at maths, say "waste of time, i solved it in a second by putting it in wolfram alpha. i am smarter then you."
But some stuff need analytical approach despite being easily solvable by numerical/computational approach. please think about this.
the "imagine" is taken from real life!