Model G20 2027 at FLAME University, registrations now open

Continuity and Differentiability | CBSE Class 12 Maths Notes

21 min read

On this page

Continuity and Differentiability in Mathematics covers continuity at a point and on a domain, algebra of continuous functions, differentiability, the chain rule, implicit and inverse trigonometric differentiation, exponential and logarithmic functions, logarithmic differentiation, parametric derivatives, and second order derivatives.

What does continuity at a point mean?

Let ff denote a real-valued function, xx its input variable, and cc a point in its domain. The value f(c)f(c) is the output at that point. A limit describes the value approached by the outputs as the input approaches the point.

Definition: A function is continuous at a point in its domain when its limit there equals its value: lim⁡x→cf(x)=f(c).\lim_{x\to c}f(x)=f(c).

At an interior point, check the left-hand limit, the right-hand limit, and the function value separately. The notation x→c−x\to c^- means approach from the left; x→c+x\to c^+ means approach from the right. Continuity requires all three values to agree.

How do you apply the definition?

  1. Calculate the assigned value f(c)f(c) using the applicable part of the definition.
  2. Calculate lim⁡x→c−f(x)\lim_{x\to c^-}f(x), using inputs below the point.
  3. Calculate lim⁡x→c+f(x)\lim_{x\to c^+}f(x), using inputs above the point.
  4. Compare the results. Equal one-sided limits establish the limit; agreement with the assigned value establishes continuity.

Worked example 1. Check continuity of f(x)=2x+3f(x)=2x+3 at x=1x=1.

Answer:

  1. Evaluate the function: f(1)=2(1)+3=5.f(1)=2(1)+3=5.
  2. Evaluate the limit of this polynomial expression: lim⁡x→1(2x+3)=2(1)+3=5.\lim_{x\to1}(2x+3)=2(1)+3=5.
  3. Compare the two quantities: lim⁡x→1f(x)=5=f(1).\lim_{x\to1}f(x)=5=f(1). Therefore the function is continuous at the specified point.

Continuity of a function means continuity at every point of its domain. For an interval [a,b][a,b], where aa and bb are its left and right endpoints, use only the right-hand limit at the left endpoint and the left-hand limit at the right endpoint.

The endpoint conditions are lim⁡x→a+f(x)=f(a)\lim_{x\to a^+}f(x)=f(a) and lim⁡x→b−f(x)=f(b)\lim_{x\to b^-}f(x)=f(b). There is no need to test values outside the specified domain.

How can a function fail to be continuous?

A function can be defined at a point without being continuous there. Two distinct failures must be recognised: its one-sided limits may disagree, or their common value may disagree with the assigned function value. These failures require different comparisons.

What do the introductory graphs show?

What the figure shows

Unequal one-sided limits

The horizontal left branch lies at y=1y=1 and ends at the filled point (0,1)(0,1). The right branch lies at y=2y=2, beginning with an open point at (0,2)(0,2). Here yy denotes the output coordinate.

See Fig. 5.1 in your NCERT textbook

In this graph, the left-hand limit is 11 and the right-hand limit is 22. The function value is 11. Agreement between the value and just one side cannot establish continuity, because a common two-sided limit does not exist.

What the figure shows

Limit different from the value

A horizontal line at y=1y=1 has an open point at (0,1)(0,1). A separate filled point is shown at (0,2)(0,2). Both sides approach the hole, while the assigned value is represented by the upper point.

See Fig. 5.2 in your NCERT textbook

Worked example 2. Test continuity at zero for f(x)=x3+3f(x)=x^3+3 when x≠0x\ne0, with f(0)=1f(0)=1.

Answer:

  1. Read the special value from the definition: f(0)=1.f(0)=1.
  2. Use the expression for nearby nonzero inputs: lim⁡x→0f(x)=lim⁡x→0(x3+3)=3.\lim_{x\to0}f(x)=\lim_{x\to0}(x^3+3)=3.
  3. Compare: 3≠1.3\ne1. The limit exists but is not the assigned value, so the function is discontinuous at zero.

The domain also matters. The reciprocal function f(x)=1/xf(x)=1/x is continuous at every nonzero real input, which is every point of its domain. Zero is excluded. Its unbounded behaviour near zero does not make it discontinuous at a point belonging to that domain.

Similarly, the greatest integer function f(x)=⌊x⌋f(x)=\lfloor x\rfloor, where the brackets mean the greatest integer not exceeding the input, is continuous at non-integers. At an integer nn, the left limit is n−1n-1, while the right limit and value are nn.

How does the algebra of continuous functions simplify proofs?

Theorem: Sums, products and quotients preserve continuity

Let ff and gg be real functions continuous at cc, with gg denoting the second function. Their sum, difference and product are continuous there. Their quotient is continuous there provided g(c)≠0g(c)\ne0. The denominator condition is part of the result.

