Plot of y = \dfrac{4}{9}(x-3)(x+3)

  • MHB
  • Thread starter karush
  • Start date
  • Tags
    Plot
In summary, the problem is that [right] is treated as a special code to align text to the right, so you need to use extra spaces.
  • #1
karush
Gold Member
MHB
3,269
5
$y = \dfrac{4}{9}(x-3)(x+3)$

ok I can't seem to write tikz to plot this

\begin{tikzpicture}[scale=0.50]
%preamble \usepackage{pgfplots}
\begin{axis}[xmin=-3.5, xmax=3.5, ymin=-5, ymax=5, axis lines=middle, ticks=none]
\addplot[
draw = black, smooth, ultra thick,
domain=-4:4,
] {exp((4/9)*(x^2-9)}
foreach \x in {-3,3} { (axis cs:{\x},0) node[below left] {\x} };
\end{axis}
\end{tikzpicture}
$y = \dfrac{4}{9}(x-3)(x+3)$
 
Physics news on Phys.org
  • #2
this plots in overleaf but not here?ut\begin{tikzpicture}[xscale=1,yscale=1]
%preamble \usepackage{pgfplots}
\begin{axis}[xmin=-4, xmax=4, ymin=-5, ymax=5, axis lines=middle, ticks=none]
\addplot[draw = blue, smooth, ultra thick,domain=-4:4,] {(4/9)*(x^2-9))};
\draw[thin][fill][red] (-3,0) circle (.2);\node [below] at (-3.2,-.5) {(-3,0)};
\draw[thin][fill][red] (3,0) circle (.2);\node [below] at (3.2,-.5) {(3,0)};
\draw[thin][fill][red] (0,-4) circle (.2);\node
at (.3,-4.3) {(0,-4)};
\end{axis}
\end{tikzpicture}
$\boxed{y=\dfrac{4}{9}(x^2-9)}$​
 
  • #3
It seems to plot just fine for me. What is the problem?
 
  • #4
sorry actually its this one...

$\boxed{y=\dfrac{4}{9}(x^2-9)}$
\begin{tikzpicture}[xscale=1,yscale=1]
%preamble \usepackage{pgfplots}
\begin{axis}[xmin=-4, xmax=4, ymin=-5, ymax=3, axis lines=middle, ticks=none]
\addplot[draw = blue, smooth, ultra thick,domain=-4:4,] {(4/9)*(x^2-9))};
\draw[thin][fill][red] (-3,0) circle (.2);\node [below] at (-3.2,-.5) {(-3,0)};
\draw[thin][fill][red] (3,0) circle (.2);\node [below] at (3.2,-.5) {(3,0)};
\draw[thin][fill][red] (0,-4) circle (.2);\node
at (.3,-4.3) {(0,-4)};
\end{axis}
\end{tikzpicture}​
 
  • #5
karush said:
sorry actually its this one...

Unfortunately this forum treats [right] as a special code to align text to the right.
A work around is to use extra spaces and make it [ right ].
Then we get:

\begin{tikzpicture}[xscale=1,yscale=1]
%preamble \usepackage{pgfplots}
\begin{axis}[xmin=-4, xmax=4, ymin=-5, ymax=3, axis lines=middle, ticks=none]
\addplot[draw = blue, smooth, ultra thick,domain=-4:4,] {(4/9)*(x^2-9))};
\draw[thin][fill][red] (-3,0) circle (.2);\node [below] at (-3.2,-.5) {(-3,0)};
\draw[thin][fill][red] (3,0) circle (.2);\node [below] at (3.2,-.5) {(3,0)};
\draw[thin][fill][red] (0,-4) circle (.2);\node [ right ] at (.3,-4.3) {(0,-4)};
\end{axis}
\end{tikzpicture}
 

FAQ: Plot of y = \dfrac{4}{9}(x-3)(x+3)

What is the equation for the given plot?

The equation for the given plot is y = 4/9(x-3)(x+3).

What is the degree of the polynomial in the equation?

The degree of the polynomial in the equation is 2.

How many solutions does this equation have?

This equation has 2 solutions, since it is a quadratic equation with a degree of 2.

What is the y-intercept of this equation?

The y-intercept of this equation is 0, as the equation does not contain a constant term.

What is the significance of the points where the graph intersects the x-axis?

The points where the graph intersects the x-axis, also known as the roots or zeros of the equation, represent the solutions to the equation. These points are where the value of y is equal to 0.

Similar threads

Replies
1
Views
1K
Replies
8
Views
2K
Replies
2
Views
2K
Replies
2
Views
951
Replies
2
Views
1K
Replies
7
Views
1K
Replies
1
Views
5K
Replies
5
Views
3K
Back
Top