Is Tikx the Solution for Creating Inverse Functions in Overleaf?

In summary, the conversation discusses the topic of trying to create a simple inverse function plot using packages and code. The speaker also mentions wanting an XY axis with tick marks and a dashed line for x=y. They mention encountering errors and not wanting too many decorations. The conversation ends with the speaker finding a solution using the tikz package and planning to try it the next day.
  • #1
karush
Gold Member
MHB
3,269
5
ok I have been trying to cut and paste in packages and code to get a simple inverse function to plot
but nutin shows up and get error message.

if possible I would like no grid but an xy axis with tick only where the graph goes thru the axis
and of course a dashed line of x=y

some of the ones demonstrated in stackexchange had too much decorations

anyway

im using overleaf so fat everything that tikx is used here works there
 
Physics news on Phys.org
  • #2
Something like this?

\begin{tikzpicture}
%preamble \usepackage{pgfplots}
\begin{axis}[
axis lines=middle,
xmin=-1, xmax=2, ymin=-1, ymax=2
]
\addplot[help lines, dashed] (x, x);
\addplot[blue, smooth, ultra thick] (x, x*x);
\addplot[red, smooth, ultra thick] (x*x, x);
\end{axis}
\end{tikzpicture}

Code:
\begin{tikzpicture}
  %preamble \usepackage{pgfplots}
  \begin{axis}[
      axis lines=middle,
      xmin=-1, xmax=2, ymin=-1, ymax=2
    ]
    \addplot[help lines, dashed] (x, x);
    \addplot[blue, smooth, ultra thick] (x, x*x);
    \addplot[red, smooth, ultra thick] (x*x, x);
  \end{axis}
\end{tikzpicture}
 
Last edited:
  • #3
That looks like what I want
I try it tomorrow

Mahalo
 

Related to Is Tikx the Solution for Creating Inverse Functions in Overleaf?

1. What is Tikx and inverse function?

Tikx and inverse functions are mathematical concepts that are used to describe the relationship between two variables. Tikx functions are direct relationships, where one variable depends on the other, while inverse functions are the opposite, where one variable is dependent on the other.

2. How are Tikx and inverse functions related?

Tikx and inverse functions are inversely related, meaning that they are opposite relationships. This means that if one variable increases, the other decreases and vice versa.

3. What is the difference between a Tikx function and an inverse function?

The main difference between a Tikx function and an inverse function is the direction of the relationship between the two variables. In a Tikx function, the independent variable is the input and the dependent variable is the output. In an inverse function, the roles are reversed.

4. How do you graph Tikx and inverse functions?

To graph a Tikx function, you plot points on a coordinate plane and connect them with a line. For inverse functions, you can either switch the x and y values and graph as a Tikx function, or use the inverse function button on a graphing calculator to automatically create the inverse graph.

5. How are Tikx and inverse functions used in real life?

Tikx and inverse functions are used in various fields such as physics, economics, and engineering to model and predict relationships between variables. For example, in physics, Tikx functions can be used to describe the relationship between distance and time, while inverse functions can be used to describe the relationship between pressure and volume in gases.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
6
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
906
Replies
4
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
5K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
6K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
Replies
1
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
4K
  • STEM Academic Advising
Replies
13
Views
2K
Back
Top