OperationFunctionCondition at the point
Sum or differencef(x)±g(x)f(x)\pm g(x)Both functions continuous
Productf(x)g(x)f(x)g(x)Both functions continuous
Quotientf(x)/g(x)f(x)/g(x)Both continuous and g(c)≠0g(c)\ne0

Here ±\pm indicates either addition or subtraction. These results follow from the corresponding laws of limits. For the sum, the reasoning can be written as a short numbered proof.

  1. Expand the sum function: lim⁡x→c(f+g)(x)=lim⁡x→c[f(x)+g(x)].\lim_{x\to c}(f+g)(x)=\lim_{x\to c}[f(x)+g(x)].
  2. Separate the limits: lim⁡x→c[f(x)+g(x)]=lim⁡x→cf(x)+lim⁡x→cg(x).\lim_{x\to c}[f(x)+g(x)]=\lim_{x\to c}f(x)+\lim_{x\to c}g(x).
  3. Use continuity of each function: lim⁡x→c(f+g)(x)=f(c)+g(c)=(f+g)(c).\lim_{x\to c}(f+g)(x)=f(c)+g(c)=(f+g)(c).

Polynomial functions are continuous at all real inputs. A rational function, being a quotient of polynomials, is continuous wherever its denominator is nonzero. Sine and cosine are continuous everywhere; their quotient, tangent, is continuous wherever cosine is nonzero.

Theorem: Continuity of a composite function

The composition (f∘g)(x)=f(g(x))(f\circ g)(x)=f(g(x)) applies the inner function first and the outer function second. If gg is continuous at cc, and ff is continuous at g(c)g(c), the composition is continuous at cc, provided it is defined.

Worked example 3. Show that f(x)=sin⁡(x2)f(x)=\sin(x^2) is continuous.

Answer:

  1. Identify the inner function u(x)=x2u(x)=x^2, where uu denotes the squaring function. It is a polynomial, so it is continuous for every real input.
  2. Identify the outer function v(t)=sin⁡tv(t)=\sin t, where tt is its input. Sine is continuous for every real input.
  3. Form the composition: v(u(x))=sin⁡(x2)=f(x).v(u(x))=\sin(x^2)=f(x). The inner output lies in the outer domain, so the continuity theorem applies everywhere.

How are differentiability and continuity related?

Let hh denote a nonzero increment in the input. The derivative at cc, written f′(c)f'(c), is defined by the finite limit f′(c)=lim⁡h→0f(c+h)−f(c)h.f'(c)=\lim_{h\to0}\frac{f(c+h)-f(c)}{h}. The prime indicates differentiation with respect to the input.

The function is differentiable at an interior point when the left-hand and right-hand limits of this difference quotient are finite and equal. This test concerns the quotient of changes, whereas continuity concerns the function values themselves.

Theorem: Differentiability implies continuity

Suppose the derivative exists at cc. Factor the difference in function values into a difference quotient and an input difference. The quotient approaches a finite number, while the input difference approaches zero.

  1. For x≠cx\ne c, write f(x)−f(c)=f(x)−f(c)x−c(x−c).f(x)-f(c)=\frac{f(x)-f(c)}{x-c}(x-c).
  2. Take limits and use differentiability: lim⁡x→c[f(x)−f(c)]=f′(c)⋅0=0.\lim_{x\to c}[f(x)-f(c)]=f'(c)\cdot0=0.
  3. Rearrange the limiting equality: lim⁡x→cf(x)=f(c).\lim_{x\to c}f(x)=f(c). This is precisely continuity at the point.

The converse is false. Continuity does not ensure differentiability. A function can have matching values from the two sides but different limiting difference quotients. The modulus function provides a direct example of this distinction.

Worked example 4. Discuss continuity and differentiability of f(x)=∣x∣f(x)=|x| at zero, where the vertical bars denote absolute value.

Answer:

  1. Use f(x)=−xf(x)=-x for x<0x<0 and f(x)=xf(x)=x for x≥0x\ge0. Both one-sided limits are zero and f(0)=0f(0)=0, so the function is continuous.
  2. For negative increments, compute lim⁡h→0−∣h∣−0h=lim⁡h→0−−hh=−1.\lim_{h\to0^-}\frac{|h|-0}{h}=\lim_{h\to0^-}\frac{-h}{h}=-1.
  3. For positive increments, compute lim⁡h→0+∣h∣−0h=lim⁡h→0+hh=1.\lim_{h\to0^+}\frac{|h|-0}{h}=\lim_{h\to0^+}\frac{h}{h}=1.
  4. The two derivative limits differ: −1≠1.-1\ne1. Hence the derivative does not exist at zero.

How do derivative rules and the chain rule work?

