# Piecewise functions

by Coco12
Tags: functions, piecewise
 P: 272 If a vertex of a parabola is on the x axis and it's a value is positive so it opens upward, would there only be one function? For example x sqrt-2x +1 , the vertex form would be y= (x-1)sqrt since it will never have neg y values , will u need to consider both functions like in other piecewise functions?
Mentor
P: 21,313
 Quote by Coco12 If a vertex of a parabola is on the x axis and it's a value is positive so it opens upward, would there only be one function?
No, there would be an infinite number of them. You didn't specify a, which would change the shape of the parabola, and you didn't specify where the vertex is on the x-axis.
 Quote by Coco12 For example x sqrt-2x +1 , the vertex form would be y= (x-1)sqrt
This is very confusing, but I think I understand what you're trying to say. "sqrt" does not mean "squared" - it's short for square root.

Your equation seems to be y = x2 - 2x + 1 = (x - 1)2. An easy way to indicate an exponent is using the ^ symbol.
 Quote by Coco12 since it will never have neg y values , will u need to consider both functions like in other piecewise functions?
Now I don't understand what you're asking. The parabola in your example is continuous for all values of x. There's nothing piecewise about it.
Mentor
P: 21,313
 Quote by Mark44 No, there would be an infinite number of them. You didn't specify a, which would change the shape of the parabola, and you didn't specify where the vertex is on the x-axis. This is very confusing, but I think I understand what you're trying to say. "sqrt" does not mean "squared" - it's short for square root. Your equation seems to be y = x2 - 2x + 1 = (x - 1)2. An easy way to indicate an exponent is using the ^ symbol. Now I don't understand what you're asking. The parabola in your example is continuous for all values of x. There's nothing piecewise about it.
BTW, don't use "textspeak" like "u" for "you" here at PF. It's not allowed.

 P: 272 Piecewise functions Sorry I mean squared for them all, the first equation is in standard form and I changed it to vertex form. The a value is 1 as can be seen in the vertex form. So for this equation , would it be correct to say that there is no piecewise function since it never goes into the negative y value?I am just asking because the question asked for a piecewise function of this equation but I don't think that it is possible.
 Math Emeritus Sci Advisor Thanks PF Gold P: 39,568 Exactly what do you mean by "piecewise function"? It might help if you told us what the question that asks "for a piecewise function of this equation" is itself.
 P: 272 The equation is in absolute brackets so so a piecewise function is basically two functions that makes sure the equation doesn't go into the negative y value. The question simply gave u the equation in absolute brackets and then to write a piecewise function. I was the one who changed it to vertex form so I could see where it was on a graph
 Math Emeritus Sci Advisor Thanks PF Gold P: 39,568 So the function is actually $f(x)= |x^2- 2x+ 1|$? It would have helped to tell us that to begin with! Yes, that gives $f(x)= |(x- 1)^2|$. But $(x- 1)^2$ is never negative so the absolute value doesn't matter. If it had been, say $f(x)= |x^2- 3x+ 2|= |(x- 2)(x- 1)$ then we would have f(x) equal to $x^2- 3x+ 2$ for x< 1 (since both x-2 and x-1 are negative, their product is positive), $-x^2+ 3x- 2$ for 1< x< 2 (now x-1 is positive but x-2 is still negative), and $x^2- 3x+ 2$ (since both x-2 and x-1 are positive).
 P: 272 Sorry for the confusion. So the equation will not have a piecewise function? I didn't think that there was going to be according to the equation and put x> or equal to 1 and x < or equal to 1

 Related Discussions Calculus & Beyond Homework 7 Calculus & Beyond Homework 9 Calculus & Beyond Homework 5 Calculus 1