Important Theorems

Theorem 1 (Algebra of Continuous Functions)

Suppose ff and gg be two real functions continuous at a real number cc. Then:

  1. f+gf + g is continuous at x=cx = c.
  2. fgf - g is continuous at x=cx = c.
  3. fgf \cdot g is continuous at x=cx = c.
  4. (fg)\left(\frac{f}{g}\right) is continuous at x=cx = c, provided g(c)0g(c) \neq 0.

Theorem 2 (Continuity of Composite Functions)

Suppose ff and gg are real valued functions such that (fg)(f \circ g) is defined at cc. If gg is continuous at cc and ff is continuous at g(c)g(c), then (fg)(f \circ g) is continuous at cc.

Theorem 3 (Differentiability implies Continuity)

If a function ff is differentiable at a point cc, then it is also continuous at that point. The converse is not always true.

Theorem 4 (Chain Rule)

Let f=vuf = v \circ u. If t=u(x)t = u(x) and both dtdx\frac{dt}{dx} and dvdt\frac{dv}{dt} exist, then: dfdx=dvdtdtdx\frac{df}{dx} = \frac{dv}{dt} \cdot \frac{dt}{dx}

Theorem 5 (Logarithmic Differentiation)

For a function of the form y=u(x)v(x)y = u(x)^{v(x)}, where u(x)>0u(x) > 0, we take logarithm on both sides: lny=v(x)lnu(x)\ln y = v(x) \ln u(x) and then differentiate implicitly with respect to xx.

Example 1: Checking Continuity at a Point

Check the continuity of the function ff given by f(x)=2x+3f(x) = 2x + 3 at x=1x = 1.

Solution: Step 1: Find the value of the function at x=1x = 1. f(1)=2(1)+3=5.f(1) = 2(1) + 3 = 5.

Step 2: Find the limit of the function as x1x \to 1. Since 2x+32x+3 is a polynomial, its limit at any point is obtained by direct substitution: limx1(2x+3)=2(1)+3=5.\lim_{x \to 1} (2x+3) = 2(1)+3 = 5.

Step 3: Compare the two values. limx1f(x)=5=f(1).\lim_{x \to 1} f(x) = 5 = f(1). Hence, the function is continuous at x=1x=1.

Answer: The function is continuous at x=1x = 1.

Example 2: Continuity of Modulus Function

Discuss the continuity of the function f(x)=xf(x) = |x| at x=0x = 0.