Write y=f(x)y=f(x), with yy the dependent variable. The notations y′y', f′(x)f'(x), and dy/dxdy/dx all describe its derivative with respect to xx. For differentiable functions uu and vv, their primes below mean derivatives with respect to xx.

RuleFormulaCondition
Sum and difference(u±v)′=u′±v′(u\pm v)'=u'\pm v'Both derivatives exist
Product(uv)′=u′v+uv′(uv)'=u'v+uv'Both derivatives exist
Quotient(u/v)′=(u′v−uv′)/v2(u/v)'=(u'v-uv')/v^2Both derivatives exist and v≠0v\ne0

Useful standard derivatives include (xn)′=nxn−1(x^n)'=nx^{n-1}, with nn a fixed exponent in the applicable domain, (sin⁡x)′=cos⁡x(\sin x)'=\cos x, (cos⁡x)′=−sin⁡x(\cos x)'=-\sin x, and (tan⁡x)′=sec⁡2x(\tan x)'=\sec^2x. The symbols sin⁡\sin, cos⁡\cos, tan⁡\tan and sec⁡\sec denote sine, cosine, tangent and secant.

Theorem: Chain rule for composite functions

If t=u(x)t=u(x) is an intermediate variable and y=v(t)y=v(t), the chain rule states dydx=dydtdtdx,\frac{dy}{dx}=\frac{dy}{dt}\frac{dt}{dx}, provided the required derivatives exist. Differentiate the outer function at the inner expression, then multiply by the inner derivative.

Worked example 5. Differentiate f(x)=sin⁡(x2)f(x)=\sin(x^2).

Answer:

  1. Set t=x2t=x^2, so the outer function is sin⁡t\sin t.
  2. Differentiate the inner function: dtdx=2x.\frac{dt}{dx}=2x.
  3. Differentiate the outer function: ddtsin⁡t=cos⁡t.\frac{d}{dt}\sin t=\cos t.
  4. Multiply and restore the original input: f′(x)=cos⁡t⋅2x=2xcos⁡(x2).f'(x)=\cos t\cdot2x=2x\cos(x^2).

Nested compositions require one derivative factor for each layer. Work from the outside towards the inside, keeping every inner expression unchanged until its own derivative is taken. Omitting an inner derivative changes the answer even when the outer derivative is correct.

The same principle differentiates a power of a linear expression. Expanding first is possible for small powers, but recognising the composition avoids unnecessary algebra and continues to work for much larger powers.

How do you differentiate an implicit function?

An explicit function presents the dependent variable directly in terms of the independent variable. An implicit relation links the variables without isolating the dependent variable. Such a relation can be differentiated directly wherever it describes a differentiable dependent variable.

Throughout implicit differentiation, treat yy as a function of xx. A term involving yy therefore needs the chain rule. For example, d(sin⁡y)/dx=cos⁡y (dy/dx)d(\sin y)/dx=\cos y\,(dy/dx), because the sine acts on a changing dependent variable.

How do you collect the derivative terms?

  1. Differentiate both sides of the relation with respect to the independent variable.
  2. Apply the chain rule to each expression involving the dependent variable.
  3. Collect all terms containing the required derivative on one side.
  4. Factor out that derivative, divide by its coefficient when nonzero, and state the resulting condition.

Worked example 6. Find dy/dxdy/dx when y+sin⁡y=cos⁡xy+\sin y=\cos x.

Answer:

  1. Differentiate each side: dydx+ddx(sin⁡y)=ddx(cos⁡x).\frac{dy}{dx}+\frac{d}{dx}(\sin y)=\frac{d}{dx}(\cos x).
  2. Apply the chain rule: dydx+cos⁡ydydx=−sin⁡x.\frac{dy}{dx}+\cos y\frac{dy}{dx}=-\sin x.
  3. Collect the derivative: (1+cos⁡y)dydx=−sin⁡x.(1+\cos y)\frac{dy}{dx}=-\sin x.
  4. Divide where the coefficient is nonzero: dydx=−sin⁡x1+cos⁡y,1+cos⁡y≠0.\frac{dy}{dx}=-\frac{\sin x}{1+\cos y},\qquad 1+\cos y\ne0.

The restriction can also be expressed as y≠(2n+1)πy\ne(2n+1)\pi, where nn is any integer and π\pi is the usual circle constant. This condition comes from division during the calculation, so it belongs alongside the derivative.

Do not replace the dependent variable by a constant. The final derivative may legitimately contain both variables. Solving explicitly first is optional when possible; direct differentiation often keeps the calculation much shorter.

How are inverse trigonometric derivatives obtained?

The notation sin⁡−1x\sin^{-1}x denotes the principal inverse sine, not the reciprocal of sine. Similarly, cos⁡−1x\cos^{-1}x and tan⁡−1x\tan^{-1}x denote principal inverse cosine and inverse tangent. Their derivative formulas must be paired with their domains of differentiability.

