chapter
    Differentiability and Optimization Notes for GATE CS

    Differentiability and Optimization notes for GATE CS: 39 study cards covering concepts, formulas, shortcuts and exam traps, plus solved practice questions.

    differentiability and optimization notes

    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

    The Two-Step Rule for Smooth Joints

    The Golden Rule of Differentiability

    A function is differentiable at a point if and only if:

    1. It is continuous at .
    2. Its left-hand derivative equals its right-hand derivative at .

    If a function has a jump or a break at , it is impossible for it to have a well-defined tangent line there. Therefore, continuity is the mandatory first step.

    Breaking it Down
    For a piecewise function with a joint at :
    • Step 1 (Continuity):
    • Step 2 (Differentiability):

    Both conditions must hold simultaneously.

    36 more cards in this chapter

    Try a question

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

    Question 1
    Level 1: Warm-up

    Let for . Which of the following statements is true regarding the differentiability of ?

    Question 2
    Level 1: Warm-up

    Consider the piecewise function defined by

    where is a real constant. If is differentiable at , what is the value of ?

    Question 3
    Level 1: Warm-up

    Consider the following assertion and reason:

    <b>Assertion (A):</b> The function is differentiable at .

    <b>Reason (R):</b> The curves and intersect at and have the same derivative at .

    Question 4
    Level 1: Warm-up

    A piecewise function has exactly one joint at and contains two unknown real constants and . If is given to be differentiable everywhere, what is the minimum number of independent equations you must formulate to uniquely determine the values of and ?

    Question 5
    Level 1: Warm-up

    Let for . How many points of non-differentiability does have?

    Question 6
    Level 1: Warm-up

    Consider the function . At how many distinct points in the interval is NOT differentiable?

    Question 7
    Level 1: Warm-up

    A function is differentiable for all real and has a local maximum at . What is the exact value of ?

    Question 8
    Level 1: Warm-up

    Let on the closed interval . Which of the following statements about the extrema of is TRUE?

    Question 9
    Level 1: Warm-up

    Let . What is the maximum of the left-hand derivative and the right-hand derivative of at the boundary ?

    Question 10
    Level 1: Warm-up

    Consider the function . Which of the following statements is true regarding its local extrema?

    Free preview ends here

    Login to view the complete notes

    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 Notes for GATE CS

    Differentiability and Optimization notes for GATE CS: 39 study cards covering concepts, formulas, shortcuts and exam traps, plus solved practice questions.

    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

    The Two-Step Rule for Smooth Joints

    The Golden Rule of Differentiability

    A function is differentiable at a point if and only if:

    1. It is continuous at .
    2. Its left-hand derivative equals its right-hand derivative at .

    If a function has a jump or a break at , it is impossible for it to have a well-defined tangent line there. Therefore, continuity is the mandatory first step.

    Breaking it Down
    For a piecewise function with a joint at :
    • Step 1 (Continuity):
    • Step 2 (Differentiability):

    Both conditions must hold simultaneously.

    Computing Left and Right Derivatives

    Formal Definitions vs. Practical Shortcuts

    Formal Definition

    The left-hand derivative (LHD) and right-hand derivative (RHD) at are defined using limits:

    Practical Shortcut for Piecewise Functions

    If the function is already known to be continuous at , you do not need to use the limit definition. You can simply differentiate the individual pieces and evaluate them at .

    Let

    If continuous at :

    For differentiability, we just need .

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

    Question 1 · Engineering Mathematics MCQ

    Let for . Which of the following statements is true regarding the differentiability of ?

    1. A.

      is differentiable everywhere.

    2. B.

      is not differentiable at and .

    3. C.

      is not differentiable at , and .

    4. D.

      is not differentiable only at .

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: The function is non-differentiable only where AND .

    Step 1: Find the intersection points.

    .

    The roots are .

    Step 2: Check the derivatives at each intersection.

    Let and .

    and .

    • At : and . Since , the curves are tangent. is differentiable at .
    • At : and . Since , is NOT differentiable at .
    • At : and . Since , is NOT differentiable at .

    Step 3: Conclusion.

    The function is not differentiable exactly at and .

    Answer: B

    Question 2 · Engineering Mathematics MCQ

    Consider the piecewise function defined by

    where is a real constant. If is differentiable at , what is the value of ?

    1. A.

      0

    2. B.

      1

    3. C.

      2

    4. D.

      3

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: Differentiability at a joint requires continuity first, then equal left and right derivatives.

    Step 1: Check the derivatives at .

    Left-hand derivative (LHD) = .

    Right-hand derivative (RHD) = . At , RHD = .

    Since LHD = RHD = 2, the derivative condition is satisfied regardless of .

    Step 2: Apply the continuity condition at .

    Left limit = .

    Right limit = .

    For continuity, Left limit = Right limit .

    Answer: 2

    Question 3 · Engineering Mathematics MCQ

    Consider the following assertion and reason:

    <b>Assertion (A):</b> The function is differentiable at .

    <b>Reason (R):</b> The curves and intersect at and have the same derivative at .

    1. A.

      Both A and R are true, and R is the correct explanation of A.

    2. B.

      Both A and R are true, but R is not the correct explanation of A.

    3. C.

      A is true, but R is false.

    4. D.

      A is false, but R is true.

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: Evaluate the truth of the assertion and the reason independently, then check if the reason explains the assertion.

    Step 1: Analyze the Assertion (A).

    . At , the curves and intersect.

    For , , so . Derivative is 0.

    For , , so . Derivative is , which approaches 0 as .

    Since the left and right derivatives match (both are 0), is indeed differentiable at .

    Assertion (A) is True.

    Step 2: Analyze the Reason (R).

    The curves and intersect at (since ).

    The derivative of is . At , it is 0.

    The derivative of is 0.

    Since both derivatives are 0 at , they have the same derivative.

    Reason (R) is True.

    Step 3: Link A and R.

    The reason is differentiable at the intersection is precisely because the derivatives match, making the transition smooth. Thus, R correctly explains A.

    Answer: A

    Question 4 · Engineering Mathematics MCQ

    A piecewise function has exactly one joint at and contains two unknown real constants and . If is given to be differentiable everywhere, what is the minimum number of independent equations you must formulate to uniquely determine the values of and ?

    1. A.

      1

    2. B.

      2

    3. C.

      3

    4. D.

      4

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: Differentiability at a joint provides exactly two independent constraints: one for continuity and one for smoothness.

    Step 1: Analyze the conditions at the joint .

    For to be differentiable at , it must first be continuous at .

    Continuity condition: . This gives 1 equation involving and .

    Step 2: Analyze the differentiability condition.

    The left-hand derivative must equal the right-hand derivative at .

    Differentiability condition: . This gives a 2nd independent equation involving and .

    Step 3: Determine the minimum number of equations.

    Since we have two unknowns ( and ), we need exactly 2 independent equations to uniquely determine them. The joint provides exactly these 2 equations.

    Answer: 2

    Question 5 · Engineering Mathematics MCQ

    Let for . How many points of non-differentiability does have?

    1. A.

      0

    2. B.

      1

    3. C.

      2

    4. D.

      3

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: The function is non-differentiable exactly where and .

    Step 1: Find the intersection points by setting .

    or .

    Step 2: Check the derivatives at these intersection points.

    Let and .

    and .

    At : and . Since , is not differentiable at .

    At : and . Since , is not differentiable at .

    Step 3: Count the points.

    There are exactly 2 points of non-differentiability.

    Answer: 2

    Question 6 · Engineering Mathematics MCQ

    Consider the function . At how many distinct points in the interval is NOT differentiable?

    1. A.

      0

    2. B.

      1

    3. C.

      2

    4. D.

      3

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: An absolute value function is non-differentiable exactly where AND .

    Step 1: Find the roots of the inside function.

    or .

    Both points are within the interval .

    Step 2: Check the derivative of the inside function at these roots.

    Let . Then .

    At , . So is not differentiable at .

    At , . So is not differentiable at .

    Step 3: Count the points.

    There are exactly 2 points where the function is not differentiable.

    Answer: 2

    Question 7 · Engineering Mathematics MCQ

    A function is differentiable for all real and has a local maximum at . What is the exact value of ?

    1. A.

      0

    2. B.

      1

    3. C.

      3

    4. D.

      -1

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a direct application of Fermat's Theorem for stationary points.

    Step 1: Recall Fermat's Theorem.

    If a function has a local extremum (maximum or minimum) at a point , and if is differentiable at , then the derivative at that point must be zero.

    Step 2: Apply the theorem to the given information.

    We are given that has a local maximum at and is differentiable everywhere (including at ).

    Therefore, by Fermat's Theorem, must be exactly 0.

    Answer: 0

    Question 8 · Engineering Mathematics MCQ

    Let on the closed interval . Which of the following statements about the extrema of is TRUE?

    1. A.

      The global maximum occurs at .

    2. B.

      The global minimum occurs at .

    3. C.

      The global maximum occurs at .

    4. D.

      The function has no global extrema on this interval.

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is a question about finding global extrema on a closed interval. You must check both critical points and endpoints.

    Step 1: Find the critical points inside the interval .

    . Setting gives .

    Step 2: Evaluate at the critical point and the endpoints.

    At the critical point : .

    At the left endpoint : .

    At the right endpoint : .

    Step 3: Compare the values to find the global extrema.

    The values are 0, 1, and 4.

    The highest value is 4, which occurs at . So the global maximum is at .

    The lowest value is 0, which occurs at . So the global minimum is at .

    Step 4: Match with the options.

    Option C correctly states that the global maximum occurs at .

    Answer: C

    Question 9 · Engineering Mathematics MCQ

    Let . What is the maximum of the left-hand derivative and the right-hand derivative of at the boundary ?

    1. A.

      6

    2. B.

      8

    3. C.

      12

    4. D.

      24

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: Compute the derivative of each piece separately and evaluate them at the boundary point .

    Step 1: Find the left-hand derivative (LHD) at .

    The left piece is .

    .

    At , LHD = .

    Step 2: Find the right-hand derivative (RHD) at .

    The right piece is .

    .

    At , RHD = 6.

    Step 3: Find the maximum of these two values.

    .

    Answer: 12

    Question 10 · Engineering Mathematics MCQ

    Consider the function . Which of the following statements is true regarding its local extrema?

    1. A.

      It has no local minimum because is undefined at .

    2. B.

      It has a local minimum at with a value of .

    3. C.

      It has a local minimum at with a value of .

    4. D.

      It has a local maximum at with a value of .

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is a question about non-differentiable extrema. Absolute value functions can have extrema at their corners.

    Step 1: Analyze the function .

    The absolute value is always greater than or equal to 0.

    The minimum value of is 0, which occurs when .

    Step 2: Find the minimum value of .

    At , .

    Since for all , for all .

    Therefore, has a local (and global) minimum at with a value of .

    Step 3: Address the differentiability.

    Although is undefined at (it's a sharp corner), the function still achieves its lowest value there. Extrema do not require differentiability.

    Answer: B

    More notes in this unit