chapter
    Differentiability and Optimization PYQs for GATE CS

    Solve 5+ Differentiability and Optimization previous year questions for GATE CS with answers and detailed solutions. Free sample questions below.

    Try a question

    Answer it here to see how it works. Nothing is recorded until you sign in.

    Question 1
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Let be defined as follows:


    Which of the following statements is/are true?
    Question 2
    2025 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider the given function .



    If the function is differentiable everywhere, the value of must be ________.
    (rounded off to one decimal place)
    Question 3
    2024 Slot Set1 PYQ
    Level 3: Exam Standard

    Let be a function such that , , where is the set of all real numbers. The set of all points where is NOT differentiable is

    Question 4
    2023 PYQ
    Level 3: Exam Standard
    Let


    be a real-valued function.

    Which of the following statements is/are TRUE?
    Question 5
    2021 Slot Set2 PYQ
    Level 3: Exam Standard

    Suppose that is a continuous function on the interval and a differentiable function in the interval such that for every in the interval, . If , then is at most __________.

    Free preview ends here

    Login to view the complete previous-year questions and solutions

    Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.

    Why MastersUp

    Personalised first. High quality throughout.

    Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.

    Built around you, not around a syllabus PDF

    Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.

    Revision that hits your weak spots

    We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.

    Questions calibrated to the real exam

    Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.

    Notes written for recall, not for volume

    Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.

    One place for everything

    Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.

    Honest progress

    No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.

    Unlock the whole course

    Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.

    Differentiability and Optimization PYQs for GATE CS

    Solve 5+ Differentiability and Optimization previous year questions for GATE CS with answers and detailed solutions. Free sample questions below.

    Chapter Roadmap: Differentiability and Optimization

    Chapter Roadmap: Differentiability and Optimization

    Your journey through the calculus of change and optimization.
    1
    Differentiability Conditions for Piecewise Functions (Current)
    Making sharp corners smooth. Matching limits and derivatives at joints.
    2
    Nondifferentiability of Maximum Functions
    Analyzing and finding where the 'winner' changes.
    3
    Local Extrema and Smoothness
    First and second derivative tests, identifying peaks and valleys.
    4
    Mean Value Theorem and Derivative Bounds
    Bounding function values using derivative limits over an interval.
    4 Topics ~5 Core PYQs

    Differentiability Conditions for Piecewise Functions

    Differentiability Conditions for Piecewise Functions

    Why this matters: Piecewise functions often have 'joints' where the formula changes. These joints are natural candidates for sharp corners or breaks. To make the function differentiable everywhere, we must carefully stitch these pieces together.

    What you'll learn here

    • The strict prerequisite of continuity before differentiability.
    • How to compute and equate Left-Hand and Right-Hand Derivatives.
    • A systematic method to find unknown constants in piecewise definitions.
    Context: Differentiability & Optimization Topic 1 of 4

    Differentiability and Optimization: Solved Questions with Step-by-Step Explanations (5 Problems)

    Question 1 · Engineering Mathematics · 2026_Set1 MSQ
    Let be defined as follows:


    Which of the following statements is/are true?
    1. A.

      has a local maximum

    2. B.

      has a local minimum

    3. C.

      is continuous over

    4. D.

      is not differentiable over

    Correct Answer:

    ["A","C","D"]

    Step-by-Step Solution

    Insight: The function is the negative of a perfect square, , which immediately reveals its global maximum at (i.e., ) and allows easy piecewise differentiation.

    Exam route:

    1. Simplify . Since a square is , . At , , so is a local (and global) maximum. No local minimum exists. (A is true, B is false).
    2. Write piecewise: for , and for .
    3. Differentiate: for , and for . At , both left and right limits of the difference quotient are 0, so . Since , is continuous. (C is true).
    4. Check differentiability of at : left derivative of is , right derivative is . They are unequal, so is not differentiable at . (D is true).

    Learning route:

    Step 1: Notice the algebraic structure. The two factors are negatives of each other. Let . Then .

    Step 2: Analyze extrema. Since for all real , . The maximum possible value is 0, which occurs when . Thus, is a local (and global) maximum. The function strictly decreases as moves away from 0 in either direction, so there is no local minimum.

    Step 3: Analyze piecewise to find derivatives.

    For , , so .

    For , , so .

    Step 4: Find .

    For , .

    For , .

    At , use the limit definition: .

    From the right: .

    From the left: .

    Thus, .

    Step 5: Check continuity of .

    and . Both equal . So is continuous on .

    Step 6: Check differentiability of .

    We need .

    From the right: .

    From the left: .

    Since , does not exist. Thus, is not differentiable over .

    Question 2 · Engineering Mathematics · 2025_Set1 NAT
    Consider the given function .



    If the function is differentiable everywhere, the value of must be ________.
    (rounded off to one decimal place)
    Correct Answer:

    -2.0

    Step-by-Step Solution

    Key idea: This is a piecewise differentiability constants question. The function has a joint at with two unknowns . Differentiability everywhere forces two conditions at the joint: continuity (values match) and smoothness (derivatives match). Two conditions determine two unknowns.

    Step 1: Enforce continuity at .

    Differentiability implies continuity, so the left and right limits must agree:

    Continuity condition: .

    Step 2: Enforce derivative matching at .

    Left branch derivative: , so the left derivative at is .

    Right branch derivative: , and at this is .

    Differentiability condition: .

    Step 3: Solve the system.

    From and :

    Step 4: State the answer to one decimal place as required.

    Answer: -2.0

    Common trap: skipping the continuity condition and trying to use only the derivative match. That gives but leaves undetermined. Continuity is a prerequisite of differentiability and always supplies one of the equations.

    Question 3 · Engineering Mathematics · 2024_Set1 MCQ

    Let be a function such that , , where is the set of all real numbers. The set of all points where is NOT differentiable is

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    D

    Step-by-Step Solution

    Key idea: This is a nondifferentiability of a max function question. The function can only fail to be differentiable at points where the two pieces are equal, i.e. where . At such a point, is differentiable only if the two derivatives also match; otherwise there is a corner.

    Step 1: Find the candidate points by solving .

    Candidates: . Everywhere else, one of or strictly dominates, so equals a smooth function locally and is differentiable.

    Step 2: Check the derivative-match condition at each candidate.

    Let with , and with .

    At : , . Since , there is a corner. NOT differentiable.

    At : , . Since , there is a corner. NOT differentiable.

    At : , . Since , there is a corner. NOT differentiable.

    Step 3: Collect the nondifferentiable points.

    All three intersection points produce corners, so the set is .

    Answer: Option D, .

    Common trap: Option C () misses . Students often forget that , so is also an intersection point. Option A and B contain points like or that are not intersections at all.

    Question 4 · Engineering Mathematics · 2023 MSQ
    Let


    be a real-valued function.

    Which of the following statements is/are TRUE?
    1. A.

      does not have a local maximum.

    2. B.

      has a local maximum.

    3. C.

      does not have a local minimum.

    4. D.

      has a local minimum.

    Correct Answer:

    ["B","D"]

    Step-by-Step Solution

    Key idea: This is a polynomial local extrema question, recognisable because we are given a cubic polynomial and asked whether local maxima/minima exist. The standard tool is: find critical points via , then classify them.

    Step 1: Compute the first derivative.

    Step 2: Find critical points by solving .

    Factorising:

    So the critical points are and . Both are real and distinct, so both are candidates for extrema.

    Step 3: Classify using the second derivative test.

    At : .

    Negative second derivative means concave down, so has a local maximum at .

    At : .

    Positive second derivative means concave up, so has a local minimum at .

    Step 4: Verify with the first derivative test as a cross-check.

    is an upward parabola, so for , on , for .

    Sign pattern at confirms local maximum; at confirms local minimum.

    Step 5: Evaluate the four statements.

    A ("no local maximum") is FALSE. B ("has a local maximum") is TRUE.

    C ("no local minimum") is FALSE. D ("has a local minimum") is TRUE.

    Answer: B and D.

    Common trap: A cubic has no global maximum or minimum (it tends to ), but it does have local extrema whenever has two distinct real roots. Do not confuse local with global.

    Question 5 · Engineering Mathematics · 2021_Set2 NAT

    Suppose that is a continuous function on the interval and a differentiable function in the interval such that for every in the interval, . If , then is at most __________.

    Correct Answer:

    19

    Step-by-Step Solution

    Key idea: This is a Mean Value Theorem bound question, recognisable because we are given a derivative bound , an endpoint value , and asked for the maximum possible value of . The MVT converts a derivative bound into a function-value bound.

    Step 1: State the MVT in inequality form.

    Since is continuous on and differentiable on , Lagrange's MVT guarantees some with

    Step 2: Apply the derivative bound.

    We are told for every in the interval, so in particular . Therefore:

    Step 3: Solve for .

    Multiply both sides by (positive, so inequality direction is preserved):

    Step 4: Confirm the bound is tight.

    The function satisfies all conditions: it is continuous and differentiable everywhere, , and . For this function, . So the upper bound is actually attained.

    Answer: 19

    Common trap: The interval length is , not . Using length gives the wrong bound . Always compute carefully when the interval crosses zero.

    More previous year questions (pyqs) in this unit