Docsity

This documents covers the calculus for computer science topics, Lecture notes of Engineering Mathematics

Toggle sidebar
bg1
Unit III Practice Questions
Calculus for Computer Science
I B.Tech I Semester
1. Rolles Theorem
Statement: If a function f(x) is continuous on [a, b], differentiable on (a, b) and f(a) =
f(b), then there exists at least one cโˆˆ(a, b) such that
f0(c) = 0.
(i) f(x) = x+1
xon ๎˜”1
2,2๎˜•
Step 1: The function is continuous and differentiable for x6= 0. Since 0 /โˆˆ๎˜”1
2,2๎˜•, the
conditions are satisfied.
Step 2:
f๎˜’1
2๎˜“=1
2+ 2 = 5
2, f(2) = 2 + 1
2=5
2
Step 3:
f0(x)=1โˆ’1
x2
Step 4:
1โˆ’1
c2= 0 โ‡’c2= 1 โ‡’c= 1
c= 1
(ii)f(x) = x3
3โˆ’3xon [โˆ’3,3]
Verify Rolles Theorem for the function
f(x) = x3
3โˆ’3xon [โˆ’3,3].
Step 1: Continuity
The given function
f(x) = x3
3โˆ’3x
is a polynomial. Hence, it is continuous on the closed interval [โˆ’3,3].
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e

Partial preview of the text

Download This documents covers the calculus for computer science topics and more Lecture notes Engineering Mathematics in PDF only on Docsity!

Unit III Practice Questions

Calculus for Computer Science

I B.Tech I Semester

1. Rolles Theorem

Statement: If a function f (x) is continuous on [a, b], differentiable on (a, b) and f (a) = f (b), then there exists at least one c โˆˆ (a, b) such that

f โ€ฒ(c) = 0.

(i) f (x) = x +

x

on

[

]

Step 1: The function is continuous and differentiable for x 6 = 0. Since 0 โˆˆ/

[

]

, the

conditions are satisfied.

Step 2:

f

, f (2) = 2 +

Step 3:

f โ€ฒ(x) = 1 โˆ’

x^2

Step 4:

1 โˆ’

c^2 = 0 โ‡’ c^2 = 1 โ‡’ c = 1

c = 1

(ii)f (x) =

x^3

โˆ’ 3 x on [โˆ’ 3 , 3]

Verify Rolles Theorem for the function

f (x) = x^3 3 โˆ’ 3 x on [โˆ’ 3 , 3].

Step 1: Continuity

The given function

f (x) = x^3 3 โˆ’ 3 x

is a polynomial. Hence, it is continuous on the closed interval [โˆ’ 3 , 3].

Step 2: Differentiability

Since f (x) is a polynomial, it is differentiable on the open interval (โˆ’ 3 , 3).

Step 3: Verify the end point values

f (โˆ’3) =

(โˆ’3)^3

f (3) =

(3)^3

Thus, f (โˆ’3) = f (3).

Step 4: Find the derivative

f โ€ฒ(x) = x^2 โˆ’ 3

Step 5: Solve f โ€ฒ(c) = 0

x^2 โˆ’ 3 = 0 โ‡’ x^2 = 3 โ‡’ x = ยฑ

Step 6: Verification

Since โˆ’

all the hypotheses of Rolles Theorem are satisfied.

Rolles Theorem is verified for c = ยฑ

2. Lagranges Mean Value Theorem

Statement: If f (x) is continuous on [a, b] and differentiable on (a, b), then there exists c โˆˆ (a, b) such that

f โ€ฒ(c) = f (b) โˆ’ f (a) b โˆ’ a

(i) f (x) = x^3 โˆ’ 2 x on [โˆ’ 1 , 2]

f (2) = 4, f (โˆ’1) = 1 f (2) โˆ’ f (โˆ’1) 2 โˆ’ (โˆ’1)

f โ€ฒ(x) = 3x^2 โˆ’ 2 3 c^2 โˆ’ 2 = 1 โ‡’ c^2 = 1

c = ยฑ 1

Case 2: 0 < c < 2 2 c = 3 โ‡’ c =

Both values lie in the interval (โˆ’ 2 , 2).

Conclusion

The values of c satisfying Lagranges Mean Value Theorem are

c = โˆ’ 1 and c =

3. Mean Value Theorem Conditions

Problem

For what values of a, m and b does the function

f (x) =

3 , x = 0, โˆ’x^2 + 3x + a, 0 < x < 1 , mx + b, 1 โ‰ค x โ‰ค 2 ,

satisfy the hypotheses of the Mean Value Theorem on the interval [0, 2]?

Solution

For the Mean Value Theorem to hold on [0, 2], the function must be:

  1. continuous on [0, 2],
  2. differentiable on (0, 2).