Derivation: Derivative of inverse sine

Let y=sin⁡−1xy=\sin^{-1}x, restricting the input to −1<x<1-1<x<1. Use the inverse relationship, differentiate implicitly, and then choose the sign of the square root from the principal range.

  1. Rewrite the inverse relation: x=sin⁡y.x=\sin y.
  2. Differentiate with respect to the input: 1=cos⁡ydydx.1=\cos y\frac{dy}{dx}.
  3. Use the trigonometric identity: cos⁡2y=1−sin⁡2y=1−x2.\cos^2y=1-\sin^2y=1-x^2.
  4. Since −π/2<y<π/2-\pi/2<y<\pi/2, cosine is positive: cos⁡y=1−x2.\cos y=\sqrt{1-x^2}.
  5. Divide to obtain dydx=11−x2.\frac{dy}{dx}=\frac{1}{\sqrt{1-x^2}}.

The principal range determines the sign. The formula is not a finite derivative at the endpoint inputs. A function's domain and the domain of its derivative need not be identical.

FunctionDerivativeDerivative domain
sin⁡−1x\sin^{-1}x1/1−x21/\sqrt{1-x^2}−1<x<1-1<x<1
cos⁡−1x\cos^{-1}x−1/1−x2-1/\sqrt{1-x^2}−1<x<1-1<x<1
tan⁡−1x\tan^{-1}x1/(1+x2)1/(1+x^2)Every real input

When the input is itself a function, use the chain rule in addition to this table. Replace the input in the denominator by the complete inner expression, and multiply the numerator by its derivative.

Before simplifying an inverse trigonometric composition, check the principal range. Reversing an inverse relationship without its range restriction can turn a locally valid identity into an incorrect global statement. The sign information used in the derivation is therefore essential.

What are exponential and logarithmic functions?

An exponential function has a fixed positive base and a variable exponent. For a base b>1b>1, the function y=bxy=b^x is defined for every real input, has positive outputs, passes through (0,1)(0,1), and increases as the input increases.

The constant ee is the base of natural exponentials and lies between 22 and 33. The natural exponential function is y=exy=e^x. Base 1010 gives the common exponential function.

How does a logarithm reverse exponentiation?

For a positive number aa, the statement log⁡ba=x\log_b a=x means bx=ab^x=a. Here log⁡b\log_b means logarithm to base bb. Thus a logarithm records the exponent required to obtain its positive argument from its base.

The logarithmic function with base greater than one has positive inputs and all real outputs. It passes through (1,0)(1,0) and is increasing. Natural logarithm is written ln⁡x\ln x; in these notes log⁡x\log x also means natural logarithm.

PropertyFormulaConditions
Productlog⁡b(pq)=log⁡bp+log⁡bq\log_b(pq)=\log_b p+\log_b qp,q>0p,q>0, with p,qp,q positive arguments
Quotientlog⁡b(p/q)=log⁡bp−log⁡bq\log_b(p/q)=\log_b p-\log_b qp,q>0p,q>0
Powerlog⁡b(pr)=rlog⁡bp\log_b(p^r)=r\log_b pp>0p>0, with rr a real exponent
Change of baselog⁡ap=log⁡bp/log⁡ba\log_a p=\log_b p/\log_b ap>0p>0, with bases a,b>1a,b>1

Positivity is a domain requirement. In real-variable work, a logarithm of a non-positive number is not defined. The inverse identity elog⁡x=xe^{\log x}=x therefore applies only for positive inputs, even though the exponential function itself accepts every real input.

These properties explain the usefulness of logarithms in differentiation: products become sums, quotients become differences, and powers become factors. Each transformation must retain the conditions that make the logarithms meaningful.

How do you differentiate exponentials and logarithms?

Result: Basic exponential and logarithmic derivatives

The natural exponential function reproduces itself under differentiation: ddxex=ex.\frac{d}{dx}e^x=e^x. The natural logarithm has derivative ddxlog⁡x=1x,x>0.\frac{d}{dx}\log x=\frac1x,\qquad x>0. The second formula includes the domain of the logarithm.

For a differentiable inner function u(x)u(x), applying the chain rule gives (eu(x))′=eu(x)u′(x)(e^{u(x)})'=e^{u(x)}u'(x). For a positive inner function it gives (log⁡u(x))′=u′(x)/u(x)(\log u(x))'=u'(x)/u(x). The inner derivative is required in both expressions.

Worked example 7. Differentiate y=sin⁡(log⁡x)y=\sin(\log x), with x>0x>0.

