Questions tagged [graphing-functions]

For questions regarding the plotting or graphing of functions. For questions about the kinds of graphs with vertices and edges, use the (graph-theory) tag instead.

Given a real-valued function $f\colon \mathbf{R} \to \mathbf{R}$, the graph of $f$ is the set of all input-output pairs $(x,f(x))$ regarded as a set of points in the plane $\mathbf{R} \times \mathbf{R}$. Considering the graph of a function gives us a geometric perspective on the data that the function represents.

  • If the function $f$ is continuous, the graph of $f$ "looks continuous." That is, there are no gaps, and the graph is a connected curve.

  • If the function $f$ is differentiable, then it will contain no "sharp corners."

  • If we're thinking of the domain of the function as representing time, the the graph gives us a nice visualization of the change in outputs of the function over time.

A graph can be defined much more generally though. Let $\mathbf{k}$ be a local field, and suppose $f$ is a vector-valued function $f\colon \mathbf{k}^n \to \mathbf{k}^m$ where $f(x_1, \dotsc, x_n) = (y_1, \dotsc, y_m)$ and each coordinate $y_i$ of the output is a function of the $x_1, \dotsc, x_n$. In this setting, the graph of $f$ is the set of points

$$(x_1, \dotsc, x_n, y_1, \dotsc, y_m) \subset \mathbf{k}^{n+m}\,.$$

This general construction of the graph of a function can be useful in the study of algebraic geometry or the study of manifolds.

5041 questions
0
votes
2 answers

Why does this sum of absolute values resemble a parabola?

I was fooling around with a graphing calculator and I found that $\sum _{n=1} ^k |x+n|$ (where $k$ is a parameter) bore a strange resemblance to the parabola $(x+51/2)^2+5^4$. Namely, it was tangent to the parabola at exactly one point with $x$…
GuPe
  • 7,318
0
votes
1 answer

Need a formula for figuring out what squares in a grid are hit by a line spanning between 2 coordinates

Example image: http://ericsartor.ca/Untitled2.gif I'm making a game based on a grid system. For the battle system, I'm trying to figure out if a shot is blocked by checking all the squares in it's path to see if they are considered "obstacles". I'd…
0
votes
1 answer

Asymmetrically driving a sine wave?

I was looking into damped sine waves and I was wondering, what parameter of the function controls for the amplitude of the wave on either side of the x-axis? For example, if I wanted to make a graph where the minima below the x-axis were closer to…
0
votes
1 answer

Is it possible to create a simple equation for a line that has abrupt slope changes??

For example, a line that : from -infinity to 0: y = 50 from 200 to +infinity: y = 100 and between 0 and 200, the linear connecting line (y=1/4x+50) Thanks!
House3272
  • 123
0
votes
1 answer

How to describe a linear graph with some jumps

To describe this simple with a little pseudocode (i'm better with software than mathematical notation, sorry): f(x) = if (x <= 50%) then 0 else 1 This with a graph: 100% | x x 50% | 0% | x x |___________________ …
0
votes
2 answers

What could be the mathematical formula of this function?

I need to change with one parameter (i) the way how y changes over the x like in the image below. What would be the approximated formula?
0
votes
1 answer

Plot a graph of values that have a difference between them

I have only a basic understanding of math, so I'll try my best to describe my problem. I have an arbitrary number of items and I measure the numerical difference between them based on a set of criteria. Example - the resulting difference between: A…
0
votes
1 answer

Graphing the same point twice

If I'm graphing the same point twice does the name change? For example, if I had to go from $A (7,10)$ to $B (8,11)$ to $C (6,4)$ and I was writing down the coordinates and their names so that someone else could copy my figure, would I put $A…
Eliza
  • 1
0
votes
3 answers

How would this function look like?

I have a function $2x(x-1)=y(y-1)$. I tried to plot it in wolframalpha. However, plotting took a long time without showing any result.
yW0K5o
  • 367
0
votes
2 answers

Formula to find b in y=mx+b

I am trying find the formula to find b in y=mx+b. I have a scatter plot with 10 values. I have found m using =(sxy - (sx * sy) / n) / (sxx - (sx)^2 /n). Now I need to find b. I have been looking everyplace I could think to but the best thing I found…
ToMakPo
  • 109
0
votes
1 answer

Transforming a set of scatter points

I have a set of prediction scatter data y vs x in black crosses below. For the prediction to be 'accurate', the points ought to fall on the 1:1 line. I am trying to quantify a correction scheme to transform the data in order to lie on the 1:1 line.…
Corse
  • 225
0
votes
0 answers

Problem while computing and plotting a table

I want to create a list of numbers, by computing an integral of something divided by a function, and then plot it. liste = Table[Re[Exp[-NIntegrate[h[t],{t, -k, 0}, Method -> {Automatic,"SymbolicProcessing" -> 0}]]/f[k]], {k, 1, 100}] The result if…
0
votes
2 answers

Why is $\frac{y}{x}$ greater than $\frac{q}{p}$ -Figure

From the figure why is $\frac{y}{x}$ greater than $\frac{q}{p}$
MistyD
  • 1,655
0
votes
2 answers

Smallest distance between parabola and line

Probably a noobish question, but I've got this problem: Two graphs: $y=0.5x^2$ and $y=-2+x$. A vertical lines goes through these graphs in points A and B. What's the shortest possible distance between A and B?
Martez
  • 51