Step 1: Continuity

At x = 0:

lim xโ†’ 0 +^ f (x) = lim xโ†’ 0 + (โˆ’x^2 + 3x + a) = a.

Since f (0) = 3, continuity at x = 0 requires

a = 3.

At x = 1:

lim xโ†’ 1 โˆ’^ f (x) = โˆ’(1)^2 + 3(1) + a = 2 + a.

f (1) = m(1) + b = m + b.

Continuity at x = 1 gives 2 + a = m + b.

Using a = 3, m + b = 5. (1)

Step 2: Differentiability

At x = 1:

Derivative for 0 < x < 1: f โ€ฒ(x) = โˆ’ 2 x + 3.

lim xโ†’ 1 โˆ’^ f โ€ฒ(x) = โˆ’2(1) + 3 = 1.

Derivative for 1 < x < 2: f โ€ฒ(x) = m.

Differentiability at x = 1 requires m = 1. (2)

Step 3: Find b

Substitute m = 1 into equation (1):

1 + b = 5 โ‡’ b = 4.

Conclusion

The function satisfies the hypotheses of the Mean Value Theorem on [0, 2] for

a = 3, m = 1, b = 4.

4. Show that | cos x โˆ’ 1 | โ‰ค |x| for all x

Proof:

Let f (t) = cos t.

6. Cauchys Mean Value Theorem

State Cauchys Mean Value Theorem

If two functions f (x) and g(x) are continuous on the closed interval [a, b] and differentiable on the open interval (a, b), and if gโ€ฒ(x) 6 = 0 for all x โˆˆ (a, b), then there exists at least one c โˆˆ (a, b) such that f โ€ฒ(c) gโ€ฒ(c)

f (b) โˆ’ f (a) g(b) โˆ’ g(a)

(i) f (x) = x, g(x) = x^2 in (โˆ’ 2 , 0)

Step 1: Derivatives f โ€ฒ(x) = 1, gโ€ฒ(x) = 2x.

Step 2: Evaluate end values

f (0) โˆ’ f (โˆ’2) = 0 โˆ’ (โˆ’2) = 2,

g(0) โˆ’ g(โˆ’2) = 0 โˆ’ 4 = โˆ’ 4.

Step 3: Apply Cauchys MVT

1 2 c

2 c = โˆ’ 2 โ‡’ c = โˆ’ 1.

c = โˆ’ 1

(ii) f (x) =

x^3

โˆ’ 4 x, g(x) = x^2 in (0, 3)

Step 1: Derivatives f โ€ฒ(x) = x^2 โˆ’ 4 , gโ€ฒ(x) = 2x.

Step 2: Evaluate end values

f (3) โˆ’ f (0) =

g(3) โˆ’ g(0) = 9.

Step 3: Apply Cauchys MVT

c^2 โˆ’ 4 2 c

3(c^2 โˆ’ 4) = โˆ’ 2 c โ‡’ 3 c^2 + 2c โˆ’ 12 = 0.

c =

Since c โˆˆ (0, 3),

c =

(iii) f (x) = ex, g(x) = eโˆ’x^ in (a, b)

Step 1: Derivatives f โ€ฒ(x) = ex, gโ€ฒ(x) = โˆ’eโˆ’x.

Step 2: Apply Cauchys MVT

ec โˆ’eโˆ’c^

eb^ โˆ’ ea eโˆ’b^ โˆ’ eโˆ’a^

Simplifying, โˆ’e^2 c^ = โˆ’ea+b.

e^2 c^ = ea+b^ โ‡’ 2 c = a + b.

c = a + b 2

7. Limits

Evaluate the following limits using Indeterminate Forms and LH-

pitals Rule

(i) lim

tโ†’ 0

sin 5t

2 t

As t โ†’ 0, sin 5t โ†’ 0 , 2 t โ†’ 0 ,

which is an indeterminate form 00.

Applying LHpitals Rule,

lim tโ†’ 0

sin 5t 2 t

= lim tโ†’ 0

5 cos 5t 2

(iv) lim

xโ†’โˆž

(ln x)

(^1) x

Let y = (ln x)^1 /x.

Taking logarithm,

ln y = ln(ln x) x

As x โ†’ โˆž, ln(ln x) โ†’ โˆž, x โ†’ โˆž,

giving the indeterminate form โˆžโˆž.

Applying LHpitals Rule,

xlimโ†’โˆž

ln(ln x) x = lim xโ†’โˆž

1 x ln x 1 = lim xโ†’โˆž

x ln x

Hence, ln y โ†’ 0 โ‡’ y โ†’ e^0 = 1.

lim xโ†’โˆž (ln x)^1 /x^ = 1

โ€”

8. Evaluate the following limits