Answer:

  1. Set t=log⁡xt=\log x, making y=sin⁡ty=\sin t.
  2. Differentiate the inner expression: dtdx=1x.\frac{dt}{dx}=\frac1x.
  3. Differentiate the outer expression and multiply: dydx=cos⁡t1x.\frac{dy}{dx}=\cos t\frac1x.
  4. Substitute back: dydx=cos⁡(log⁡x)x,x>0.\frac{dy}{dx}=\frac{\cos(\log x)}{x},\qquad x>0.

Worked example 8. Differentiate y=ecos⁡xy=e^{\cos x}.

Answer:

  1. Identify the inner expression t=cos⁡xt=\cos x.
  2. Differentiate the inner expression: dtdx=−sin⁡x.\frac{dt}{dx}=-\sin x.
  3. Differentiate the exponential with respect to its argument: dydt=et.\frac{dy}{dt}=e^t.
  4. Multiply and restore the input: dydx=et(−sin⁡x)=−(sin⁡x)ecos⁡x.\frac{dy}{dx}=e^t(-\sin x)=-(\sin x)e^{\cos x}.

General positive bases require an additional constant factor. For a fixed positive base aa, logarithmic differentiation gives (ax)′=axlog⁡a(a^x)'=a^x\log a. The natural base is special because log⁡e=1\log e=1, so that factor becomes unity.

A useful check is to identify which expression is the exponent and which is the base. The power rule treats a fixed exponent, while the exponential rule treats a fixed base. Neither rule alone handles both quantities varying with the input.

When should you use logarithmic differentiation?

Logarithmic differentiation is useful when a positive function contains a variable base raised to a variable exponent. It can also simplify products and quotients by turning multiplication and division into addition and subtraction before differentiation.

How is the variable-power formula derived?

Let y=[u(x)]v(x)y=[u(x)]^{v(x)}, where uu is a positive differentiable base function and vv a differentiable exponent function. The resulting dependent variable must be positive so that its real logarithm exists.

  1. Take natural logarithms: log⁡y=v(x)log⁡u(x).\log y=v(x)\log u(x).
  2. Differentiate using the product and chain rules: 1ydydx=v′(x)log⁡u(x)+v(x)u′(x)u(x).\frac1y\frac{dy}{dx}=v'(x)\log u(x)+v(x)\frac{u'(x)}{u(x)}.
  3. Multiply by the original function: dydx=y[v′(x)log⁡u(x)+v(x)u′(x)u(x)].\frac{dy}{dx}=y\left[v'(x)\log u(x)+\frac{v(x)u'(x)}{u(x)}\right].

Both changing parts contribute. One term comes from differentiating the exponent; the other comes from differentiating the logarithm of the base. A constant-exponent power rule would miss the first contribution.

Worked example 9. Differentiate y=xsin⁡xy=x^{\sin x}, with x>0x>0.

Answer:

  1. Take logarithms: log⁡y=sin⁡xlog⁡x.\log y=\sin x\log x.
  2. Differentiate the product on the right: 1ydydx=cos⁡xlog⁡x+sin⁡x1x.\frac1y\frac{dy}{dx}=\cos x\log x+\sin x\frac1x.
  3. Multiply through by the dependent variable: dydx=y(cos⁡xlog⁡x+sin⁡xx).\frac{dy}{dx}=y\left(\cos x\log x+\frac{\sin x}{x}\right).
  4. Replace it by the original expression: dydx=xsin⁡x(cos⁡xlog⁡x+sin⁡xx).\frac{dy}{dx}=x^{\sin x}\left(\cos x\log x+\frac{\sin x}{x}\right).

Keep the original function available until the end, since the logarithmic derivative gives the derivative divided by the function. Stopping before multiplication by the function produces an incomplete answer.

For a product, check that the particular logarithms used are defined before splitting it into separate logarithms. Algebraic convenience does not remove positivity restrictions. The calculation and its domain must remain consistent at every step.

How do you differentiate functions in parametric form?

In parametric form, both variables depend on a third variable, called the parameter. Write x=f(t)x=f(t) and y=g(t)y=g(t), with tt the parameter and f,gf,g the functions giving the two coordinates.

The chain rule relates change in the dependent variable to change in the independent variable through their common parameter. This avoids eliminating the parameter, which can otherwise require substantial algebra.

Result: Ratio of parameter derivatives

  1. Write the chain-rule relation: dydt=dydxdxdt.\frac{dy}{dt}=\frac{dy}{dx}\frac{dx}{dt}.
  2. Require a nonzero denominator: dxdt≠0.\frac{dx}{dt}\ne0.
  3. Divide to obtain dydx=dy/dtdx/dt=g′(t)f′(t).\frac{dy}{dx}=\frac{dy/dt}{dx/dt}=\frac{g'(t)}{f'(t)}. Here the primes denote derivatives with respect to the parameter.