Solution: Step 1: Write x|x| in piecewise form: f(x)={x,x<0x,x0f(x) = \begin{cases} -x, & x<0 \\ x, & x \ge 0 \end{cases}

Step 2: Find the left-hand limit at x=0x=0. limx0x=limx0(x)=0.\lim_{x \to 0^-} |x| = \lim_{x \to 0^-} (-x) = 0.

Step 3: Find the right-hand limit at x=0x=0. limx0+x=limx0+x=0.\lim_{x \to 0^+} |x| = \lim_{x \to 0^+} x = 0.

Step 4: Find the function value. f(0)=0=0.f(0)=|0|=0.

Step 5: Since limx0f(x)=limx0+f(x)=f(0)=0,\lim_{x \to 0^-} f(x)=\lim_{x \to 0^+} f(x)=f(0)=0, f(x)f(x) is continuous at x=0x=0.

Answer: The function is continuous at x=0x = 0.

Example 3: Finding an Unknown Constant for Continuity

Find the value of kk so that the function f(x)={kx+1,if xπcosx,if x>πf(x) = \begin{cases} kx + 1, & \text{if } x \le \pi \\ \cos x, & \text{if } x > \pi \end{cases} is continuous at x=πx = \pi.

Solution: Step 1: For continuity at x=πx=\pi, we must have limxπf(x)=limxπ+f(x)=f(π).\lim_{x \to \pi^-} f(x)=\lim_{x \to \pi^+} f(x)=f(\pi).

Step 2: Left-hand limit: limxπ(kx+1)=kπ+1.\lim_{x \to \pi^-}(kx+1)=k\pi+1. Since the first branch is also defined at x=πx=\pi, f(π)=kπ+1.f(\pi)=k\pi+1.

Step 3: Right-hand limit: limxπ+cosx=cosπ=1.\lim_{x \to \pi^+} \cos x = \cos \pi = -1.

Step 4: For continuity, kπ+1=1.k\pi+1=-1. So, kπ=2    k=2π.k\pi=-2 \implies k=-\frac{2}{\pi}.

Answer: k=2πk = -\frac{2}{\pi}

Example 4: Continuity Involving Trigonometry and Limits

Determine the value of kk for which the function f(x)={1cos4x8x2,if x0k,if x=0f(x) = \begin{cases} \frac{1 - \cos 4x}{8x^2}, & \text{if } x \ne 0 \\ k, & \text{if } x = 0 \end{cases} is continuous at x=0x = 0.

Solution: Step 1: Continuity at x=0x=0 requires limx01cos4x8x2=k.\lim_{x \to 0} \frac{1-\cos 4x}{8x^2} = k.

Step 2: Use the identity 1cos2θ=2sin2θ1-\cos 2\theta = 2\sin^2 \theta with 2θ=4x2\theta=4x. Then, 1cos4x=2sin22x.1-\cos 4x = 2\sin^2 2x. So, limx01cos4x8x2=limx02sin22x8x2=limx0sin22x4x2.\lim_{x \to 0} \frac{1-\cos 4x}{8x^2} = \lim_{x \to 0} \frac{2\sin^2 2x}{8x^2} = \lim_{x \to 0} \frac{\sin^2 2x}{4x^2}.

Step 3: Rewrite the expression as (sin2x2x)2.\left(\frac{\sin 2x}{2x}\right)^2. Now use the standard limit limu0sinuu=1.\lim_{u \to 0} \frac{\sin u}{u}=1. Hence, limx0(sin2x2x)2=1.\lim_{x \to 0} \left(\frac{\sin 2x}{2x}\right)^2 = 1.

Step 4: Therefore, for continuity, k=1.k=1.

Answer: k=1k = 1

Example 5: Checking Differentiability

Prove that the function given by f(x)=x1,xRf(x) = |x - 1|, x \in \mathbb{R} is not differentiable at x=1x = 1.

Solution: Step 1: Find the left-hand derivative at x=1x=1. LHD=limh0f(1+h)f(1)h.LHD = \lim_{h \to 0^-} \frac{f(1+h)-f(1)}{h}. Now, f(1)=11=0.f(1)=|1-1|=0. For h<0h<0, we have 1+h1=h=h|1+h-1|=|h|=-h. Thus, LHD=limh0h0h=1.LHD = \lim_{h \to 0^-} \frac{-h-0}{h} = -1.

Step 2: Find the right-hand derivative at x=1x=1. RHD=limh0+f(1+h)f(1)h.RHD = \lim_{h \to 0^+} \frac{f(1+h)-f(1)}{h}. For h>0h>0, h=h|h|=h, so RHD=limh0+h0h=1.RHD = \lim_{h \to 0^+} \frac{h-0}{h}=1.

Step 3: Since LHDRHD,LHD \ne RHD, ff is not differentiable at x=1x=1.

Answer: Proved analytically.

Example 6: Differentiability of Greatest Integer Function

Show that the greatest integer function defined by f(x)=[x]f(x) = [x], 0<x<30 < x < 3 is not differentiable at x=1x = 1.

Solution: Step 1: Find the left-hand derivative. LHD=limh0f(1+h)f(1)h.LHD = \lim_{h \to 0^-} \frac{f(1+h)-f(1)}{h}. For h<0h<0, 1+h1+h is slightly less than 11, so [1+h]=0,[1+h]=0, and f(1)=[1]=1.f(1)=[1]=1. Therefore, LHD=limh001h=limh01h=+.LHD = \lim_{h \to 0^-} \frac{0-1}{h} = \lim_{h \to 0^-} \frac{-1}{h} = +\infty. So the left-hand derivative does not exist as a finite number.

Step 2: Find the right-hand derivative. For h>0h>0, 1+h1+h is slightly more than 11, so [1+h]=1.[1+h]=1. Thus, RHD=limh0+11h=0.RHD = \lim_{h \to 0^+} \frac{1-1}{h}=0.

Step 3: Since the left-hand derivative is not finite and is not equal to the right-hand derivative, the function is not differentiable at x=1x=1.

Answer: Proved.

Example 7: Basic Chain Rule

Differentiate sin(x2+5)\sin(x^2 + 5) with respect to xx.

Solution: Step 1: Let u=x2+5.u = x^2+5. Then the function becomes y=sinu.y = \sin u.

Step 2: Differentiate using chain rule: dydx=dydududx=cosu2x.\frac{dy}{dx} = \frac{dy}{du}\cdot \frac{du}{dx} = \cos u \cdot 2x.

Step 3: Substitute back u=x2+5u=x^2+5. dydx=2xcos(x2+5).\frac{dy}{dx} = 2x\cos(x^2+5).

Answer: 2xcos(x2+5)2x \cos(x^2 + 5)

Example 8: Chain Rule with Double Trigonometry

Differentiate cos(sinx)\cos(\sin x) with respect to xx.

Solution: Step 1: Let u=sinx.u = \sin x. Then, y=cosu.y = \cos u.

Step 2: Differentiate using chain rule: dydx=sinududx.\frac{dy}{dx} = -\sin u \cdot \frac{du}{dx}. Since dudx=cosx,\frac{du}{dx}=\cos x, we get dydx=sin(sinx)cosx.\frac{dy}{dx} = -\sin(\sin x)\cos x.

Answer: cosxsin(sinx)-\cos x \sin(\sin x)

Example 9: Combining Quotient and Chain Rules

Differentiate y=sin(ax+b)cos(cx+d)y = \frac{\sin(ax + b)}{\cos(cx + d)}.

Solution: Step 1: Let u=sin(ax+b),v=cos(cx+d).u = \sin(ax+b), \qquad v = \cos(cx+d). Then y=uv.y = \frac{u}{v}.

Step 2: Use the quotient rule: dydx=uvuvv2.\frac{dy}{dx} = \frac{u'v-uv'}{v^2}.

Step 3: Differentiate uu and vv by chain rule: u=acos(ax+b),u' = a\cos(ax+b), v=csin(cx+d).v' = -c\sin(cx+d).

Step 4: Substitute into the quotient rule: dydx=acos(ax+b)cos(cx+d)sin(ax+b)(csin(cx+d))cos2(cx+d).\frac{dy}{dx} = \frac{a\cos(ax+b)\cos(cx+d) - \sin(ax+b)(-c\sin(cx+d))}{\cos^2(cx+d)}.

Step 5: Simplify: dydx=acos(ax+b)cos(cx+d)+csin(ax+b)sin(cx+d)cos2(cx+d).\frac{dy}{dx} = \frac{a\cos(ax+b)\cos(cx+d) + c\sin(ax+b)\sin(cx+d)}{\cos^2(cx+d)}.

Answer: acos(ax+b)cos(cx+d)+csin(ax+b)sin(cx+d)cos2(cx+d)\frac{a \cos(ax + b) \cos(cx + d) + c \sin(ax + b) \sin(cx + d)}{\cos^2(cx + d)}

Example 10: Basic Implicit Differentiation

Find dydx\frac{dy}{dx} if 2x+3y=sinx2x + 3y = \sin x.

Solution: Step 1: Differentiate both sides with respect to xx: ddx(2x)+ddx(3y)=ddx(sinx).\frac{d}{dx}(2x)+\frac{d}{dx}(3y)=\frac{d}{dx}(\sin x).

Step 2: This gives 2+3dydx=cosx.2 + 3\frac{dy}{dx} = \cos x.

Step 3: Solve for dydx\frac{dy}{dx}: 3dydx=cosx2,3\frac{dy}{dx} = \cos x - 2, so dydx=cosx23.\frac{dy}{dx} = \frac{\cos x - 2}{3}.

Answer: cosx23\frac{\cos x - 2}{3}

Example 11: Advanced Implicit Differentiation with Product Rule

Find dydx\frac{dy}{dx} if sin2y+cos(xy)=π\sin^2 y + \cos(xy) = \pi.

Solution: Step 1: Differentiate both sides with respect to xx: ddx(sin2y)+ddx(cos(xy))=0.\frac{d}{dx}(\sin^2 y) + \frac{d}{dx}(\cos(xy)) = 0.

Step 2: Differentiate each term carefully. For sin2y\sin^2 y: ddx(sin2y)=2sinycosydydx=sin2ydydx.\frac{d}{dx}(\sin^2 y)=2\sin y\cos y\frac{dy}{dx}=\sin 2y\frac{dy}{dx}. For cos(xy)\cos(xy): ddx(cos(xy))=sin(xy)ddx(xy).\frac{d}{dx}(\cos(xy)) = -\sin(xy)\cdot \frac{d}{dx}(xy). Using the product rule, ddx(xy)=xdydx+y.\frac{d}{dx}(xy)=x\frac{dy}{dx}+y. So, ddx(cos(xy))=sin(xy)(xdydx+y).\frac{d}{dx}(\cos(xy)) = -\sin(xy)\left(x\frac{dy}{dx}+y\right).

Step 3: Substitute into the differentiated equation: sin2ydydxxsin(xy)dydxysin(xy)=0.\sin 2y\frac{dy}{dx} - x\sin(xy)\frac{dy}{dx} - y\sin(xy)=0.

Step 4: Collect terms containing dydx\frac{dy}{dx}: dydx[sin2yxsin(xy)]=ysin(xy).\frac{dy}{dx}[\sin 2y - x\sin(xy)] = y\sin(xy).

Step 5: Therefore, dydx=ysin(xy)sin2yxsin(xy).\frac{dy}{dx} = \frac{y\sin(xy)}{\sin 2y - x\sin(xy)}.

Answer: ysin(xy)sin(2y)xsin(xy)\frac{y\sin(xy)}{\sin(2y) - x\sin(xy)}

Example 12: Inverse Trigonometry Simplification

Find dydx\frac{dy}{dx} if y=tan1(sinx1+cosx)y = \tan^{-1} \left( \frac{\sin x}{1 + \cos x} \right).

Solution: Step 1: Use the half-angle identity sinx1+cosx=tanx2\frac{\sin x}{1+\cos x} = \tan\frac{x}{2} whenever the expression is defined. Thus, y=tan1(tanx2).y = \tan^{-1}\left(\tan\frac{x}{2}\right).

Step 2: Instead of directly replacing yy by x/2x/2 globally, differentiate using the chain rule with u=tanx2.u = \tan\frac{x}{2}. Then dydx=11+u2dudx.\frac{dy}{dx} = \frac{1}{1+u^2}\cdot \frac{du}{dx}.

Step 3: Compute uu': dudx=sec2x212.\frac{du}{dx} = \sec^2\frac{x}{2}\cdot \frac{1}{2}. Since 1+u2=1+tan2x2=sec2x2,1+u^2 = 1+\tan^2\frac{x}{2} = \sec^2\frac{x}{2}, we get dydx=1sec2(x/2)12sec2x2=12.\frac{dy}{dx} = \frac{1}{\sec^2(x/2)} \cdot \frac{1}{2}\sec^2\frac{x}{2} = \frac{1}{2}.

Answer: 12\frac{1}{2}

Example 13: Trigonometric Substitution (Sine)

Find dydx\frac{dy}{dx} if y=sin1(2x1+x2)y = \sin^{-1} \left( \frac{2x}{1 + x^2} \right).

Solution: Step 1: The expression 2x1+x2\frac{2x}{1+x^2} suggests the substitution x=tanθ.x = \tan \theta. Then θ=tan1x.\theta = \tan^{-1}x.

Step 2: Substitute into the expression: y=sin1(2tanθ1+tan2θ).y = \sin^{-1}\left(\frac{2\tan\theta}{1+\tan^2\theta}\right). Using sin2θ=2tanθ1+tan2θ,\sin 2\theta = \frac{2\tan\theta}{1+\tan^2\theta}, we get y=sin1(sin2θ).y = \sin^{-1}(\sin 2\theta).

Step 3: For the principal-value branch used in such standard problems, y=2θ=2tan1x.y = 2\theta = 2\tan^{-1}x.

Step 4: Differentiate: dydx=211+x2=21+x2.\frac{dy}{dx} = 2\cdot \frac{1}{1+x^2} = \frac{2}{1+x^2}.

Answer: 21+x2\frac{2}{1 + x^2}

Example 14: Trigonometric Substitution (Secant)

Find dydx\frac{dy}{dx} if y=sec1(12x21)y = \sec^{-1} \left( \frac{1}{2x^2 - 1} \right), 0<x<120 < x < \frac{1}{\sqrt{2}}.

Solution: Step 1: Notice that 2x212x^2-1 resembles the identity cos2θ=2cos2θ1.\cos 2\theta = 2\cos^2\theta - 1. Let x=cosθ.x = \cos\theta. Then θ=cos1x.\theta = \cos^{-1}x. Since 0<x<120<x<\frac{1}{\sqrt2}, we have θ(π4,π2)\theta \in \left(\frac{\pi}{4},\frac{\pi}{2}\right), so 2θ(π2,π)2\theta \in \left(\frac{\pi}{2},\pi\right), which lies in the principal range of sec1\sec^{-1}.

Step 2: Substitute: y=sec1(12cos2θ1)=sec1(1cos2θ)=sec1(sec2θ).y = \sec^{-1}\left(\frac{1}{2\cos^2\theta-1}\right)=\sec^{-1}\left(\frac{1}{\cos 2\theta}\right)=\sec^{-1}(\sec 2\theta). Hence, y=2θ=2cos1x.y=2\theta=2\cos^{-1}x.

Step 3: Differentiate: dydx=2ddx(cos1x)=2(11x2)=21x2.\frac{dy}{dx} = 2\cdot \frac{d}{dx}(\cos^{-1}x)=2\left(-\frac{1}{\sqrt{1-x^2}}\right)=-\frac{2}{\sqrt{1-x^2}}.

Answer: 21x2\frac{-2}{\sqrt{1 - x^2}}

Example 15: Exponential Chain Rule

Differentiate y=esin1xy = e^{\sin^{-1}x} with respect to xx.

Solution: Step 1: Let u=sin1x.u = \sin^{-1}x. Then y=eu.y=e^u.

Step 2: Apply the chain rule: dydx=eududx.\frac{dy}{dx} = e^u\cdot \frac{du}{dx}. Now, dudx=11x2.\frac{du}{dx}=\frac{1}{\sqrt{1-x^2}}.

Step 3: Substitute back: dydx=esin1x11x2.\frac{dy}{dx} = e^{\sin^{-1}x}\cdot \frac{1}{\sqrt{1-x^2}}.

Answer: esin1x1x2\frac{e^{\sin^{-1}x}}{\sqrt{1 - x^2}}

Example 16: Basic Logarithmic Differentiation

Differentiate y=xsinx,x>0y = x^{\sin x}, x > 0.

Solution: Step 1: Take natural logarithm on both sides: lny=ln(xsinx)=sinxlnx.\ln y = \ln(x^{\sin x}) = \sin x \ln x.

Step 2: Differentiate implicitly: 1ydydx=sinx1x+lnxcosx.\frac{1}{y}\frac{dy}{dx} = \sin x \cdot \frac{1}{x} + \ln x \cdot \cos x.

Step 3: Multiply by yy: dydx=y(sinxx+cosxlnx).\frac{dy}{dx} = y\left(\frac{\sin x}{x}+\cos x\ln x\right).

Step 4: Replace yy by xsinxx^{\sin x}: dydx=xsinx(sinxx+cosxlnx).\frac{dy}{dx} = x^{\sin x}\left(\frac{\sin x}{x}+\cos x\ln x\right).

Answer: xsinx[sinxx+cosxlnx]x^{\sin x} \left[ \frac{\sin x}{x} + \cos x \ln x \right]

Example 17: Logarithmic Differentiation with Sums

Find dydx\frac{dy}{dx} of y=xx2sinxy = x^x - 2^{\sin x}.

Solution: Step 1: Since the expression is a difference, do not take logarithm of the whole function. Instead write y=uv,y=u-v, where u=xx,v=2sinx.u=x^x, \qquad v=2^{\sin x}. Then, dydx=dudxdvdx.\frac{dy}{dx}=\frac{du}{dx}-\frac{dv}{dx}.

Step 2: Differentiate u=xxu=x^x using logarithmic differentiation. Take logs: lnu=xlnx.\ln u = x\ln x. Differentiate: 1ududx=1+lnx.\frac{1}{u}\frac{du}{dx} = 1+\ln x. So, dudx=u(1+lnx)=xx(1+lnx).\frac{du}{dx}=u(1+\ln x)=x^x(1+\ln x).

Step 3: Differentiate v=2sinxv=2^{\sin x}. Using ddx(af(x))=af(x)lnaf(x),\frac{d}{dx}(a^{f(x)})=a^{f(x)}\ln a \cdot f'(x), we get dvdx=2sinxln2cosx.\frac{dv}{dx}=2^{\sin x}\ln 2 \cdot \cos x.

Step 4: Subtract: dydx=xx(1+lnx)2sinxcosxln2.\frac{dy}{dx}=x^x(1+\ln x)-2^{\sin x}\cos x\ln 2.

Answer: xx(1+lnx)2sinxcosxln2x^x(1 + \ln x) - 2^{\sin x} \cos x \ln 2

Example 18: Implicit Equation with Variables in Exponents

Find dydx\frac{dy}{dx} if yx=xyy^x = x^y.

Solution: Step 1: Take logarithm on both sides: ln(yx)=ln(xy).\ln(y^x)=\ln(x^y). So, xlny=ylnx.x\ln y = y\ln x.

Step 2: Differentiate both sides with respect to xx: ddx(xlny)=ddx(ylnx).\frac{d}{dx}(x\ln y)=\frac{d}{dx}(y\ln x). Using the product rule, lny+x1ydydx=yx+lnxdydx.\ln y + x\cdot \frac{1}{y}\frac{dy}{dx} = \frac{y}{x} + \ln x\frac{dy}{dx}.

Step 3: Collect the dydx\frac{dy}{dx} terms: xydydxlnxdydx=yxlny.\frac{x}{y}\frac{dy}{dx} - \ln x\frac{dy}{dx} = \frac{y}{x} - \ln y.

Step 4: Factor out dydx\frac{dy}{dx}: dydx(xylnx)=yxlny.\frac{dy}{dx}\left(\frac{x}{y}-\ln x\right)=\frac{y}{x}-\ln y.

Step 5: Solve for dydx\frac{dy}{dx}: dydx=yxlnyxylnx.\frac{dy}{dx} = \frac{\frac{y}{x}-\ln y}{\frac{x}{y}-\ln x}. Multiplying numerator and denominator suitably, dydx=y(yxlny)x(xylnx).\frac{dy}{dx} = \frac{y(y-x\ln y)}{x(x-y\ln x)}.

Answer: y(yxlny)x(xylnx)\frac{y(y - x\ln y)}{x(x - y\ln x)}

Example 19: Infinite Series Logarithmic Differentiation

If y=sinx+sinx+sinx+...y = \sqrt{\sin x + \sqrt{\sin x + \sqrt{\sin x + ... \infty}}}, prove that dydx=cosx2y1\frac{dy}{dx} = \frac{\cos x}{2y - 1}.

Solution: Step 1: Since the radical repeats infinitely, the entire repeated part is equal to yy itself. Hence, y=sinx+y.y=\sqrt{\sin x + y}.

Step 2: Square both sides: y2=sinx+y.y^2 = \sin x + y.

Step 3: Differentiate implicitly: 2ydydx=cosx+dydx.2y\frac{dy}{dx} = \cos x + \frac{dy}{dx}.

Step 4: Bring the derivative terms together: 2ydydxdydx=cosx.2y\frac{dy}{dx} - \frac{dy}{dx} = \cos x.

Step 5: Factor out dydx\frac{dy}{dx}: dydx(2y1)=cosx.\frac{dy}{dx}(2y-1)=\cos x. Therefore, dydx=cosx2y1.\frac{dy}{dx}=\frac{\cos x}{2y-1}.

Answer: Proved.

Example 20: Basic Parametric Differentiation

Find dydx\frac{dy}{dx}, if x=at2x = at^2 and y=2aty = 2at.

Solution: Step 1: Differentiate xx and yy with respect to tt: dxdt=2at,dydt=2a.\frac{dx}{dt}=2at, \qquad \frac{dy}{dt}=2a.

Step 2: Use the parametric formula: dydx=dy/dtdx/dt=2a2at=1t.\frac{dy}{dx}=\frac{dy/dt}{dx/dt}=\frac{2a}{2at} = \frac{1}{t}.

Answer: 1t\frac{1}{t}

Example 21: Parametric Differentiation of a Cycloid

Find dydx\frac{dy}{dx} if x=a(θsinθ)x = a(\theta - \sin\theta) and y=a(1cosθ)y = a(1 - \cos\theta).

Solution: Step 1: Differentiate with respect to θ\theta: dxdθ=a(1cosθ),dydθ=asinθ.\frac{dx}{d\theta}=a(1-\cos\theta), \qquad \frac{dy}{d\theta}=a\sin\theta.

Step 2: Therefore, dydx=asinθa(1cosθ)=sinθ1cosθ.\frac{dy}{dx}=\frac{a\sin\theta}{a(1-\cos\theta)} = \frac{\sin\theta}{1-\cos\theta}.

Step 3: Simplify using half-angle identities: sinθ=2sinθ2cosθ2,\sin\theta = 2\sin\frac{\theta}{2}\cos\frac{\theta}{2}, 1cosθ=2sin2θ2.1-\cos\theta = 2\sin^2\frac{\theta}{2}. Hence, dydx=2sin(θ/2)cos(θ/2)2sin2(θ/2)=cotθ2.\frac{dy}{dx}=\frac{2\sin(\theta/2)\cos(\theta/2)}{2\sin^2(\theta/2)} = \cot\frac{\theta}{2}.

Answer: cot(θ/2)\cot(\theta/2)

Example 22: Parametric Functions Identity Trick

If x=asin1tx = \sqrt{a^{\sin^{-1}t}} and y=acos1ty = \sqrt{a^{\cos^{-1}t}}, show that dydx=yx\frac{dy}{dx} = -\frac{y}{x}.

Solution: Step 1: Square both equations: x2=asin1t,y2=acos1t.x^2 = a^{\sin^{-1}t}, \qquad y^2 = a^{\cos^{-1}t}.

Step 2: Multiply them: x2y2=asin1t+cos1t.x^2y^2 = a^{\sin^{-1}t + \cos^{-1}t}. Using the identity sin1t+cos1t=π2,\sin^{-1}t + \cos^{-1}t = \frac{\pi}{2}, we get x2y2=aπ/2,x^2y^2 = a^{\pi/2}, which is a constant.

Step 3: Differentiate implicitly with respect to xx: ddx(x2y2)=0.\frac{d}{dx}(x^2y^2)=0. Using the product rule, 2xy2+x22ydydx=0.2xy^2 + x^2\cdot 2y\frac{dy}{dx}=0.

Step 4: Solve for dydx\frac{dy}{dx}: 2x2ydydx=2xy2,2x^2y\frac{dy}{dx} = -2xy^2, so dydx=yx.\frac{dy}{dx} = -\frac{y}{x}.

Answer: Proved.

Example 23: Second Order Derivative of a Polynomial

Find d2ydx2\frac{d^2y}{dx^2} for y=x3+tanxy = x^3 + \tan x.

Solution: Step 1: First derivative: dydx=3x2+sec2x.\frac{dy}{dx}=3x^2+\sec^2x.

Step 2: Differentiate again: d2ydx2=6x+ddx(sec2x).\frac{d^2y}{dx^2}=6x+\frac{d}{dx}(\sec^2x). Now, ddx(sec2x)=2secx(secxtanx)=2sec2xtanx.\frac{d}{dx}(\sec^2x)=2\sec x(\sec x\tan x)=2\sec^2x\tan x. So, d2ydx2=6x+2sec2xtanx.\frac{d^2y}{dx^2}=6x+2\sec^2x\tan x.

Answer: 6x+2sec2xtanx6x + 2\sec^2 x \tan x

Example 24: Second Order Derivative of Parametric Functions

Find d2ydx2\frac{d^2y}{dx^2} if x=acosθx = a\cos\theta and y=bsinθy = b\sin\theta.

Solution: Step 1: First derivatives with respect to θ\theta are dxdθ=asinθ,dydθ=bcosθ.\frac{dx}{d\theta}=-a\sin\theta, \qquad \frac{dy}{d\theta}=b\cos\theta. Hence, dydx=bcosθasinθ=bacotθ.\frac{dy}{dx}=\frac{b\cos\theta}{-a\sin\theta}=-\frac{b}{a}\cot\theta.

Step 2: Differentiate dydx\frac{dy}{dx} with respect to θ\theta: ddθ(bacotθ)=bacsc2θ.\frac{d}{d\theta}\left(-\frac{b}{a}\cot\theta\right)=\frac{b}{a}\csc^2\theta.

Step 3: Divide by dx/dθdx/d\theta: d2ydx2=bacsc2θasinθ=ba2csc3θ.\frac{d^2y}{dx^2} = \frac{\frac{b}{a}\csc^2\theta}{-a\sin\theta} = -\frac{b}{a^2}\csc^3\theta.

Answer: ba2csc3θ-\frac{b}{a^2}\csc^3\theta

Example 25: Proving a Differential Equation (Trigonometric)

If y=3cos(logx)+4sin(logx)y = 3\cos(\log x) + 4\sin(\log x), show that x2y2+xy1+y=0x^2 y_2 + xy_1 + y = 0.

Solution: Step 1: First derivative: y1=3sin(logx)1x+4cos(logx)1x=3sin(logx)+4cos(logx)x.y_1 = -3\sin(\log x)\cdot \frac{1}{x} + 4\cos(\log x)\cdot \frac{1}{x} = \frac{-3\sin(\log x)+4\cos(\log x)}{x}.

Step 2: Multiply both sides by xx: xy1=3sin(logx)+4cos(logx).xy_1 = -3\sin(\log x)+4\cos(\log x).

Step 3: Differentiate again: ddx(xy1)=ddx[3sin(logx)+4cos(logx)].\frac{d}{dx}(xy_1)=\frac{d}{dx}\left[-3\sin(\log x)+4\cos(\log x)\right]. The left side gives xy2+y1.xy_2 + y_1. The right side becomes 3cos(logx)1x4sin(logx)1x=1x[3cos(logx)+4sin(logx)].-3\cos(\log x)\cdot \frac{1}{x} - 4\sin(\log x)\cdot \frac{1}{x} = -\frac{1}{x}\big[3\cos(\log x)+4\sin(\log x)\big]. But the bracket is exactly yy. So, xy2+y1=yx.xy_2 + y_1 = -\frac{y}{x}.

Step 4: Multiply by xx: x2y2+xy1+y=0.x^2y_2 + xy_1 + y = 0.

Answer: Proved.

Example 26: Proving a Differential Equation (Exponential)

If y=Aemx+Benxy = Ae^{mx} + Be^{nx}, show that d2ydx2(m+n)dydx+mny=0\frac{d^2y}{dx^2} - (m+n)\frac{dy}{dx} + mny = 0.

Solution: Step 1: First derivative: y=Amemx+Bnenx.y' = Ame^{mx} + Bne^{nx}.

Step 2: Second derivative: y=Am2emx+Bn2enx.y'' = Am^2e^{mx} + Bn^2e^{nx}.

Step 3: Substitute into the required expression: y(m+n)y+mny.y''-(m+n)y'+mny. This becomes Am2emx+Bn2enx(m+n)(Amemx+Bnenx)+mn(Aemx+Benx).Am^2e^{mx}+Bn^2e^{nx}-(m+n)(Ame^{mx}+Bne^{nx})+mn(Ae^{mx}+Be^{nx}).

Step 4: Group coefficients of emxe^{mx} and enxe^{nx}: For emxe^{mx}, coefficient is Am2Am(m+n)+Amn=Am2Am2Amn+Amn=0.Am^2-Am(m+n)+Amn = Am^2-Am^2-Amn+Amn = 0. For enxe^{nx}, coefficient is Bn2Bn(m+n)+Bmn=Bn2BmnBn2+Bmn=0.Bn^2-Bn(m+n)+Bmn = Bn^2-Bmn-Bn^2+Bmn=0. Hence the whole expression is 00.

Answer: Proved.

JEE Main Standard

Example 27: Differentiability of Piecewise Functions

Let f(x)=[x2]sin(πx)f(x) = [x^2] \sin(\pi x), where [][\cdot] is the greatest integer function. Discuss the differentiability of f(x)f(x) at x=1x=1.

Solution: Step 1: Study the function near x=1x=1. If x1x \to 1^-, then x2<1x^2<1 and very close to 11, so [x2]=0.[x^2]=0. Hence, f(x)=0sin(πx)=0.f(x)=0\cdot \sin(\pi x)=0. If x1+x \to 1^+ and xx is close to 11, then 1<x2<21<x^2<2, so [x2]=1.[x^2]=1. Hence, f(x)=sin(πx).f(x)=\sin(\pi x). Also, f(1)=[1]sinπ=10=0.f(1)=[1]\sin \pi = 1\cdot 0=0.

Step 2: Left-hand derivative: For h<0h<0, f(1+h)=0f(1+h)=0. Therefore, LHD=limh000h=0.LHD = \lim_{h \to 0^-} \frac{0-0}{h}=0.

Step 3: Right-hand derivative: For h>0h>0, f(1+h)=sin(π(1+h))f(1+h)=\sin(\pi(1+h)). So, RHD=limh0+sin(π+πh)0h=limh0+sin(πh)h.RHD = \lim_{h \to 0^+} \frac{\sin(\pi+\pi h)-0}{h} = \lim_{h \to 0^+} \frac{-\sin(\pi h)}{h}. Multiply and divide by π\pi: RHD=πlimh0+sin(πh)πh=π.RHD = -\pi \lim_{h \to 0^+} \frac{\sin(\pi h)}{\pi h} = -\pi.

Step 4: Since LHDRHD,LHD \ne RHD, f(x)f(x) is not differentiable at x=1x=1.

Answer: f(x)f(x) is not differentiable at x=1x=1.

Example 28: Differentiating a Function with Respect to Another Function

Differentiate u(x)=tan1(1+x21x)u(x) = \tan^{-1}\left(\frac{\sqrt{1+x^2}-1}{x}\right) with respect to v(x)=tan1xv(x) = \tan^{-1} x.

Solution: Step 1: Let x=tanθ,x = \tan\theta, so that θ=tan1x=v.\theta = \tan^{-1}x = v. Also, 1+x2=1+tan2θ=secθ.\sqrt{1+x^2}=\sqrt{1+\tan^2\theta}=\sec\theta. Thus, u=tan1(secθ1tanθ).u = \tan^{-1}\left(\frac{\sec\theta-1}{\tan\theta}\right).

Step 2: Simplify the inside expression: secθ1tanθ=1cosθ1sinθcosθ=1cosθsinθ.\frac{\sec\theta-1}{\tan\theta} = \frac{\frac{1}{\cos\theta}-1}{\frac{\sin\theta}{\cos\theta}} = \frac{1-\cos\theta}{\sin\theta}. Using half-angle identities, 1cosθsinθ=tanθ2.\frac{1-\cos\theta}{\sin\theta} = \tan\frac{\theta}{2}. Hence, u=tan1(tanθ2)=θ2u = \tan^{-1}\left(\tan\frac{\theta}{2}\right)=\frac{\theta}{2} for the principal-value branch.

Step 3: Since v=θv=\theta, we have u=v2.u = \frac{v}{2}. Therefore, dudv=12.\frac{du}{dv} = \frac{1}{2}.

Answer: 12\frac{1}{2}

Example 29: Infinite Exponential Series

If x=ey+ey+x = e^{y + e^{y + \dots \infty}}, find dydx\frac{dy}{dx}.

Solution: Step 1: The repeated infinite exponent after the first y+y+ is again equal to xx. So, x=ey+x.x = e^{y+x}.

Step 2: Take logarithm on both sides: lnx=y+x.\ln x = y+x.

Step 3: Differentiate with respect to xx: 1x=dydx+1.\frac{1}{x} = \frac{dy}{dx} + 1.

Step 4: Solve for dydx\frac{dy}{dx}: dydx=1x1=1xx.\frac{dy}{dx} = \frac{1}{x}-1 = \frac{1-x}{x}.

Answer: 1xx\frac{1 - x}{x}

Example 30: Finding Value of Second Derivative Implicitly

Let y(x)y(x) be defined implicitly by the equation ey+xy=ee^y + xy = e. Find the value of y(0)y''(0).

Solution: Step 1: Find y(0)y(0) by substituting x=0x=0: ey(0)+0=e    ey(0)=e    y(0)=1.e^{y(0)} + 0 = e \implies e^{y(0)}=e \implies y(0)=1.

Step 2: Differentiate the given equation: ddx(ey)+ddx(xy)=0.\frac{d}{dx}(e^y) + \frac{d}{dx}(xy)=0. This gives eyy+y+xy=0.e^y y' + y + xy' = 0.

Step 3: Put x=0x=0, y=1y=1: ey(0)+1=0    y(0)=1e.e\,y'(0) + 1 = 0 \implies y'(0) = -\frac{1}{e}.

Step 4: Differentiate the first-derivative equation again: ddx(eyy+y+xy)=0.\frac{d}{dx}(e^y y' + y + xy') = 0. Now, ddx(eyy)=ey(y)2+eyy\frac{d}{dx}(e^y y') = e^y(y')^2 + e^y y'' by the product rule. Also, ddx(y)=y,ddx(xy)=y+xy.\frac{d}{dx}(y)=y', \qquad \frac{d}{dx}(xy')=y' + xy''. So, ey(y)2+eyy+2y+xy=0.e^y(y')^2 + e^y y'' + 2y' + xy'' = 0.

Step 5: Substitute x=0x=0, y=1y=1, y=1/ey'=-1/e: e(1e2)+ey(0)+2(1e)+0=0.e\left(\frac{1}{e^2}\right) + e\,y''(0) + 2\left(-\frac{1}{e}\right) + 0 = 0. So, 1e+ey(0)2e=0\frac{1}{e} + e y''(0) - \frac{2}{e} = 0 ey(0)1e=0e y''(0) - \frac{1}{e}=0 ey(0)=1ee y''(0)=\frac{1}{e} y(0)=1e2.y''(0)=\frac{1}{e^2}.

Answer: 1e2\frac{1}{e^2}

Example 31: Evaluating Continuity Limit

If the function f(x)=2cosx1cotx1f(x) = \frac{\sqrt{2}\cos x - 1}{\cot x - 1}, xπ4x \neq \frac{\pi}{4} is continuous at x=π4x = \frac{\pi}{4}, then find the value of f(π4)f\left(\frac{\pi}{4}\right).

Solution: Step 1: Since the function is continuous at x=π4x=\frac{\pi}{4}, f(π4)=limxπ/42cosx1cotx1.f\left(\frac{\pi}{4}\right)=\lim_{x \to \pi/4} \frac{\sqrt2\cos x -1}{\cot x -1}. Substituting directly gives the indeterminate form 0/00/0.

Step 2: Rewrite cotx\cot x as cosxsinx\frac{\cos x}{\sin x}: 2cosx1cosxsinx1=(2cosx1)sinxcosxsinx.\frac{\sqrt2\cos x -1}{\frac{\cos x}{\sin x}-1} = \frac{(\sqrt2\cos x -1)\sin x}{\cos x - \sin x}.

Step 3: Multiply numerator and denominator by 2cosx+1\sqrt2\cos x + 1: (2cosx1)(2cosx+1)sinx(cosxsinx)(2cosx+1).\frac{(\sqrt2\cos x -1)(\sqrt2\cos x +1)\sin x}{(\cos x - \sin x)(\sqrt2\cos x +1)}. The numerator becomes 2cos2x1=cos2x.2\cos^2x -1 = \cos 2x. So we have cos2xsinx(cosxsinx)(2cosx+1).\frac{\cos 2x\,\sin x}{(\cos x - \sin x)(\sqrt2\cos x +1)}.

Step 4: Use cos2x=(cosxsinx)(cosx+sinx).\cos 2x = (\cos x - \sin x)(\cos x + \sin x). Then cancel cosxsinx\cos x - \sin x: limxπ/4(cosx+sinx)sinx2cosx+1.\lim_{x \to \pi/4} \frac{(\cos x + \sin x)\sin x}{\sqrt2\cos x +1}.

Step 5: Substitute x=π4x=\frac{\pi}{4}: (12+12)12212+1=2122=12.\frac{\left(\frac{1}{\sqrt2}+\frac{1}{\sqrt2}\right)\cdot \frac{1}{\sqrt2}}{\sqrt2\cdot \frac{1}{\sqrt2}+1} = \frac{\sqrt2\cdot \frac{1}{\sqrt2}}{2} = \frac{1}{2}.

Answer: 12\frac{1}{2}

Example 32: Simplifying Expressions Before Differentiation

If ddx(1+x2+x41+x+x2)=ax+b\frac{d}{dx}\left( \frac{1 + x^2 + x^4}{1 + x + x^2} \right) = ax + b, find the values of aa and bb.

Solution: Step 1: Factor the numerator instead of using the quotient rule directly. Observe: 1+x2+x4=x4+x2+1=(x2+x+1)(x2x+1).1+x^2+x^4 = x^4+x^2+1 = (x^2+x+1)(x^2-x+1). This can be checked by expansion.

Step 2: Therefore, 1+x2+x41+x+x2=(x2+x+1)(x2x+1)x2+x+1=x2x+1.\frac{1+x^2+x^4}{1+x+x^2} = \frac{(x^2+x+1)(x^2-x+1)}{x^2+x+1} = x^2-x+1.

Step 3: Differentiate the simplified expression: ddx(x2x+1)=2x1.\frac{d}{dx}(x^2-x+1)=2x-1.

Step 4: Compare with ax+bax+b: ax+b=2x1.ax+b = 2x-1. Hence, a=2,b=1.a=2, \qquad b=-1.

Answer: a=2a = 2, b=1b = -1