(i) lim

xโ†’ 0 +^

xx

Let y = xx.

Taking logarithm, ln y = x ln x.

As x โ†’ 0 +,

x ln x = ln x 1 /x

which is of the indeterminate form โˆ’โˆžโˆž.

Applying LHpitals Rule,

lim xโ†’ 0 +

ln x 1 /x = lim xโ†’ 0 +

1 x โˆ’ (^) x^12 = lim xโ†’ 0 + (โˆ’x) = 0.

Hence, ln y โ†’ 0 โ‡’ y โ†’ e^0 = 1.

lim xโ†’ 0 +^ xx^ = 1

โ€”

(ii) lim

xโ†’โˆž

(1 + 2x)

2 ln^1 x

Let y = (1 + 2x) 2 ln^1 x .

Taking logarithm,

ln y = ln(1 + 2x) 2 ln x

As x โ†’ โˆž, ln(1 + 2x) โ†’ โˆž, ln x โ†’ โˆž,

giving the indeterminate form โˆžโˆž.

Applying LHpitals Rule,

lim xโ†’โˆž

ln(1 + 2x) 2 ln x

= lim xโ†’โˆž

2 1+2x 2 x

= lim xโ†’โˆž

x 1 + 2x

Hence,

ln y โ†’

โ‡’ y โ†’ e^1 /^2.

x^ limโ†’โˆž(1 + 2x)^

2 ln^1 x

e

โ€”

(iii) lim

xโ†’ 0

(ex^ + x)

(^1) x

Let y = (ex^ + x)^1 /x.

Taking logarithm,

ln y = ln(ex^ + x) x

As x โ†’ 0, ln(ex^ + x) โ†’ 0 , x โ†’ 0 ,

which is an indeterminate form 00.

Applying LHpitals Rule,

lim xโ†’ 0 ln(ex^ + x) x = lim xโ†’ 0

ex+ ex+x 1

Given f (x) = sin x,

f โ€ฒ(x) = cos x, f โ€ฒโ€ฒ(x) = โˆ’ sin x, f (iii)(x) = โˆ’ cos x, f (iv)(x) = sin x

At a = ฯ€ 4

f (a) =

, f โ€ฒ(a) =

, f โ€ฒโ€ฒ(a) = โˆ’

, f (iii)(a) = โˆ’

, f (iv)(a) =

Substituting,

sin x =

(x โˆ’ ฯ€ 4 ) โˆ’

(x โˆ’ ฯ€ 4 )^2 โˆ’

(x โˆ’ ฯ€ 4 )^3 +

(x โˆ’ ฯ€ 4 )^4

(ii) f (x) =

1 + x about x = 0

Taylor series about x = 0:

f (x) = f (0) + f โ€ฒ(0)x + f โ€ฒโ€ฒ(0) 2!

x^2 + f (iii)(0) 3!

x^3 + f (iv)(0) 4!

x^4

Given f (x) = (1 + x)^1 /^2 ,

f โ€ฒ(x) =

(1 + x)โˆ’^1 /^2

f โ€ฒโ€ฒ(x) = โˆ’

(1 + x)โˆ’^3 /^2

f (iii)(x) =

(1 + x)โˆ’^5 /^2

f (iv)(x) = โˆ’

(1 + x)โˆ’^7 /^2

At x = 0,

f (0) = 1, f โ€ฒ(0) =

, f โ€ฒโ€ฒ(0) = โˆ’

, f (iii)(0) =

, f (iv)(0) = โˆ’

Substituting, โˆš 1 + x = 1 + x 2

x^2 8

x^3 16

5 x^4 128

โ€”

10. f (x) = tan x about a =

Taylor series:

f (x) = f (a) + f โ€ฒ(a)(x โˆ’ a) +

f โ€ฒโ€ฒ(a) 2! (x โˆ’ a)^2 +

f (iii)(a) 3! (x โˆ’ a)^3 +

f (iv)(a) 4! (x โˆ’ a)^4

Given f (x) = tan x, f โ€ฒ(x) = sec^2 x f โ€ฒโ€ฒ(x) = 2 sec^2 x tan x f (iii)(x) = 2 sec^2 x(1 + 3 tan^2 x) f (iv)(x) = 16 tan x sec^4 x + 8 tan^3 x sec^2 x

At a = ฯ€ 4

f (a) = 1, f โ€ฒ(a) = 2, f โ€ฒโ€ฒ(a) = 4, f (iii)(a) = 16, f (iv)(a) = 80

Substituting,

tan x = 1 + 2(x โˆ’ ฯ€ 4 ) + 2(x โˆ’ ฯ€ 4 )^2 +

(x โˆ’ ฯ€ 4 )^3 +

(x โˆ’ ฯ€ 4 )^4

