I want to find the equation of a function $f(x)$ such that the following conditions are met:
$(i)\ f(3) = 0, f(0) =1$.
$(ii)\ f(x)$ is an even function.
$(iii)\ f(x)$ has vertical asymptodes at $x=\pm 4$.
$(iv)\ f(x)$ has horizontal asymptode at $ y=2$.
Now since the function is even, I get $x=-3$ as another root and then I can graph the function. But how do I find its equation? Any hints? Thank you.
In general is there some method or software to find the equation of a function given its graph?
We use building blocks having one or more of the wanted properties and put them together conveniently so that the final function $f$ has all wanted properties.
To get a zero at $x=3$ we multiply with $x-3$ and to keep the function even we multiply with $(x-3)(x+3)=x^2-9$.
Note that $\frac{x^2-9}{x^2-16}$ evaluated at $x=0$ is $\frac{9}{16}$.
Finally we extend (3) to get a function with horizontal asymptote at $y=2$. Note that multiplying the function with $e^{-x^2}$ gives \begin{align*} \lim_{x\to\pm\infty}\frac{x^2-9}{x^2-16}e^{-x^2}=0 \end{align*}
Since we also have \begin{align*} \lim_{x\to\pm\infty}\frac{x^2-9}{x^2-16}=1 \end{align*}
we use the Ansatz \begin{align*} f(x)=\frac{16}{9}\cdot\frac{x^2-9}{x^2-16}\left(ae^{-x^2}+b\right) \end{align*} solve \begin{align*} f(0)&=a+b=1\\ \lim_{x\to\pm\infty}f(x)&=\frac{16}{9}b=2 \end{align*} and find $a=-\frac{1}{8}$ and $b=\frac{9}{8}$.
Note: To find an even function is usually not a problem. When we have a function $g$ fulfilling all other properties we can take $f(x)=\frac{1}{2}\left(g(x)+g(-x)\right)$ to get an even function with the wanted properties.