Worked example 10. Find dy/dxdy/dx for x=acos⁡θx=a\cos\theta, y=asin⁡θy=a\sin\theta, where aa is a nonzero constant and θ\theta is an angle parameter.

Answer:

  1. Differentiate the independent coordinate: dxdθ=−asin⁡θ.\frac{dx}{d\theta}=-a\sin\theta.
  2. Differentiate the dependent coordinate: dydθ=acos⁡θ.\frac{dy}{d\theta}=a\cos\theta.
  3. Divide where asin⁡θ≠0a\sin\theta\ne0: dydx=acos⁡θ−asin⁡θ=−cot⁡θ.\frac{dy}{dx}=\frac{a\cos\theta}{-a\sin\theta}=-\cot\theta. The symbol cot⁡\cot denotes cotangent.

Worked example 11. Find dy/dxdy/dx for x=at2x=at^2, y=2aty=2at, where aa is a nonzero constant.

Answer:

  1. Differentiate the first coordinate: dxdt=2at.\frac{dx}{dt}=2at.
  2. Differentiate the second coordinate: dydt=2a.\frac{dy}{dt}=2a.
  3. For t≠0t\ne0, form the ratio: dydx=2a2at=1t.\frac{dy}{dx}=\frac{2a}{2at}=\frac1t.

The final answer may contain the parameter. This is expected because the derivative describes the relation through that parameter. Cancelling common factors is valid only after checking the denominator condition; cancellation cannot justify division by zero.

What is a second order derivative?

If the first derivative is itself differentiable, differentiating it again gives the second order derivative. Its notations are f′′(x)f''(x), y′′y'', and d2y/dx2d^2y/dx^2. The double prime means that differentiation with respect to the same independent variable has been performed twice.

The defining operation is d2ydx2=ddx(dydx).\frac{d^2y}{dx^2}=\frac{d}{dx}\left(\frac{dy}{dx}\right). This is not the square of the first derivative. Any product, quotient or composition appearing after the first differentiation must be differentiated using the appropriate rules again.

How do you calculate and verify a second derivative?

Worked example 12. Find the second derivative of y=x3+tan⁡xy=x^3+\tan x, wherever tangent is defined.

Answer:

  1. Differentiate once: dydx=3x2+sec⁡2x.\frac{dy}{dx}=3x^2+\sec^2x.
  2. Differentiate the polynomial term: ddx(3x2)=6x.\frac{d}{dx}(3x^2)=6x.
  3. Differentiate the squared secant by the chain rule: ddx(sec⁡2x)=2sec⁡x(sec⁡xtan⁡x)=2sec⁡2xtan⁡x.\frac{d}{dx}(\sec^2x)=2\sec x(\sec x\tan x)=2\sec^2x\tan x.
  4. Add the results: d2ydx2=6x+2sec⁡2xtan⁡x.\frac{d^2y}{dx^2}=6x+2\sec^2x\tan x.

Second derivatives also allow verification of relations involving a function and its derivatives. Calculate the derivatives independently before substituting them into the proposed relation. This keeps the verification from assuming the result it is meant to establish.

Worked example 13. For y=Asin⁡x+Bcos⁡xy=A\sin x+B\cos x, with AA and BB fixed real constants, prove y′′+y=0y''+y=0.

Answer:

  1. Differentiate once, keeping the constants unchanged: y′=Acos⁡x−Bsin⁡x.y'=A\cos x-B\sin x.
  2. Differentiate again: y′′=−Asin⁡x−Bcos⁡x.y''=-A\sin x-B\cos x.
  3. Compare with the given function: y′′=−(Asin⁡x+Bcos⁡x)=−y.y''=-(A\sin x+B\cos x)=-y.
  4. Add the original function: y′′+y=−y+y=0.y''+y=-y+y=0.

Check signs at both stages. Differentiating cosine introduces a negative sign, while differentiating negative sine retains its existing negative coefficient. Errors from either stage carry into every subsequent substitution.

Glossary

  • Continuity at a point — Equality between the function's limiting value and its assigned value at a point in its domain.
  • Continuous function — A function that is continuous at every point belonging to its specified domain.
  • Left-hand limit — The value approached by a function when its input approaches a specified point from below.
  • Right-hand limit — The value approached by a function when its input approaches a specified point from above.
  • Discontinuity — Failure of a function to be continuous at a specified point of its domain.
  • Differentiability — Existence of a finite derivative, requiring equal one-sided difference-quotient limits at an interior point.
  • Derivative — The limit of the difference quotient as the nonzero input increment approaches zero.
  • Composite function — A function obtained by applying an outer function to the output of an inner function.
  • Chain rule — A differentiation rule that multiplies the outer derivative by the derivative of the inner function.
  • Implicit differentiation — Differentiation of a relation while treating the dependent variable as a function of the independent variable.
  • Natural logarithm — The logarithm with the natural exponential constant as its base, defined for positive real arguments.
  • Logarithmic differentiation — A method that takes logarithms before differentiation to simplify suitable positive powers, products or quotients.
  • Parameter — A third variable through which two other variables are separately expressed in a parametric relation.
  • Second order derivative — The derivative of the first derivative, obtained by differentiating again with respect to the same variable.