11. Expand xex^ by Maclaurin Series

Maclaurin series:

f (x) = f (0) + f โ€ฒ(0)x + f โ€ฒโ€ฒ(0) 2! x^2 + f (iii)(0) 3! x^3 + f (iv)(0) 4! x^4

Given f (x) = xex,

f (0) = 0, f โ€ฒ(x) = ex^ + xex, f โ€ฒโ€ฒ(x) = 2ex^ + xex f (iii)(x) = 3ex^ + xex, f (iv)(x) = 4ex^ + xex

At x = 0, f โ€ฒ(0) = 1, f โ€ฒโ€ฒ(0) = 2, f (iii)(0) = 3, f (iv)(0) = 4

Substituting,

xex^ = x + x^2 + x^3 2

x^4 6

โ€”

f โ€ฒโ€ฒ(0) = 4 f (iii)(0) = โˆ’ 16 f (iv)(0) = 96

Step 3: Substitute into Maclaurin series

x ln(1 + 2x) = 0 + 0 +

x^2 +

x^3 +

x^4 = 2x^2 โˆ’ 2 x^3 + 4x^4

x ln(1 + 2x) = 2x^2 โˆ’ 2 x^3 + 4x^4

โ€”

14. Expand f (x) = x cos(ฯ€x) about x = 0

Using the Maclaurin series:

f (x) = f (0) + f โ€ฒ(0)x + f โ€ฒโ€ฒ(0) 2! x^2 + f (iii)(0) 3! x^3 + f (iv)(0) 4! x^4

Given f (x) = x cos(ฯ€x)

Step 1: Compute derivatives

f โ€ฒ(x) = cos(ฯ€x) โˆ’ ฯ€x sin(ฯ€x)

f โ€ฒโ€ฒ(x) = โˆ’ 2 ฯ€ sin(ฯ€x) โˆ’ ฯ€^2 x cos(ฯ€x)

f (iii)(x) = โˆ’ 3 ฯ€^2 cos(ฯ€x) + ฯ€^3 x sin(ฯ€x)

f (iv)(x) = 4ฯ€^3 sin(ฯ€x) + ฯ€^4 x cos(ฯ€x)

Step 2: Evaluate derivatives at x = 0

f (0) = 0 f โ€ฒ(0) = 1 f โ€ฒโ€ฒ(0) = 0 f (iii)(0) = โˆ’ 3 ฯ€^2 f (iv)(0) = 0

Step 3: Substitute into Maclaurin series

x cos(ฯ€x) = 0 + 1 ยท x + 0 + โˆ’ 3 ฯ€^2 3! x^3 + 0

= x โˆ’ ฯ€^2 2 x^3

x cos(ฯ€x) = x โˆ’ ฯ€^2 2

x^3

โ€”

15. Polar Coordinates

In polar coordinates, a point (r, ฮธ) represents:

x = r cos ฮธ, y = r sin ฮธ

Also note the equivalences:

(r, ฮธ) โ‰ก (r, ฮธ + 2nฯ€), (r, ฮธ) โ‰ก (โˆ’r, ฮธ + ฯ€)

(a)

The point lies in the first quadrant.

x

y

O

P

3 , ฯ€ 4

P

โˆ’ 3 , ฯ€ 4

(c)

This point lies in the fourth quadrant.

x

y

O

ฮธ = โˆ’ฯ€ 4

P

3 , โˆ’ฯ€ 4

Equivalent forms: (3, โˆ’ฯ€ 4 ) = (3, 74 ฯ€ )

All polar coordinates:

( 3 , โˆ’ ฯ€ 4

  • 2nฯ€

3 ฯ€ 4

  • 2nฯ€

, n โˆˆ Z

(d)

Negative radius shifts the angle by ฯ€.

(โˆ’ 3 , โˆ’ฯ€ 4 ) = (3, 34 ฯ€ )

x

y

O

ฮธ = 34 ฯ€

P

โˆ’ 3 , โˆ’ฯ€ 4

All polar coordinates: ( โˆ’ 3 , โˆ’ ฯ€ 4

  • 2nฯ€

3 ฯ€ 4

  • 2nฯ€

, n โˆˆ Z

16. Replace the Cartesian equations with equivalent polar equa-

tions

Recall the polar relations:

x = r cos ฮธ, y = r sin ฮธ, x^2 + y^2 = r^2

โ€”

(a) y^2 = 4x

Substitute x = r cos ฮธ and y = r sin ฮธ:

(r sin ฮธ)^2 = 4(r cos ฮธ)

r^2 sin^2 ฮธ = 4r cos ฮธ

Dividing both sides by r (r 6 = 0):

r = 4 cos ฮธ sin^2 ฮธ

โ€”