GATE-2012 ECE Q12 (math)

Question 12 on math from GATE (Graduate Aptitude Test in Engineering) 2012 Electronics and Communication Engineering paper.

Q12. With initial condition  the solution of the differential equation,

 is

(A)

(B)

(C)

(D)

Solution

From the product rule used to find the derivative of product of two or more functions,

Applying this to the above equation, we can be seen that,

Plugging this in and integrating both sides,

.

Using the initial condition , we can solve for the unknown , i.e.
.

So the solution to the differential equation is,

Based on the above, the right choice is (D) .

 

References

[1] GATE Examination Question Papers [Previous Years] from Indian Institute of Technology, Madras http://gate.iitm.ac.in/gateqps/2012/ec.pdf

[2] Wiki entry on Product rule

 

GATE-2012 ECE Q47 (math)

Question 47 on math from GATE (Graduate Aptitude Test in Engineering) 2012 Electronics and Communication Engineering paper.

Q47. Given that

and , the value of is

(A) 

(B) 

(C) 

(D) 

Solution

To answer this question, we need to refer to Cayley Hamilton Theorem. This is discussed briefly in Pages 310-311 of Introduction to Linear Algebra, Glibert Strang (buy from Amazon.combuy from Flipkart.com)

From the wiki entry on Cayley Hamilton theorem,

If is a given  matrix, and  is the identity matrix, the characteristic polynomial of is defined as,

.

The Cayley Hamilton theorem states that substituting matrix for in this polynomial results in a zero matrix, i.e.

This theorem allows for  to be expressed as linear combination of the lower matrix powers of .

For a general 2×2 matrix the theorem is relatively easy to prove.

Let 

The characteristic polynomial is

Substituting by matrix  in the polynomial,

.

 

Now, applying Cayley Hamilton theorem to the problem at hand,

.

The characteristic polynomial is,

.

Substituting by matrix  in the polynomial,

.

Alternatively, .

Finding  in terms of by substituting for ,

Matlab example

>> A = [-5 -3 ; 2 0];
>> A^3
ans =

  -65  -57
   38   30

>> 19*A + 30*eye(2)
ans =

  -65  -57
   38   30

 

Based on the above, the right choice is (B) 

References

[1] GATE Examination Question Papers [Previous Years] from Indian Institute of Technology, Madras http://gate.iitm.ac.in/gateqps/2012/ec.pdf

[2] Introduction to Linear Algebra, Glibert Strang (buy from Amazon.combuy from Flipkart.com)

[3] wiki entry on Cayley Hamilton theorem

 

 

GATE-2012 ECE Q36 (math)

Question 36 on math from GATE (Graduate Aptitude Test in Engineering) 2012 Electronics and Communication Engineering paper.

Q36. A fair coin is tossed till a head appears for the first time. The probability that the number of required tosses is odd, is

(A) 1/3

(B) 1/2

(C) 2/3

(D) 3/4

Solution

Let us start by finding the sample space. The possible sample space with odd number of tosses till a head appears for the first time is,

Given that the coin is fair,

.

The total probability is,

Using Taylor series,

.

Substituting,

Matlab/Octave example

Felt it would be nice to get similar results using a simple simulation model

% Script to find the probability that odd number of tosses
% are required to get a head for the first time

clear all; close all;
N = 5*10^5;

% HEAD = 0, TAIL = 1;
% definfing the pattern corresponding to odd tosses 
% till the first head - limiting to max of 21 tosses
% converted to integer (for easy comparison)
pattern_v = [ ...
   sum(2.^0         .*  [0 ]);                      ... % H
   sum(2.^(2:-1:0)  .*  [1 1 0 ]);                  ... % TTH
   sum(2.^(4:-1:0)  .*  [1 1 1 1 0 ]);              ... % TTTTH 
   sum(2.^(6:-1:0)  .*  [1 1 1 1 1 1 0 ]);          ... % TTTTTTH 
   sum(2.^(8:-1:0)  .*  [1 1 1 1 1 1 1 1 0 ]);      ... % TTTTTTTTH ...
   sum(2.^(10:-1:0) .*  [1 1 1 1 1 1 1 1 1 1 0 ]);  ...  
   sum(2.^(12:-1:0) .*  [1 1 1 1 1 1 1 1 1 1 1 1 0 ]); ...
   sum(2.^(14:-1:0) .*  [1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 ]); ... 
   sum(2.^(16:-1:0) .*  [1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 ]); ... 
   sum(2.^(18:-1:0) .*  [1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 ]); ...
   sum(2.^(20:-1:0) .*  [1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 ]); ...
  ];

