{
  "id": "image-of-a-function",
  "title": "Image of a Function",
  "lang": "en",
  "source_lang": "en",
  "summary": "The image of a function is the set of outputs it actually attains, distinguished from its specified codomain.",
  "category": "mathematics",
  "subcategory": "analysis",
  "type": "concept",
  "aliases": [
    "Function image",
    "Image set",
    "Range of a function",
    "Direct image of the domain"
  ],
  "generated_at": "2026-10-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/image-of-a-function/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/image-of-a-function/",
      "json": "https://aiwiki.page/zh/image-of-a-function.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "The image of a function is the set of all values produced by applying a function to every element of its domain. For a function \\(f:X\\to Y\\), its image is denoted by \\(f(X)\\) or \\(\\operatorname{im}(f)\\) and is a subset of the codomain \\(Y\\). More generally, the image of a subset \\(A\\subseteq X\\) consists of the outputs produced by inputs in \\(A\\). The image of the whole function is often called its range, although some authors use “range” to mean codomain instead. (jirka.org)"
    },
    {
      "heading": "Definition and notation",
      "text": "For \\(f:X\\to Y\\), the image of \\(A\\subseteq X\\) is defined by\n\n\\[f(A)=\\{f(x):x\\in A\\} =\\{y\\in Y:\\text{there exists }x\\in A \\text{ such that }f(x)=y\\}.\\]\n\nThis is also called the direct image of \\(A\\). Taking \\(A=X\\) gives\n\n\\[\\operatorname{im}(f)=f(X).\\]\n\nThus membership in the image is an existence statement: an output belongs to \\(f(A)\\) exactly when at least one input in \\(A\\) produces it. (jirka.org)\n\nThe phrase “image of an element \\(x\\)” refers to the value \\(f(x)\\), whereas the image of the singleton set \\(\\{x\\}\\) is the set \\(\\{f(x)\\}\\). The same notation \\(f\\) is conventionally used both for evaluation on elements and for taking images of sets; the argument determines which operation is intended. (jirka.org)"
    },
    {
      "heading": "Image, domain, and codomain",
      "text": "These three sets serve different roles:\n\n- The domain specifies the permitted inputs.\n- The codomain specifies the set in which outputs must lie.\n- The image consists of the outputs actually attained.\n\nThe domain and codomain are specified when declaring a function \\(f:X\\to Y\\); the image follows from its action on the domain. In particular, the codomain may contain elements that are never produced. (cs.cornell.edu)\n\nFor example, consider the real-valued function\n\n\\[f:\\mathbb R\\to\\mathbb R,\\qquad f(x)=x^2.\\]\n\nIts image is \\([0,\\infty)\\): every square is nonnegative, and every \\(y\\geq0\\) is attained by taking \\(x=\\sqrt y\\). If the domain is restricted to \\([-2,1]\\), the image becomes \\([0,4]\\). If the domain is instead the integers, the image is the set of nonnegative integer squares. These are direct applications of the definition and illustrate why the formula alone does not determine the image without a specified domain. (jirka.org)\n\nChanging the codomain while keeping the same inputs and outputs does not change the image, provided the new codomain still contains every output. However, it can change whether the function is surjective. (tildesites.geneseo.edu)"
    },
    {
      "heading": "Surjectivity and invertibility",
      "text": "A surjective function is one whose image equals its codomain:\n\n\\[f\\text{ is surjective}\\quad\\Longleftrightarrow\\quad f(X)=Y.\\]\n\nAn injective function never assigns the same output to two distinct inputs. A bijective function satisfies both conditions. (math.dartmouth.edu)\n\nEvery function can be regarded as a surjection onto its own image by replacing its codomain with \\(f(X)\\):\n\n\\[\\widetilde f:X\\to f(X),\\qquad \\widetilde f(x)=f(x).\\]\n\nIf \\(f\\) is also injective, this map is bijective and has an inverse function defined on \\(f(X)\\). These conclusions follow directly from the definitions: every element of the image has an input producing it, and injectivity makes that input unique. (math.dartmouth.edu)"
    },
    {
      "heading": "Images and preimages",
      "text": "The preimage, or inverse image, of \\(B\\subseteq Y\\) is\n\n\\[f^{-1}(B)=\\{x\\in X:f(x)\\in B\\}.\\]\n\nAn image moves from a set of inputs to the outputs they produce; a preimage moves from a set of outputs to all inputs producing those outputs. Preimage notation does not require an inverse function to exist. (jirka.org)\n\nFor the square function, direct calculation gives\n\n\\[f^{-1}(\\{4\\})=\\{-2,2\\}, \\qquad f^{-1}(\\{-1\\})=\\varnothing.\\]\n\nThus an output may have several inputs producing it, or none. More generally,\n\n\\[y\\in f(X)\\quad\\Longleftrightarrow\\quad f^{-1}(\\{y\\})\\neq\\varnothing,\\]\n\nan immediate restatement of the image definition. (jirka.org)"
    },
    {
      "heading": "Behavior under set operations",
      "text": "Images preserve inclusion and arbitrary unions. If \\(A\\subseteq B\\subseteq X\\), then\n\n\\[f(A)\\subseteq f(B).\\]\n\nFor any indexed family \\((A_i)_{i\\in I}\\) of subsets of \\(X\\),\n\n\\[f\\!\\left(\\bigcup_{i\\in I}A_i\\right) =\\bigcup_{i\\in I}f(A_i).\\]\n\nIn particular, the image of the empty set is empty. These identities follow because an input belongs to a union exactly when it belongs to at least one member of the family. (ncatlab.org)\n\nImages do not generally preserve intersections:\n\n\\[f(A\\cap B)\\subseteq f(A)\\cap f(B),\\]\n\nbut equality can fail. For example, under \\(f(x)=x^2\\), the disjoint sets \\(A=\\{-1\\}\\) and \\(B=\\{1\\}\\) both have image \\(\\{1\\}\\), while their intersection has empty image. The failure occurs because the same output can come from different inputs. For an injective function, equality holds for every pair of subsets. (ncatlab.org)\n\nImages also behave naturally under function composition. For \\(f:X\\to Y\\), \\(g:Y\\to Z\\), and \\(A\\subseteq X\\),\n\n\\[(g\\circ f)(A)=g(f(A)).\\]\n\nConsequently, the image of a composite is contained in the image of its outer function. This identity follows by substituting \\((g\\circ f)(x)=g(f(x))\\) into the definition of image. (math.dartmouth.edu)"
    },
    {
      "heading": "Images in linear algebra",
      "text": "For a linear map \\(T:V\\to W\\) between vector spaces, the image of the linear map is a linear subspace of \\(W\\). When the map is represented by a matrix \\(M\\), its image is the span of the columns of \\(M\\):\n\n\\[\\operatorname{im}(M)=\\{Mx:x\\in\\mathbb R^n\\}.\\]\n\nIts dimension is the rank of \\(M\\). (math.mit.edu)\n\nThe image determines which right-hand sides of a linear system are attainable:\n\n\\[Mx=b\\text{ has a solution} \\quad\\Longleftrightarrow\\quad b\\in\\operatorname{im}(M).\\]\n\nThe rank–nullity theorem relates the dimension of this image to the dimension of the null space:\n\n\\[\\dim\\operatorname{im}(M)+\\dim\\ker(M)=n.\\]\n\nThus the image describes attainable outputs, while the null space describes inputs sent to zero. (math.mit.edu)"
    },
    {
      "heading": "Images under continuous functions",
      "text": "In topology, a continuous function preserves certain properties when taking images:\n\n- The continuous image of a compact space is compact.\n- The continuous image of a connected space is connected.\n\nThese statements concern images equipped with the subspace topology inherited from the codomain. (math.toronto.edu)\n\nBecause connected subsets of the real line are intervals, the image of an interval under a continuous real-valued function is again an interval. This is closely related to the intermediate value theorem. On a nonempty closed bounded interval, compactness additionally guarantees that the image has an attained minimum and maximum; hence it is a closed bounded interval, possibly consisting of one point. This connects the image concept with the extreme value theorem. (math.toronto.edu)"
    }
  ],
  "links": [
    "mathematical-function",
    "domain-of-a-function",
    "subset",
    "codomain",
    "real-number",
    "integer",
    "surjective-function",
    "injective-function",
    "bijective-function",
    "inverse-function",
    "empty-set",
    "function-composition",
    "linear-map",
    "vector-space",
    "image-linear-map",
    "linear-subspace",
    "matrix",
    "matrix-rank",
    "system-of-linear-equations",
    "rank-nullity-theorem",
    "null-space",
    "topology",
    "continuous-function",
    "compact-space",
    "connected-space",
    "subspace-topology",
    "intermediate-value-theorem",
    "extreme-value-theorem"
  ],
  "sources": [
    {
      "title": "Basic Analysis I",
      "url": "https://jirka.org/ra/realanal.pdf"
    },
    {
      "title": "Introduction (CS 2800, Fall 2016)",
      "url": "https://www.cs.cornell.edu/courses/cs2800/2017sp/lectures/lec01-intro.html"
    },
    {
      "title": "Geneseo Math 239 01 Functions Intro",
      "url": "https://tildesites.geneseo.edu/~baldwin/math239/spring2019/04-slash-10-introduction-to-functions.php"
    },
    {
      "title": "AATA Sets and Equivalence Relations",
      "url": "https://math.dartmouth.edu/~trs/PreTeXtProjects/pretext-devel/sample-book/html-orig-cd/section-sets-and-equivalence-relations.html"
    },
    {
      "title": "Interactions of images and pre-images with unions and intersections in nLab",
      "url": "https://ncatlab.org/nlab/show/interactions%2Bof%2Bimages%2Band%2Bpre-images%2Bwith%2Bunions%2Band%2Bintersections"
    },
    {
      "title": "03 Lecture Notes, Spring 2025",
      "url": "https://math.mit.edu/~poonen/03/notes.pdf"
    },
    {
      "title": "MAT246: Outline of Point Set Topology",
      "url": "https://www.math.toronto.edu/jkorman/Math246Y/top.htm"
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}