Common errors and misconceptions

  • Misconception: Equal one-sided limits alone prove continuity. Correct: Their common value must also equal the defined function value at the point.
  • Misconception: Every continuous function is differentiable. Correct: Differentiability implies continuity, but the modulus function is continuous at zero without being differentiable there.
  • Misconception: A quotient of continuous functions is continuous without restrictions. Correct: The denominator must be nonzero at the point being considered.
  • Misconception: Differentiating the outer function finishes a composite derivative. Correct: Multiply by the derivative of the inner expression as well.
  • Misconception: A dependent variable acts as a constant in implicit differentiation. Correct: Apply the chain rule to its powers and other functions.
  • Misconception: Real logarithms can be taken for any input. Correct: Their arguments must be positive, including each argument introduced by splitting a logarithm.
  • Misconception: A parametric derivative is the ratio of the coordinates. Correct: Divide their parameter derivatives, with the independent coordinate's derivative nonzero.
  • Misconception: A second derivative means squaring the first derivative. Correct: Differentiate the first derivative again with respect to the independent variable.

Exam-style questions with model answers

Q1. State the condition for continuity of a real function ff at an interior point cc of its domain. [2 marks]
  1. The function value must exist, and the left-hand and right-hand limits must both exist and agree.
  2. Their common value must equal the function value: lim⁡x→c−f(x)=lim⁡x→c+f(x)=f(c).\lim_{x\to c^-}f(x)=\lim_{x\to c^+}f(x)=f(c).
Q2. For f(x)=x+2f(x)=x+2 when x≤1x\le1, and f(x)=x−2f(x)=x-2 when x>1x>1, find all points of discontinuity. [3 marks]
  1. On either side of the joining point, each expression is a polynomial and is continuous throughout its corresponding open interval.
  2. At the joining point, the first branch supplies the value f(1)=3f(1)=3. Its left-hand limit is lim⁡x→1−(x+2)=3.\lim_{x\to1^-}(x+2)=3.
  3. The second branch gives the right-hand limit lim⁡x→1+(x−2)=−1.\lim_{x\to1^+}(x-2)=-1.
  4. The one-sided limits differ, so the function is discontinuous at x=1x=1. There are no other points of discontinuity.
Q3. Prove that differentiability of ff at an interior point cc implies continuity there. Use f(x)=∣x∣f(x)=|x| at zero to show that the converse is false. [5 marks]
  1. For an input different from the point, factor the change in the function as f(x)−f(c)=f(x)−f(c)x−c(x−c).f(x)-f(c)=\frac{f(x)-f(c)}{x-c}(x-c).
  2. Differentiability makes the first factor approach the finite value f′(c)f'(c). The second factor approaches zero, so lim⁡x→c[f(x)−f(c)]=f′(c)⋅0=0.\lim_{x\to c}[f(x)-f(c)]=f'(c)\cdot0=0.
  3. Consequently lim⁡x→cf(x)=f(c)\lim_{x\to c}f(x)=f(c), proving continuity at the specified point.
  4. For the modulus function, both one-sided limits at zero equal its value, zero. It is therefore continuous there.
  5. Its left derivative is lim⁡h→0−(−h)/h=−1\lim_{h\to0^-}(-h)/h=-1, while its right derivative is lim⁡h→0+h/h=1\lim_{h\to0^+}h/h=1, where hh is the input increment. Their inequality means that the two-sided difference-quotient limit does not exist. This proves non-differentiability and disproves the converse, despite the already established continuity.
Q4. Differentiate y=xsin⁡xy=x^{\sin x} for x>0x>0, showing the logarithmic differentiation steps. [4 marks]
  1. The positive input makes the base and the function positive, so natural logarithms may be taken. The power becomes a product: log⁡y=sin⁡xlog⁡x.\log y=\sin x\log x.
  2. Differentiate the left side by the chain rule and the right side by the product rule: 1ydydx=cos⁡xlog⁡x+sin⁡xx.\frac1y\frac{dy}{dx}=\cos x\log x+\frac{\sin x}{x}.
  3. Multiply by the dependent variable and replace it by the original expression: dydx=xsin⁡x(cos⁡xlog⁡x+sin⁡xx).\frac{dy}{dx}=x^{\sin x}\left(\cos x\log x+\frac{\sin x}{x}\right).
