What is Function: Definition and 1000 Discussions

In mathematics, a function is a binary relation between two sets that associates to each element of the first set exactly one element of the second set. Typical examples are functions from integers to integers, or from the real numbers to real numbers.
Functions were originally the idealization of how a varying quantity depends on another quantity. For example, the position of a planet is a function of time. Historically, the concept was elaborated with the infinitesimal calculus at the end of the 17th century, and, until the 19th century, the functions that were considered were differentiable (that is, they had a high degree of regularity). The concept of a function was formalized at the end of the 19th century in terms of set theory, and this greatly enlarged the domains of application of the concept.
A function is a process or a relation that associates each element x of a set X, the domain of the function, to a single element y of another set Y (possibly the same set), the codomain of the function. It is customarily denoted by letters such as f, g and h.If the function is called f, this relation is denoted by y = f (x) (which reads "f of x"), where the element x is the argument or input of the function, and y is the value of the function, the output, or the image of x by f. The symbol that is used for representing the input is the variable of the function (e.g., f is a function of the variable x).A function is uniquely represented by the set of all pairs (x, f (x)), called the graph of the function. When the domain and the codomain are sets of real numbers, each such pair may be thought of as the Cartesian coordinates of a point in the plane. The set of these points is called the graph of the function; it is a popular means of illustrating the function.
Functions are widely used in science, and in most fields of mathematics. It has been said that functions are "the central objects of investigation" in most fields of mathematics.