% finding the probability for each event in the  sample space
event_v = [1:2:21];
for ii=1:length(event_v)
   kk           = event_v(ii);
   x            = rand(N,kk)>0.5;
   xVal         = sum((ones(N,1)*[2.^([kk-1:-1:0])]).*x,2);
   matchCnt(ii) = size(find(xVal==pattern_v(ii)),1);
end
totalProb = sum(matchCnt./N)

Figure : Probability of odd number of tosses till first head

Based on the above, the right choice is (C) 2/3. 

References

[1] GATE Examination Question Papers [Previous Years] from Indian Institute of Technology, Madras http://gate.iitm.ac.in/gateqps/2012/ec.pdf

[2] Wiki entry on Taylor series http://en.wikipedia.org/wiki/Taylor_series

 

GATE-2012 ECE Q46 (math)

Question 46 on math from GATE (Graduate Aptitude Test in Engineering) 2012 Electronics and Communication Engineering paper.

Q46. The maximum value of  in the interval [1, 6] is

(A) 21

(B) 25

(C) 41

(D) 46

Solution

Let us start by finding the critical points of the function .

The first derivative is,

.

Solving by setting .

.

Taking second derivative, .

At and this corresponds to a local minimum.

At and this corresponds to a local maximum.

The value of the function at these critical points are,

.

Hold on, we are not done yet… 🙂

 

From the wiki entry on Extereme Value Theorem

In calculus, the extreme value theorem states that if a real-valued function f is continuous in the closed and bounded interval [a,b], then f must attain its maximum and minimum value, each at least once. That is, there exist numbers c and d in [a,b] such that:

.

Further, from wiki entry on finding maxima and minima,

If a function is continuous on a closed interval, then by the extreme value theorem global maxima and minima exist. Furthermore, a global maximum (or minimum) either must be a local maximum (or minimum) in the interior of the domain, or must lie on the boundary of the domain. So a method of finding a global maximum (or minimum) is to look at all the local maxima (or minima) in the interior, and also look at the maxima (or minima) of the points on the boundary; and take the biggest (or smallest) one.

For our example, the function is real valued and is continuous in the closed and bounded interval [1,6].

Finding out the value of the function at the boundaries,

.

So the global maximum of the function  in the interval [1, 6] is  and it occurs at the boundary i.e. x = 6.

Matlab example

clear all; close all;
x = [1:.1:6];
fx = x.^3 - 9*x.^2 + 24*x + 5;
plot(x,fx);
xlabel('x'); ylabel('fx');
grid on; axis([1 6 20 45]);
title('fx  =  x^3 - 9x^2 + 24x + 5');

Figure : Plot of the function  in the interval [1,6]

From the figure, it is relatively easy to observe that the maximum is hit at x=6 (and not at the local maximum point of x=2).

 

Based on the above, the right choice is (C) 41. 

References

[1] GATE Examination Question Papers [Previous Years] from Indian Institute of Technology, Madras http://gate.iitm.ac.in/gateqps/2012/ec.pdf

[2] Wiki entry on Extreme Value Theorem

http://en.wikipedia.org/wiki/Extreme_value_theorem

[3] Wiki entry on Maxima and Minima

http://en.wikipedia.org/wiki/Maxima_and_minima

GATE-2012 ECE Q24 (math)

Question 24 on math from GATE (Graduate Aptitude Test in Engineering) 2012 Electronics and Communication Engineering paper.

Q24. Two independent random variables X and Y are uniformly distributed in the interval [-1, 1]. The probability that max[X,Y] is less than 1/2 is

(A) 3/4

(B) 9/16

(C) 1/4

(D) 2/3

Continue reading “GATE-2012 ECE Q24 (math)”