Functions JEE Advanced previous year questions with solutions

5 solved JEE Advanced questions on Functions, free to read — no sign-in needed. The full chapter has 23 questions; sign in to attempt the remaining 18 in the exam simulator.

  1. Q1JEE Advanced Adv 2026 (Paper 2)
    Let N\mathbb{N} denote the set of all positive integers. Consider the sets A={1,2,3,4,5}A = \{1, 2, 3, 4, 5\} and B={1,2,3,4,5,6,7}B = \{1, 2, 3, 4, 5, 6, 7\}. Let SS be the set of all functions f:ABf: A \rightarrow B such that f(2)2f(2) \neq 2 and f(4)4f(4) \neq 4. Consider the set T={fS:there exists a function g:BN such that g(f(x))=2x for all xA}T = \{f \in S : \text{there exists a function } g : B \rightarrow \mathbb{N} \text{ such that } g(f(x)) = 2^x \text{ for all } x \in A\}. Then the number of elements in the set TT is ___________.
    Show answer & solution

    Answer: 1860

    The condition g(f(x))=2xg(f(x)) = 2^x for all xAx \in A implies that if f(x1)=f(x2)f(x_1) = f(x_2), then g(f(x1))=g(f(x2))g(f(x_1)) = g(f(x_2)), which gives 2x1=2x2x1=x22^{x_1} = 2^{x_2} \Rightarrow x_1 = x_2. Thus, ff must be an injective (one-to-one) function. Conversely, if ff is injective, such a function gg can always be constructed. Therefore, TT is the set of all injective functions f:ABf: A \rightarrow B such that f(2)2f(2) \neq 2 and f(4)4f(4) \neq 4. The total number of injective functions from AA to BB is 7P5=7×6×5×4×3=2520^{7}P_{5} = 7 \times 6 \times 5 \times 4 \times 3 = 2520. Let E2E_2 be the set of injective functions where f(2)=2f(2) = 2. The number of such functions is 6P4=6×5×4×3=360^{6}P_{4} = 6 \times 5 \times 4 \times 3 = 360. Let E4E_4 be the set of injective functions where f(4)=4f(4) = 4. The number of such functions is 6P4=360^{6}P_{4} = 360. Let E2E4E_2 \cap E_4 be the set of injective functions where both f(2)=2f(2) = 2 and f(4)=4f(4) = 4. The number of such functions is 5P3=5×4×3=60^{5}P_{3} = 5 \times 4 \times 3 = 60. Using the Principle of Inclusion-Exclusion, the number of injective functions where f(2)=2f(2) = 2 or f(4)=4f(4) = 4 is: E2E4=E2+E4E2E4=360+36060=660|E_2 \cup E_4| = |E_2| + |E_4| - |E_2 \cap E_4| = 360 + 360 - 60 = 660 The number of elements in the set TT is the number of injective functions where f(2)2f(2) \neq 2 and f(4)4f(4) \neq 4, which is: T=2520660=1860|T| = 2520 - 660 = 1860 Answer: 18601860
  2. Q2JEE Advanced Adv 2025 (Paper 1)
    Let N\mathbb{N} denote the set of all natural numbers, and Z\mathbb{Z} denote the set of all integers. Consider the functions f:NZf: \mathbb{N} \rightarrow \mathbb{Z} and g:ZNg: \mathbb{Z} \rightarrow \mathbb{N} defined by f(n)={(n+1)/2 if n is odd (4n)/2 if n is even f(n)= \begin{cases}(n+1) / 2 & \text { if } n \text { is odd } \\ (4-n) / 2 & \text { if } n \text { is even }\end{cases} And g(n)={3+2n if n02n if n<0g(n)=\left\{\begin{array}{cc}3+2 n & \text { if } n \geq 0 \\ -2 n & \text { if } n \lt 0\end{array}\right. Define (gf)(n)=g(f(n))(g \circ f)(n)=g(f(n)) for all nNn \in \mathbb{N}, and (fg)(n)=f(g(n))(f \circ g)(n)=f(g(n)) for all nZn \in \mathbb{Z}. Then which of the following statements is (are) TRUE?
    1. A.gfg \circ f is NOT one-one and gfg \circ f is NOT onto
    2. B.f gf \circ \mathrm{~g} is NOT one-one but fgf \circ g is onto
    3. C.gg is one-one and gg is onto
    4. D.ff is NOT one-one but ff is onto
    Show answer & solution

    Answer: A,D

    f(n)={(n+1)/2 if n is odd (4n)/2 if n is even f(n)={(1,1),(2,1),(3,2),(4,0),(5,3),(6,1),}\begin{aligned} & f(n)= \begin{cases}(n+1) / 2 & \text { if } n \text { is odd } \\ (4-n) / 2 & \text { if } n \text { is even }\end{cases} \\ & f(n)=\{(1,1),(2,1),(3,2),(4,0),(5,3),(6,-1), \ldots\} \end{aligned} f(n)\therefore \mathrm{f}(\mathrm{n}) is many one and onto function g(n)={3+2n if n02n if n<0g(n)={(3,6),(2,4),(1,2),(0,3),(1,5),(2,7),(3,9),(4,15),}\begin{aligned} & \mathrm{g}(\mathrm{n})=\left\{\begin{array}{cc} 3+2 \mathrm{n} & \text { if } \mathrm{n} \geq 0 \\ -2 \mathrm{n} & \text { if } \mathrm{n} \lt 0 \end{array}\right. \\ & \mathrm{g}(\mathrm{n})=\{(-3,6),(-2,4),(-1,2),(0,3),(1,5),(2,7),(3,9),(4,15), \ldots\} \end{aligned} g(n)\therefore \mathrm{g}(\mathrm{n}) is one-one and into function f( g(n))=2+n,n N\mathrm{f}(\mathrm{~g}(\mathrm{n}))=2+\mathrm{n}, \mathrm{n} \in \mathrm{~N} fog is one-one and into g(f(n))={4+n if n is odd natural number 7n if n=2,4n4 if n is even natural number and n6g(f(n))= \begin{cases}4+n & \text { if } n \text { is odd natural number } \\ 7-n & \text { if } n=2,4 \\ n-4 & \text { if } n \text { is even natural number and } n \geq 6\end{cases} g(f(2))=g(f(1))=5g(f(2))=g(f(1))=5 \therefore gof is many one and into
  3. Q3JEE Advanced Adv 2025 (Paper 1)
    Let R\mathbb{R} denote the set of all real numbers. Let ai,biRa_{\mathrm{i}}, b_{\mathrm{i}} \in \mathbb{R} for i{1,2,3}\mathrm{i} \in\{1,2,3\}. Define the functions f:RR,g:RRf: \mathbb{R} \rightarrow \mathbb{R}, g: \mathbb{R} \rightarrow \mathbb{R}, and h:RRh: \mathbb{R} \rightarrow \mathbb{R} by f(x)=a1+10x+a2x2+a3x3+x4,g(x)=b1+3x+b2x2+b3x3+x4,h(x)=f(x+1)g(x+2).\begin{aligned} & f(x)=a_1+10 x+a_2 x^2+a_3 x^3+x^4, \\ & g(x)=b_1+3 x+b_2 x^2+b_3 x^3+x^4, \\ & h(x)=f(x+1)-g(x+2) .\end{aligned} If f(x)g(x)f(x) \neq g(x) for every xRx \in \mathbb{R}, then the coefficient of x3x^3 in h(x)h(x) is
    1. A.8
    2. B.2
    3. C.-4
    4. D.-6
    Show answer & solution

    Answer: (C)

    h(x)=f(x+1)g(x+2)=a1+10(x+1)+a2(x+1)2+a3(x+1)3+(x+1)4b13(x+2)b2(x+2)2b3(x+2)3(x+2)4\begin{aligned} & h(x)=f(x+1)-g(x+2) \\ & =a_1+10(x+1)+a_2(x+1)^2+a_3(x+1)^3+(x+1)^4-b_1-3(x+2)-b_2(x+2)^2-b_3(x+2)^3-(x+2)^4 \end{aligned} Coeff. of x3x^3 in h(x)h(x) =a3b34f(x)g(x)0xRa1+10x+a2x2+a3x3+x4b13xb2x2b3x3x40x3(a3b3)+x2(a2b2)+7x+(a1b1)0\begin{aligned} & =a_3-b_3-4 \\ & f(x)-g(x) \neq 0 \quad \forall x \in R \\ & \Rightarrow a_1+10 x+a_2 x^2+a_3 x^3+x^4-b_1-3 x-b_2 x^2-b_3 x^3-x^4 \neq 0 \\ & \Rightarrow x^3\left(a_3-b_3\right)+x^2\left(a_2-b_2\right)+7 x+\left(a_1-b_1\right) \neq 0 \end{aligned} Cubic Eq. will become zero at atleast are value of xx So it will be quadratic a3b3=0\Rightarrow \mathrm{a}_3-\mathrm{b}_3=0
  4. Q4JEE Advanced Adv 2023 (Paper 1)
    Let S=(0,1)(1,2)(3,4)S=\left(0,1\right)\cup \left(1,2\right)\cup \left(3,4\right) and T={0,1,2,3}T=\left\{0,1,2,3\right\}. Then which of the following statements is(are) true?
    1. A.There are infinitely many functions from SS to TT
    2. B.There are infinitely many strictly increasing functions from SS to TT
    3. C.The number of continuous functions from SS to TT is at most 120120
    4. D.Every continuous function from SS to TT is differentiable
    Show answer & solution

    Answer: A,C,D

    Given, S=(0,1)(1,2)(3,4)S=\left(0,1\right)\cup \left(1,2\right)\cup \left(3,4\right) and T={0,1,2,3}T=\left\{0,1,2,3\right\} Now, let domain and co-domain of a function y=f(x)y=f\left(x\right) are SS and TT respectively. Now solving option, (A)\left(A\right) There are infinitely many elements in domain and four elements in co-domain. \Rightarrow There are infinitely many functions from SS to TT. \Rightarrow Option (A)\left(A\right) is correct (B)\left(B\right) If number of elements in domain is greater than number of elements in co-domain, then number of strictly increasing function is zero. { Assume sinx\sin x function its elements in domain is greater than its range hence, it is not an strictly increasing function.} \Rightarrow Option (B)\left(B\right) is incorrect (C)\left(C\right) Maximum number of continuous functions =4×4×4=64=4\times 4\times 4=64 (Every subset (0,1),(1,2),(3,4)\left(0,1\right),\left(1,2\right),\left(3,4\right) has four choices) 64<120∵64\lt 120 \Rightarrow Option (C)\left(C\right) is correct. (D)\left(D\right) For every point at which f(x)f\left(x\right) is continuous, f(x)=0{f}^{'}\left(x\right)=0 {as derivative of constant is always zero} \Rightarrow Every continuous function from SS to TT is differentiable. \Rightarrow Option (D)\left(D\right) is correct
  5. Q5JEE Advanced Adv 2020 (Paper 2)
    Let the function f:[0,1]Rf:\left[0,1\right]\rightarrow ℝ be defined by f(x)=4x4x+2f\left(x\right)=\dfrac{{4}^{x}}{{4}^{x}+2}. Then the value of f(140)+f(240)+f(340)++f(3940)f(12)f\left(\dfrac{1}{40}\right)+f\left(\dfrac{2}{40}\right)+f\left(\dfrac{3}{40}\right)+\cdots +f\left(\dfrac{39}{40}\right)-f\left(\dfrac{1}{2}\right) is_________
    Show answer & solution

    Answer: 19

    f(x)=4x4x+2,f(1x)=41x41x+2=24x+2f\left(x\right)=\dfrac{{4}^{x}}{{4}^{x}+2},f\left(1-x\right)=\dfrac{{4}^{1-x}}{{4}^{1-x}+2}=\dfrac{2}{{4}^{x}+2} f(x)+f(1x)=1\Rightarrow f\left(x\right)+f\left(1-x\right)=1 f(140)+f(240)+..+f(3940)f(12)f\left(\dfrac{1}{40}\right)+f\left(\dfrac{2}{40}\right)+\ldots ..+f\left(\dfrac{39}{40}\right)-f\left(\dfrac{1}{2}\right) =(f(140)+f(3940))+(f(240)+f(3840))+.....(f(1940)+f(2140))+f(2040)f(12)=\left(f\left(\dfrac{1}{40}\right)+f\left(\dfrac{39}{40}\right)\right)+\left(f\left(\dfrac{2}{40}\right)+f\left(\dfrac{38}{40}\right)\right)+.....\left(f\left(\dfrac{19}{40}\right)+f\left(\dfrac{21}{40}\right)\right)+f\left(\dfrac{20}{40}\right)-f\left(\dfrac{1}{2}\right) =19=19.

18 more Functions questions are waiting

Attempt the full chapter in a real NTA CBT simulator with instant scoring, year-wise filters and detailed solutions.

Practise all 23 questions

Functions in JEE Advanced: previous year question analysis

Functions has appeared 23 times in JEE Advanced between 2007 and 2026, making it the 46th most-asked of 93 chapters and about 1% of the bank. Over the last 5 years it has averaged 1.6 questions per year.

Total PYQs
23
Years covered
2007–2026
Weightage rank
#46 of 93
Share of bank
1%

How many Functions questions appeared each year

Functions JEE Advanced question count by year
YearQuestionsRelative volume
20081
20091
20112
20122
20142
20151
20183
20202
20231
20242
20252
20261

Question formats used in Functions

  • Single-correct MCQ14
  • Numerical / integer answer5
  • Multiple-correct MCQ4

Counts are computed from AcadXL’s own JEE Advanced question bank, tagged chapter- and sub-topic-wise and checked against official answer keys. Sign in to attempt the 23 Functions questions with solutions.