%md
y-axis symmetry means that all points on the function on one side of the x-axis have mirror images on the other side. Numerically, this means that the opposite of the x-value, *-x*, produces the same function- or y-value. Examine and execute the command block below to see if the $f(x)=x^4-3x^2$ is symmetric w.r.t. the y-axis and thus even.
︠ce763147-a7dc-4926-9299-05ab74ef4254s︠
x,y=var('x,y')
f(x)=x^4-3*x^2
f(x)==f(-x)
︠6256305d-101c-4f1c-afc6-318677377253︠
%md
Since the sides of the equation are identical, we can assume that the function has x-axis symmetry and thus is even. You create a command block to now see if the function, $f(x)=5x^3-7x$ is symmetric w.r.t. the origin by setting f(-x)=-f(x)$. In other words, replacing x with its opposite produces the opposite y-value. Graphically, a function point that appears anywhere has a mirror image after rotating around the origin 180 degrees.
︠a12bdcb1-0d50-4d43-9665-d472e1ddd933︠
︠7723a8ca-5f0b-4fa8-b87f-caee78ad8862︠
︠6952310b-aff5-4fd8-825c-300e2a3739be︠
%md
Now let's look at implicitly defined functions or relations like $x^2+3y^2=18$. Study the command block below to see how the new graphing command works. I first run the numerical tests for x-axis and origin symmetry.
︠9903074d-e8c1-4e11-a00f-9c4216da1dbf︠
x,y=var('x,y')
f(x,y)=x^2+3*y^2-18
show(f(x,y))
show(f(x,y)==f(-x,y))
show(f(x,y))==f(-x,-y)
implicit_plot(f(x,y),(x,-5,5),(y,-5,5),axes='true')
︠6b8b928c-d0dc-46dd-ae32-d44f8d2a793fis︠
%md
The relation we looked at above was not a function. But it does have both x-axis and y-axis symmetry. It does not have symmetry w.r.t. the origin. Practice your skills as you test these for symmetry and create plots.
1. $f(x)=5x^4-3x^2+4$
2. $g(x)=x^(1/3)-x/4$
3. $x^2-3xy+y^2=0$ Use the implicit_plot command here.