{"id":7925,"date":"2023-04-30T22:43:00","date_gmt":"2023-04-30T17:13:00","guid":{"rendered":"https:\/\/physicscatalyst.com\/article\/?p=7925"},"modified":"2026-02-15T21:29:14","modified_gmt":"2026-02-15T15:59:14","slug":"how-to-prove-onto-functions-with-examples","status":"publish","type":"post","link":"https:\/\/physicscatalyst.com\/article\/how-to-prove-onto-functions-with-examples\/","title":{"rendered":"How to prove onto functions with examples"},"content":{"rendered":"\n<p>This post we will see given a function, how to check if it is onto function or not. Lets first start with the definition of the onto functions<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Definition of onto functions<\/h2>\n\n\n\n<p>A function f: A-&gt; B is said to be onto(surjective) if every element of B is the image of some element of A under f, i,e for every $y \\in  B$, there exists a element x in A where f(x)=y<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to prove onto function<\/h2>\n\n\n\n<p>To prove that a function is onto, also known as surjective, you need to show that every element in the range of the function has at least one preimage in the domain. In other words, there are no elements in the range that are not mapped to by at least one element in the domain.<\/p>\n\n\n\n<p><strong>Method I<\/strong><br>we take any element y in the range of function and then try to see if there exists an element in the domain of f such that f(x) = y<\/p>\n\n\n\n<p><strong>Example<\/strong>: Let f:  R-&gt; R be defined by f(x) = 3x &#8211; 2. Prove that f is onto.<\/p>\n\n\n\n<p><strong>Solution<\/strong>: To prove that f is onto, we need to show that every element y in the range of f has at least one preimage x in the domain of f such that f(x) = y.<\/p>\n\n\n\n<p>Let y be an arbitrary element in the range of f, that is, $y \\in R$. We need to find an element x in the domain of f such that f(x) = y.<\/p>\n\n\n\n<p>Setting y = 3x &#8211; 2, we can solve for x as follows:<\/p>\n\n\n\n<p>y + 2 = 3x<\/p>\n\n\n\n<p>x = (y + 2)\/3<\/p>\n\n\n\n<p>Also it follows<\/p>\n\n\n\n<p>f((y+2)\/3 )= 3(y+2)\/3 -2=y<\/p>\n\n\n\n<p>So we have found an expression for x in terms of y. Also we see that y can take any value in R and  x will belong to R for any value of Y. This means that for any element y in the range of f, there exists an element x in the domain of f such that f(x) = y. <br><br>Therefore, we have shown that f is onto, and our proof is complete.<\/p>\n\n\n\n<p>Note that in this example, we used an arbitrary element y in the range of f to find a corresponding preimage x in the domain of f. This is a general strategy for proving that a function is onto.<\/p>\n\n\n\n<p><strong>Method 2<\/strong><\/p>\n\n\n\n<p>Take counter examples<\/p>\n\n\n\n<p>Example  Let function f : R -&gt; R, defined as $f(x) = x^2$<\/p>\n\n\n\n<p>Solution<\/p>\n\n\n\n<p>We can try to counter examples to check<\/p>\n\n\n\n<p>here  we can see there exists no real number for y=-4<\/p>\n\n\n\n<p>$-4=x^2$<\/p>\n\n\n\n<p>Hence it is not a onto function<\/p>\n\n\n\n<p><strong>Method 3<\/strong><\/p>\n\n\n\n<p>We can draw the graph of the function and if it is covering all the values of y, then it is onto function<\/p>\n\n\n\n<p>Example Let function f : R -&gt; R, defined as $f(x) = |x|$<\/p>\n\n\n\n<p>Solution<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/physicscatalyst.com\/article\/wp-content\/uploads\/2023\/04\/graph-method-onto-functions.png\"><img loading=\"lazy\" decoding=\"async\" width=\"251\" height=\"253\" src=\"https:\/\/physicscatalyst.com\/article\/wp-content\/uploads\/2023\/04\/graph-method-onto-functions.png\" alt=\"how to prove onto functions with examples\" class=\"wp-image-7926\" srcset=\"https:\/\/physicscatalyst.com\/article\/wp-content\/uploads\/2023\/04\/graph-method-onto-functions.png 251w, https:\/\/physicscatalyst.com\/article\/wp-content\/uploads\/2023\/04\/graph-method-onto-functions-150x150.png 150w\" sizes=\"auto, (max-width: 251px) 100vw, 251px\" \/><\/a><\/figure>\n\n\n\n<p>We can see that it is not covering all the values of y ,so it is not onto function<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Solved Examples<\/h2>\n\n\n\n<p><strong>Example 1<\/strong><\/p>\n\n\n\n<p>Let A ={1,2,3}<\/p>\n\n\n\n<p>and function F  on A is defined as ={(1,1), (2,2) , (3,3)}<\/p>\n\n\n\n<p>Find out if it is onto<\/p>\n\n\n\n<p><strong>Solution<\/strong><\/p>\n\n\n\n<p>we can see that f(1)=1 , f(2)=2 and f(3)=3<\/p>\n\n\n\n<p>So all elements in A has a pre image, so it is onto function<\/p>\n\n\n\n<p><strong>Example <\/strong>2<\/p>\n\n\n\n<p>Let f : R -&gt; R<br>f(x) =x |x|<br>Find out if it is onto<\/p>\n\n\n\n<p><strong>Solution<\/strong><\/p>\n\n\n\n<p>To determine whether the function f(x) = x|x| is onto, we need to show that for every y in the range of f, there exists at least one x in the domain of f such that f(x) = y.<\/p>\n\n\n\n<p><strong>Case 1<\/strong><br> x is positive or zero In this case, we have $y = x|x| = x^2$ . <br>Therefore, $x = \\sqrt {y}$<\/p>\n\n\n\n<p> So we will have preimage for all positive values of y<\/p>\n\n\n\n<p><strong>Case 2 <\/strong><br>x is negative In this case, we have y = x|x| = -x^2 . Therefore, we can take $x = &#8211; \\sqrt {|y|}$<\/p>\n\n\n\n<p>So we will have preimage for all negative values of y<\/p>\n\n\n\n<p>Therefore, f is onto.<\/p>\n\n\n\n<p>Therefore, the function f(x) = x|x| is onto, and we have shown this by finding at least one preimage for every element in the range.<\/p>\n\n\n\n<p><strong>Example <\/strong>3<\/p>\n\n\n\n<p>if f: R -&gt; R where $f(x)= \\frac {x^2 + 3x+6}{x^2 +x + 1}$. check if this is onto<\/p>\n\n\n\n<p><strong>Solution <\/strong><\/p>\n\n\n\n<p>$f(x)= \\frac {x^2 + 3x+6}{x^2 +x + 1} = \\frac { (x+ 3\/2)^2 + 15\/4}{(x+ 1\/2)^2 + 3\/4}$<\/p>\n\n\n\n<p>So this means f(x) only takes positive values.<\/p>\n\n\n\n<p>So this is not onto function<\/p>\n\n\n\n<p><strong>Related Articles<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/physicscatalyst.com\/maths\/types-of-relations.php\">Type Of Relations<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/physicscatalyst.com\/maths\/types-of-functions.php\">Type Of Functions<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/physicscatalyst.com\/maths\/composition-of-functions.php\">Composition of Functions<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/physicscatalyst.com\/maths\/invertible-function.php\">Invertible Function<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This post we will see given a function, how to check if it is onto function or not. Lets first start with the definition of the onto functions Definition of onto functions A function f: A-&gt; B is said to be onto(surjective) if every element of B is the image of some element of A [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[498],"tags":[],"class_list":["post-7925","post","type-post","status-publish","format-standard","hentry","category-maths"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to prove onto functions with examples - physicscatalyst&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/physicscatalyst.com\/article\/how-to-prove-onto-functions-with-examples\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to prove onto functions with examples - physicscatalyst&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"This post we will see given a function, how to check if it is onto function or not. Lets first start with the definition of the onto functions Definition of onto functions A function f: A-&gt; B is said to be onto(surjective) if every element of B is the image of some element of A [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/physicscatalyst.com\/article\/how-to-prove-onto-functions-with-examples\/\" \/>\n<meta property=\"og:site_name\" content=\"physicscatalyst&#039;s Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/PhysicsCatalyst\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/PhysicsCatalyst\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-30T17:13:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-15T15:59:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/physicscatalyst.com\/article\/wp-content\/uploads\/2023\/04\/graph-method-onto-functions.png\" \/>\n\t<meta property=\"og:image:width\" content=\"251\" \/>\n\t<meta property=\"og:image:height\" content=\"253\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"physicscatalyst\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"physicscatalyst\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to prove onto functions with examples - physicscatalyst&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/physicscatalyst.com\/article\/how-to-prove-onto-functions-with-examples\/","og_locale":"en_US","og_type":"article","og_title":"How to prove onto functions with examples - physicscatalyst&#039;s Blog","og_description":"This post we will see given a function, how to check if it is onto function or not. Lets first start with the definition of the onto functions Definition of onto functions A function f: A-&gt; B is said to be onto(surjective) if every element of B is the image of some element of A [&hellip;]","og_url":"https:\/\/physicscatalyst.com\/article\/how-to-prove-onto-functions-with-examples\/","og_site_name":"physicscatalyst&#039;s Blog","article_publisher":"https:\/\/www.facebook.com\/PhysicsCatalyst","article_author":"https:\/\/www.facebook.com\/PhysicsCatalyst","article_published_time":"2023-04-30T17:13:00+00:00","article_modified_time":"2026-02-15T15:59:14+00:00","og_image":[{"width":251,"height":253,"url":"https:\/\/physicscatalyst.com\/article\/wp-content\/uploads\/2023\/04\/graph-method-onto-functions.png","type":"image\/png"}],"author":"physicscatalyst","twitter_misc":{"Written by":"physicscatalyst","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/physicscatalyst.com\/article\/how-to-prove-onto-functions-with-examples\/#article","isPartOf":{"@id":"https:\/\/physicscatalyst.com\/article\/how-to-prove-onto-functions-with-examples\/"},"author":{"name":"physicscatalyst","@id":"https:\/\/physicscatalyst.com\/article\/#\/schema\/person\/9b302efdc9b32e459cb1e61ab7506d3f"},"headline":"How to prove onto functions with examples","datePublished":"2023-04-30T17:13:00+00:00","dateModified":"2026-02-15T15:59:14+00:00","mainEntityOfPage":{"@id":"https:\/\/physicscatalyst.com\/article\/how-to-prove-onto-functions-with-examples\/"},"wordCount":753,"commentCount":0,"publisher":{"@id":"https:\/\/physicscatalyst.com\/article\/#organization"},"image":{"@id":"https:\/\/physicscatalyst.com\/article\/how-to-prove-onto-functions-with-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/physicscatalyst.com\/article\/wp-content\/uploads\/2023\/04\/graph-method-onto-functions.png","articleSection":["Maths"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/physicscatalyst.com\/article\/how-to-prove-onto-functions-with-examples\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/physicscatalyst.com\/article\/how-to-prove-onto-functions-with-examples\/","url":"https:\/\/physicscatalyst.com\/article\/how-to-prove-onto-functions-with-examples\/","name":"How to prove onto functions with examples - physicscatalyst&#039;s Blog","isPartOf":{"@id":"https:\/\/physicscatalyst.com\/article\/#website"},"primaryImageOfPage":{"@id":"https:\/\/physicscatalyst.com\/article\/how-to-prove-onto-functions-with-examples\/#primaryimage"},"image":{"@id":"https:\/\/physicscatalyst.com\/article\/how-to-prove-onto-functions-with-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/physicscatalyst.com\/article\/wp-content\/uploads\/2023\/04\/graph-method-onto-functions.png","datePublished":"2023-04-30T17:13:00+00:00","dateModified":"2026-02-15T15:59:14+00:00","breadcrumb":{"@id":"https:\/\/physicscatalyst.com\/article\/how-to-prove-onto-functions-with-examples\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/physicscatalyst.com\/article\/how-to-prove-onto-functions-with-examples\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/physicscatalyst.com\/article\/how-to-prove-onto-functions-with-examples\/#primaryimage","url":"https:\/\/physicscatalyst.com\/article\/wp-content\/uploads\/2023\/04\/graph-method-onto-functions.png","contentUrl":"https:\/\/physicscatalyst.com\/article\/wp-content\/uploads\/2023\/04\/graph-method-onto-functions.png"},{"@type":"BreadcrumbList","@id":"https:\/\/physicscatalyst.com\/article\/how-to-prove-onto-functions-with-examples\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/physicscatalyst.com\/article\/"},{"@type":"ListItem","position":2,"name":"Maths","item":"https:\/\/physicscatalyst.com\/article\/maths\/"},{"@type":"ListItem","position":3,"name":"How to prove onto functions with examples"}]},{"@type":"WebSite","@id":"https:\/\/physicscatalyst.com\/article\/#website","url":"https:\/\/physicscatalyst.com\/article\/","name":"physicscatalyst's Blog","description":"Learn free for class 9th, 10th science\/maths , 12th and IIT-JEE Physics and maths.","publisher":{"@id":"https:\/\/physicscatalyst.com\/article\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/physicscatalyst.com\/article\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/physicscatalyst.com\/article\/#organization","name":"physicscatalyst","url":"https:\/\/physicscatalyst.com\/article\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/physicscatalyst.com\/article\/#\/schema\/logo\/image\/","url":"https:\/\/physicscatalyst.com\/article\/wp-content\/uploads\/2024\/08\/cropped-logo-1.jpg","contentUrl":"https:\/\/physicscatalyst.com\/article\/wp-content\/uploads\/2024\/08\/cropped-logo-1.jpg","width":96,"height":96,"caption":"physicscatalyst"},"image":{"@id":"https:\/\/physicscatalyst.com\/article\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/PhysicsCatalyst","https:\/\/x.com\/physicscatalyst","https:\/\/www.youtube.com\/user\/thephysicscatalyst","https:\/\/www.instagram.com\/physicscatalyst\/"]},{"@type":"Person","@id":"https:\/\/physicscatalyst.com\/article\/#\/schema\/person\/9b302efdc9b32e459cb1e61ab7506d3f","name":"physicscatalyst","sameAs":["https:\/\/physicscatalyst.com","https:\/\/www.facebook.com\/PhysicsCatalyst","https:\/\/x.com\/physicscatalyst"]}]}},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"shareaholic-thumbnail":false},"uagb_author_info":{"display_name":"physicscatalyst","author_link":"https:\/\/physicscatalyst.com\/article\/author\/physicscatalyst\/"},"uagb_comment_info":0,"uagb_excerpt":"This post we will see given a function, how to check if it is onto function or not. Lets first start with the definition of the onto functions Definition of onto functions A function f: A-&gt; B is said to be onto(surjective) if every element of B is the image of some element of A&hellip;","_links":{"self":[{"href":"https:\/\/physicscatalyst.com\/article\/wp-json\/wp\/v2\/posts\/7925","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/physicscatalyst.com\/article\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/physicscatalyst.com\/article\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/physicscatalyst.com\/article\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/physicscatalyst.com\/article\/wp-json\/wp\/v2\/comments?post=7925"}],"version-history":[{"count":5,"href":"https:\/\/physicscatalyst.com\/article\/wp-json\/wp\/v2\/posts\/7925\/revisions"}],"predecessor-version":[{"id":9908,"href":"https:\/\/physicscatalyst.com\/article\/wp-json\/wp\/v2\/posts\/7925\/revisions\/9908"}],"wp:attachment":[{"href":"https:\/\/physicscatalyst.com\/article\/wp-json\/wp\/v2\/media?parent=7925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/physicscatalyst.com\/article\/wp-json\/wp\/v2\/categories?post=7925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/physicscatalyst.com\/article\/wp-json\/wp\/v2\/tags?post=7925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}