View More On Wikipedia.org
  1. H

    Partition function for a spin i

    ##Z = \sum_{-i}^{i} = e^{-E_n \beta}## ##Z = \sum_{0}^j e^{nh\beta} + \sum_{0}^j e^{-nh\beta}## Those sums are 2 finites geometric series ##Z = \frac{1- e^{h\beta(i+1)}}{1-e^{h\beta}} + \frac{1-e^{-h\beta(i+1)}}{1-e^{-h\beta}}## I don't think this is ring since from that I can't get 2 sinh...
  2. Jimyoung

    Why is the Entropy of the Universe (total entropy) a path function?

    I understand that S (Ssys) is a state function but I can't understand why Ssurr and Suniv (or Stot) are a path function.
  3. S

    Comp Sci Plot periodic function with Fourier coefficients

    I have plotted the function for ##T=15## and ##\tau=T/30## below with the following code in Python: import numpy as np import matplotlib.pyplot as plt def p(t,T,tau): n=np.floor(t/T) t=t-n*T if t<(2*np.pi*tau): p=np.sin(t/tau) else: p=0 return p...
  4. J

    B Solving Kepler's 1st law as a function of time

    Hi I posted this differential equation to WolframAlpha https://www.wolframalpha.com/input?i2d=true&i=Power[\(40)Divide[a,1+b*cos\(40)y\(40)x\(41)\(41)]\(41),2]*y'\(40)x\(41)=c but no solution , " Standard computation time exceeded... Try again with Pro computation time " Should I ( buy and )...
  5. Q

    Integration of structure function F2 to calculate quark momentum

    I study particle physics with “Particles and Nuclei” / Povh et al. and “Modern particle physics” / Mark Thomson and I am currently at “Deep-Inelastic scattering”. After introducing several scattering equations, such as Rosenbluth, that all include terms for electric AND magnetic scattering, i.e...
  6. P

    Introduce an integral function in a spreadsheet (Excel MS)

    I found some interesting equations on cosmology and I was wondering how to introduce the integral in an excel sheet: "Paste ( .443s^3+1)^(-1/2) in for the integrand, type in s for the variable and 1 to 2 for the limits. Press submit, then change 2→3→4→5 and repeat." (from the thread...
  7. chwala

    Solve this problem that involves a probability density function

    I am refreshing on this; ..after a long time... Note that i do not have the solution to this problem. I will start with part (a). ##f(u)= 3u-\dfrac{3u^2}{2k}## with limits ##0≤u≤k## it follows that, ##3k - \dfrac{3k}{2}=1## ##\dfrac{3k}{2}=1## ##k=\dfrac {2}{3}## For part (b)...
  8. K

    A How to check if a function doesn't depend on a variable?

    Hello! I have some experimental data points ##(z_i,dz_i)## and I know that in the most general case this variable can be written in terms of 2 other variables as ##z_i = ay_i+bx_i##. Beside ##z_i## I can also measure, for each point, ##x_i## (we can assume that the uncertainty in ##x_i## is...
  9. T

    I Closed Form for Complex Gamma Function

    Hey all, I was wondering if there was an equivalent closed form expression for ##\Gamma(\frac{1}{2}+ib)## where ##b## is a real number. I came across the following answer...
  10. G

    I How Is the Partition Function of BaTiO3 Calculated in a Cubic Lattice?

    I have a cubic lattice, and I am trying to find the partition function and the expected value of the dipole moment. I represent the dipole moment as a unit vector pointing to one the 8 corners of the system. I know nothing about the average dipole moment , but I do know that the mean-field...
  11. PhysicsRock

    I Is the solution to this problem as trivial as I think?

    The problem goes as follows: Let ##M, N## be sets and ##f : M \rightarrow N##. Further let ##L \subseteq M## and ##P \subseteq N##. Then show that ##L \subseteq f^{-1}(f(L))## and ##f^{-1}(f(P)) \subseteq P##. Obviously, I would simply use the definition of a functions inverse to obtain...
  12. H

    Kramers-Kronig, parity and delta function

    Hi, First of all, I'm not sure to understand what he Kramers-kronig do exactly. It is used to get the Real part of a function using the imaginary part? Then, when asked to add a peak to the parity at ##\omega = -\omega_0##, is ##Im[\epsilon_r(\omega)] = \delta(\omega^2 - \omega_0 ^2)## correct...
  13. Barbequeman

    Salpeter Initial mass function

    I calculated the following in the attached file, I hope I did it correctly...
  14. H

    Monotonic sequence definition of Continuity of a function

    Question: There is a function ##f##, it is given that for every monotonic sequence ##(x_n) \to x_0##, where ##x_n, x_0 \in dom(f)##, implies ##f(x_n) \to f(x_0)##. Prove that ##f## is continuous at ##x_0## Proof: Assume that ##f## is discontinuous at ##x_0##. That means for any sequence...
  15. S

    Antiderivative of Heaviside step function with absolute-value-argument

    For ##R<0##, the antiderivative is just a constant, since then ##R-|x|## is negative for all values of ##x##, which in turn implies ##\Theta(R-|x|)## is zero for all values of ##x##. For ##R\geq 0##, and by inspection apparently, the antiderivative is ##(R+x)\Theta(R-|x|)+2R\Theta(x-R)+C.##...
  16. LCSphysicist

    Partition function of modified Ising model

    $$H = - J ( \sum_{i = odd}) \sigma_i \sigma_{i+1} - \mu H ( \sum_{i} \sigma_i ) $$ So basically, my idea was to separate the particles in this way:: ##N_{\uparrow}## is the number of up spin particles ##N_{\downarrow}## "" down spin particles ##N_1## is the number of pairs of particles close...
  17. N

    I Finding Max and Min Extremes of a Function with Second Derivatives Equal to Zero

    What should I do when the f(x, y) function's second derivatives or Δ=AC-B² is zero? When the function is f(x) then we can differentiate it until it won't be a zero, but if z = some x and y then can I just continue this process to find what max and min (extremes) it has? What I've done is...
  18. chwala

    Express a function as a sum of even and odd functions

    I am refreshing on this; of course i may need your insight where necessary...I intend to attempt the highlighted...this is a relatively new area to me... For part (a), We shall let ##f(x)=\dfrac{1}{x(2-x)}##, let ##g(x)## be the even function and ##h(x)## be the odd function. It follows...
  19. N

    I Why can't we just integrate a simple function?

    Can anyone explain to me why the second one is the right? (See the attachment)
  20. PhysicsRock

    Exploring an Unexplored Expression for the Beta Function

    So, I've recently played around a little with the Gamma Function and eventually managed to find an expression for the Beta Function I have not yet seen. So I'm asking you guys, if you've ever seen this expression somewhere or if this is a new thing. Would be cool if it was, so here's the...
  21. Euge

    POTW Contour Integral Representation of a Function

    Suppose ##f## is holomorphic in an open neighborhood of the closed unit disk ##\overline{\mathbb{D}} = \{z\in \mathbb{C}\mid |z| \le 1\}##. Derive the integral representation $$f(z) = \frac{1}{2\pi i}\oint_{|w| = 1} \frac{\operatorname{Re}(f(w))}{w}\,\frac{w + z}{w - z}\, dw +...
  22. chwala

    I Understanding Removable discontinuity of the given function: ##e^x##

    I would like to understand the highlighted part. In my understanding, this function does not seem to have a hole! Having said this, i can state that ##x_0=1## and we have our defined ##f(x_0)=2##. It follows that, ##f(1^{+}) = e## ##f(1^{-}) = e## thus ##f(x_0^{+})=f(x_0^{-})≠f(x_0)## thus the...
  23. Franklie001

    Engineering RLC circuit -- Phasor Transfer Function calculation

    Good morning, I need some help solving those two question. I've attached my attempted solution below. Could i solve the transfer function any further? Thank you for your help
  24. A

    Fourier sine and cosine transforms of Heaviside function

    Hi, I am really struggling with the following problem on the Fourier sine and cosine transforms of the Heaviside unit step function. The definitions I have been using are provided below. I tried each part of the problem, but I'm only left in terms of limits as x -> infinity of sin or cos...
  25. V

    Creating a Double Precision Matlab Function from Scratch

    I am confused at how to code this without using any of matlab's already built in functions except for using double. Is this question just asking me to write out the function and then make sure it's double precision?
  26. H

    Improper integral of a normal function

    I'm trying to solve an improper integral, but I'm not familiar with this kind of integral. ##\int_{-\infty}^{\infty} (xa^3 e^{-x^2} + ab e^{-x^2}) dx## a and b are both constants. From what I found ##\int_{-\infty}^{\infty} d e^{-u^2} dx = \sqrt{\pi}##, where d is a constant and...
  27. T

    What is the origin and validity of assumptions about the strain energy function?

    Earlier today, I posted a question about the strain energy function. I am happy with the answer (I love this group). But the answer opened up a deeper question. Many elasticity textbook posit the existence of a strain energy function: And they make an additional assumption about its...
  28. H

    Calculating total derivative of multivariable function

    This isn't a homework problem exactly but my attempt to derive a result given in a textbook for myself. Below is my attempt at a solution, typed up elsewhere with nice formatting so didn't want to redo it all. Direct image link here. Would greatly appreciate if anyone has any pointers.
  29. H

    Finding roots: cosine function of x

    I need to find the zeros of this function where d,L,v are constants. After several calculations I faced this equation. I tried everything I know, but I can't solve this. Maybe I'm missing something or I must made a mistake earlier in the problem. Thus, I would like to know if it is possible to...
  30. chwala

    Solve the problem involving probability density function

    This is the question: This is the ms solution- from Further Maths paper. My question is referenced to the highlighted part. I can see they substituted for the lower limit i.e ##x=1## to get: ##F(x)=\dfrac{x^3-1}{63}## supposing our limits were; ##2≤x≤4## would the same approach apply? Anything...
  31. A

    Engineering How do radial tooth clutches function?

    Greetings I have a hard time understanding how the radial tooth clutch function when it stops transferring power . Basically I understand that clutches: 1) transfer power from input shaft to output shaft 3) disengage when the torque transmitted has reached a certain limit ( normally when the...
  32. chwala

    Solve the given equation using the Lambert W function

    I just came across this...the beginning steps are pretty easy to follow...i need help on the highlighted part as indicated below; From my own understanding, allow me to create my own question for insight purposes... let us have; ##7^x=5x+5## ##\dfrac{1}{5}=(x+1)7^{-x}##...
  33. cnh1995

    Engineering What is wrong in this 2nd order transfer function?

    I have attached my attempt at a solution. In the solution image, I have computed 3 things: 1. System transfer function based on my understanding of the problem statement. This is a 2nd order system with steady state dc gain=0.9. So I wrote the transfer function accordingly. However, I strongly...
  34. topsquark

    LaTeX Commutative function diagrams in LaTeX

    I know that TikZ is probably the best way to do this but most Forums don't use it. I can make a rectangular diagram, but it's a bit clunky: Say I have the commutative function diagram: ##\begin{array}{ccccc} ~ & ~ & f & ~ & ~ \\ ~ & A & \longrightarrow & B & ~ \\ g & \downarrow & ~ &...
  35. J

    Using Gauss's Law to Calculate Charge Density Function

    I've attached what I have so far. Used Gauss's law, everything seemed to make sense except the units don't work out in the end. The charge density function if given by: r(z)=az, where z is the perpendicular distance inside the plane.
  36. besebenomo

    Magnetic flux of magnetic field changing as a function of time

    $$B(t) = B_{0} \frac{t^2}{T^2}$$ for ##0 \leq t \leq T## The issue here is more conceptual, because once I find the flux of B I know how to proceed to find the current. I got velocity (but it seems to me that it is the initial velocity), I could use it to find the time in function of space...
  37. Ennio

    B Sinusoidal wave function of t and x

    Greetings, is it possible to characterize a sinusoidal wave in the domain of time and then pass into the domain of movement along x direction? I start with: a is the amplitude of the sine function and ω is the angular velocity. t is the time. I can express the angular velocity in funct. of the...
  38. M

    Python Any help with this error in Scipy minimize function?

    Hi PF! When I execute the code below: import numpy as np from scipy.stats import t import scipy.optimize as optimizeglobal data data = np.random.normal(loc=50, scale=1, size=(2400, 1)).flatten() def L(F): M = 250 lmda = 0.97 sig_0 = F[0] for i in range(1, 12): sig_0 +=...
  39. Ennio

    A Calculate the exact or approximate length of one period of the wave function

    The known expression of the wave function is where A is the amplitude, k the wave number and ω the angular velocity. The mathematical definition of arc length for a generical function in an interval [a,b] is where, in our sinusoidal case: For our purpose (calculation of the length in one...
  40. M

    Python Scipy minimizer function and function executions

    Hi PF I'm trying to minimize a function func via scypi's minimiz function, as shown below. import numpy as np import scipy.optimize as optimize def func(x): y = x[0]**2 + (x[1]-5)**2 print('hi') return y bnds = [(1, None), (-0.5, 4)] result = optimize.minimize(func, method='TNC'...
  41. The Bill

    I Name of distance to nearest multiple of n function?

    I've defined this function to clean up some pages of work I've been doing on relations of integers modulo n. Let's call it mav(a,n) for now. mav(a,n) for integers a and n is equal to the Euclidean distance from a to the nearest multiple of n. To compute it in programming languages I've been...
  42. J

    What is aerodynamics function of front active lip spoiler?

    This is question for aerodynamicist, so I put it here in aerospace department. (Mechanical engineers don't learn aerodynamics at university) What is aerodynamic function of active front lip spoiler (on video) and what is function of flexibile plate infront of front tyers(picture)? Why reduce...
  43. jjson775

    I Understanding Wave Function Probabilities for a Free Particle

    The textbook I am self studying says that the wave function for a free particle with a known momentum, on the x axis, can be given as Asin(kx) and that the particle has an equal probability of being at any point along the x axis. I understand the square of the wave function to be the probability...
  44. ergospherical

    I 4D d'Alembert Green's function for linearised metric

    Q. Calculate the linearised metric of a spherically symmetric body ##\epsilon M## at the origin. The energy momentum tensor is ##T_{ab} = \epsilon M \delta(\mathbf{r}) u_a u_b##. In the harmonic (de Donder) gauge ##\square \bar{h}_{ab} = -16\pi G \epsilon^{-1} T_{ab}## (proved in previous...
  45. yklee

    Ising model autocorrelation function calculation

    Dear Mr. and Ms., I am trying to measure the autocorrelation functions of 2D ising model based on the equation given by where A(t) denote a measure. I calculate a c(t) of magnetization. I calculated in this way data_path = f"../../trajectory/data.txt" data = np.loadtxt(data_path)...
  46. S

    Mathematica Function that integrates another function, with units

    Velocity as a function of time, defined with units attached (Quantity feature of Mathematica): fnVq[t_ ]:= 2 m/s^2 * t fnVq[5 s] Integrate[fnVq[tt],{tt,0 s, 2000 ms}] 10m/s 4m When we printed above the value and integral, we got the correct results with proper units. Now I'm trying to...
  47. patric44

    Is f(z) =(1+z)/(1-z) a real function?

    hi guys i found this problem in a set of lecture notes I have in complex analysis, is the following function real: $$ f(z)=\frac{1+z}{1-z}\;\;, z=x+iy $$ simple enough we get $$ f=\frac{1+x+iy}{1-x-iy}= $$ after multiplying by the complex conjugate of the denominator and simplification $$...
  48. MevsEinstein

    I Defining the Prime Gap function

    Hi PF! I created a function ##R(x)## that gives the gap between the largest two primes less than or equal to ##x##. To define it, I used this property: $$\pi(x+R(x))=\pi(x)+1$$ Which is true since the ##x## distance between ##\pi(x)## and ##\pi(x)+1## is ##R(x)##. If we solve for ##R(x)## we...
  49. H

    I Partition function for continuous spectrum

    Let's say that we have a one-particle Hamiltonian that admits only a continuous spectrum of eigenvalues ##E(k)=\alpha k^2## parameterized by asymptotic momentum ##\mathbf{k}## (assuming the eigenfunctions become planewaves far from the origin), would the partition function then be $$Z=\int...
  50. Aethermimicus

    I What is the function of the air cavity inside drums?

    I'm trying to understand the function of the air cavity inside drums. I've read that 'The air cavity inside the drum will have a set of resonance frequencies determined by its shape and size. This will emphasize some frequencies at the expense of others.' Then what are the resonance...
Back
Top