Q5. Find dy/dxdy/dx if y+sin⁡y=cos⁡xy+\sin y=\cos x, assuming yy is differentiable and 1+cos⁡y≠01+\cos y\ne0. [3 marks]
  1. Differentiate the relation with respect to the independent variable. The dependent variable inside sine also changes, so its derivative must be included: dydx+cos⁡ydydx=−sin⁡x.\frac{dy}{dx}+\cos y\frac{dy}{dx}=-\sin x.
  2. Collect the two terms containing the required derivative: (1+cos⁡y)dydx=−sin⁡x.(1+\cos y)\frac{dy}{dx}=-\sin x.
  3. The stated nonzero condition permits division by the coefficient. Therefore dydx=−sin⁡x1+cos⁡y.\frac{dy}{dx}=-\frac{\sin x}{1+\cos y}. Both variables can remain in an implicit derivative.
Q6. Given x=at2x=at^2, y=2aty=2at, where a≠0a\ne0 is constant and t≠0t\ne0 is the parameter, find dy/dxdy/dx. [2 marks]
  1. Differentiate both coordinates with respect to the parameter: dx/dt=2atdx/dt=2at and dy/dt=2ady/dt=2a.
  2. The denominator is nonzero under the given conditions. Therefore dydx=dy/dtdx/dt=2a2at=1t.\frac{dy}{dx}=\frac{dy/dt}{dx/dt}=\frac{2a}{2at}=\frac1t.
Q7. If y=3e2x+2e3xy=3e^{2x}+2e^{3x}, prove that y′′−5y′+6y=0y''-5y'+6y=0, where primes mean derivatives with respect to xx. [5 marks]
  1. Differentiate each exponential term using the chain rule. The exponents contribute their constant derivatives, giving y′=3e2x(2)+2e3x(3)=6e2x+6e3x.y'=3e^{2x}(2)+2e^{3x}(3)=6e^{2x}+6e^{3x}.
  2. Differentiate the resulting expression again, retaining those inner derivative factors: y′′=6e2x(2)+6e3x(3)=12e2x+18e3x.y''=6e^{2x}(2)+6e^{3x}(3)=12e^{2x}+18e^{3x}.
  3. Substitute the original function and both independently calculated derivatives into the required expression: y′′−5y′+6y=(12e2x+18e3x)−5(6e2x+6e3x)+6(3e2x+2e3x).y''-5y'+6y=(12e^{2x}+18e^{3x})-5(6e^{2x}+6e^{3x})+6(3e^{2x}+2e^{3x}).
  4. Expand the numerical multipliers and group terms with the same exponential factor. This checks cancellation separately for each exponential. Their coefficients are 12−30+18=012-30+18=0 and 18−30+12=018-30+12=0. Thus both contributions vanish and y′′−5y′+6y=0y''-5y'+6y=0, as required for every real input. The identity follows from exact cancellation of coefficients, so it does not depend on choosing any particular numerical input.

Key takeaways

  • Continuity at an interior point requires the two one-sided limits and the assigned function value to agree.
  • Every differentiable function is continuous, but continuity alone does not guarantee that a derivative exists.
  • Sums, differences and products preserve continuity; a quotient also requires a nonzero denominator at the point.
  • The chain rule multiplies an outer derivative by the inner derivative, with one factor for each layer.
  • Implicit differentiation treats the dependent variable as a function, so its derivative accompanies every relevant chain-rule term.
  • Logarithmic differentiation handles positive variable powers by converting the exponent into a factor before differentiating.
  • A parametric derivative divides the two parameter derivatives, provided the independent coordinate has a nonzero derivative.
  • A second derivative differentiates the first derivative again; it does not square the first derivative.

Test yourself

Can equal one-sided limits coexist with discontinuity?

Yes. Their common value can differ from the function's assigned value at the point.

Which one-sided limit tests continuity at the left endpoint of a closed interval?

Use the right-hand limit, approaching the endpoint through inputs belonging to the interval.

Why is the modulus function not differentiable at zero?

Its left derivative is −1-1, while its right derivative is 11; these finite values are unequal.

What factor is easily missed when differentiating sin⁡(x2)\sin(x^2)?

The inner derivative 2x2x must multiply the cosine of the unchanged inner expression.

Where does the standard derivative formula for inverse sine apply?

It applies for −1<x<1-1<x<1; the endpoint inputs do not give a finite value in that formula.

What conditions permit taking logarithms of a variable-power function?

The base function and the resulting dependent variable must both be positive for their real logarithms to exist.

Must a parametric derivative be rewritten without the parameter?

No. The derivative can remain expressed in terms of the parameter linking the two coordinates.

How is the second derivative obtained from the first derivative?

Differentiate the first derivative again with respect to the same independent variable, using all required differentiation rules.