Thursday, August 23, 2012

First Order Differential Equation




A First Order Differential Equation is involving the unknown function y, its derivative y’ and the variable x. the most general type of  First Order Differential Equation can be written as Y’=f(x,y),or we can write as dy/dx=f(x,y), here f(x,y) is a function of two variables defined on a region in the xy plane. The equations is of first order because it involves only the first derivative y’ or dy/dx.

Now questions is that how do we solve first order differential equation. There are two methods which can be used to solve first order differential equation. First is separation of variables and second is Integrating factor. Again the new question in your mind should be how do we know which method should be used? so here is your answer, first method is separation of variables, this method is use when a differential equation can be written in the form dy/dx = f(y) g(x), where f is the function is y only and g is function of x only. To solve problems by this methods rewrite the problem as 1/f(y) dy= g(x) dx and integrate both side. Use the initial condition to find the constant of integration.

Let’s clear this method by one first order differential equation example. Solve dy/dx=xy with initial condition y(0)=1. So to solve this problem divide through by y we get 1/y dy/dx= x, now integrate both side with respect to x we get ∫ 1/y dy/dx= ∫ xdx, by solving we get ln(y)= x^2/2+c. now make y as the subject of equation so y= Ae^x^2/2 where A= e^c. this is the general solution of this equation.

Now our second method is Integrating factor this method is use when differential equation is give in the form dy/dx + p(x)y = q(x) where p and q are function of x only. Our next point is how do we find Integrating factor∫ The integrating factor is e^∫ p(x) dx. Now to solve problems by this method you need to rearrange the differential equation in to the standard form and find the integrating factor. Multiply through the integrating factor and rewrite the left hand side as the derivative of ye^ ∫ p(x) dx. Integrating both sides gives the general solution. For more information how to solve math problems visit math related expert online sites.

Now we will discus about what is first order nonlinear differential equation and what is first order ordinary differential equation. The first order differential equation is nonlinear if the function or its derivative is multiplied to itself.  One example is du/dx=u^2+1. The next is first order ordinary differential equation, in this differential equation the unknown function is a function of single independent variable.

Tuesday, August 21, 2012

Calculus Problems with solutions



Calculus is the mathematics of change, of calculating problems that are continually evolving. There are mainly two branches of Calculus, Differential calculus or Differentiation and Integral Calculus or Integration which deals with areas and volumes of complex figures. Let us solve some of the Calculus Problems using the various rules or formulas stated in Calculus.

Calculus question on Limits: Find the limit of lim(x->5) [x^2- 25]/[x^2+x-30]
 First we need to factor both the numerator and the denominator.
That gives us, lim(x->5)[(x+5)(x-5)]/[(x+6)(x-5)].
 Next we cancel the common factors, which is (x-5).
We get, lim(x->5)(x+5)/(x+6). Now, we substitute x = 5 which gives us, 10/11 which is the required limit.
Differentiate the following calculus question, f(x) =x^2/(3x-1)
Using the Quotient rule of differentiation, we get
f’(x)= [(3x-1)d/dx[x^2]- (x^2)[d/dx(3x-1)]/(3x-1)^2
        =[(3x-1)(2x) – (x^2)(3)]/(3x-1)^2  combining the like terms, we get
        = [6x^2-2x-3x^2]/(3x-1)^2 on further simplification
        = [3x^2-2x]/(3x-1)^2  
        = x[3x-2]/(3x-1)^2
   
Calculus Problem on Differentiation of Trigonometry Functions: Differentiate y=2sin(x)-3cos(x)
We use the factor rule of differentiation, d/dx[cf(x) = cd/dx[f(x)].
So, we get, y’= 2 d/dx[sin(x)] – 3d/dx[cos(x)]
 which gives us 2cos(x)-3[-sin(x)]=2cos(x)+3sin(x)

Let us work on a Calculus question on differentiation of a logarithmic function: y = x^x
First let us apply natural logarithm on both sides, log y = log xx = xlog x.
Using the product rule on the right hand side, 1/y[y’]=x(1/x)+(1) ln x= 1+ln(x)
Multiplying y on both sides, y’ = x^x[1+ ln x]

Evaluate arccos [-sqrt(2)/2]. In this calculus question, we first put y =arccos[-sqrt(2)/2]
that gives us cos(y)=- sqrt(2)/2
From the unit circle, we get the angle y as 3(pi)/4

Find the fourth derivative of the given higher order derivatives calculus question, y = cos x
First derivative, y’ = -sin(x)
Second derivative, y’’= -cos(x)
Third derivative, y’’’=-[-sin(x)] = sin(x)
Fourth derivative, y^(4)= cos(x)

Calculus Problems using summation notation: Find the value of Summation(i=0to2)[5+sqrt(4i)] which gives us, =[5+sqrt(4^0)]+ [5+sqrt(4^1)]+ [5+sqrt(4^2)]
  = [5+sqrt(1)]+ [5+sqrt(4)]+ [5+sqrt(4^2)]
=[5+1] +[5+2]+[5+4]
=22

Integrate integral (2+3e^x) is a Calculus question on Integration.
The steps involved are as follows:
Integral(2+3e^x)= integral(2)dx – integral(3e^x)
= integral(2)dx- 3 integral(e^x)
         = 2x- 3e^x+ C

Integration by parts: Let us solve a Calculus question, Integrate integral (xsinx)dx
In this problem, let  u = x and dv = sin x dx
So, we get, du/dx = 1;
du = (1)dx and v = -cos x
Therefore, integral(xsinx)dx= x(-cos x) – integral (-cos x) dx = -x cos(x) + sin(x) + C

A problem solvers solution guide is a Calculus Problem Solver which gives a stepwise explanation of many of the calculus problems. We can even get online calculus question solvers.

Tuesday, August 14, 2012

Numerical integration methods



Introduction to numerical integration:  First here we will understand the concept   What is Numerical Integration As we know in integration that if ɸ(x) is primitive of f(x) defined on [a, b], then integral a to b f(x) dx = ɸ(b) - ɸ (a). In most of the practical problems we are given a set of numerical values of the function f(x) corresponding to some values of x and in some cases either the primitive does not exist or it cannot be easily determined by elementary means; as a result the computation of the definite integral by the above formula may not be possible. In such circumstances, the numerical methods for integration are needed. 

Numerical integration is the process of computing the value of a definite integral when we are given a set of numerical values of the inte-grand f(x) corresponding to some values of the independent variable x. And also Methods of Numerical Integration  are The trapezoidal rule: Let y = f(x) be a function defined on [a, b] which is divided into n equal su-intervals each of width h so that b – a = nh. Let the values of f(x) for (n + 1) equidistant arguments x0 = a, x1 = x0 + h, x2 = x0 + 2h, …., xn = x0 + nh = b be y0, y1, y2, …., yn respectively, then Integral a to b f(x) dx = integral x0 to x0 + nh = y dx = h[1/2 (y0 + yn) + (y1 + y2 + ….. + yn)].

This rule is known as trapezoidal rule. In the derivation of this formula it is assumed that the y is a linear function of x i.e., the equation of the curve is the form y = a + bx and second rule is Simpson’s one-third rule: Let y = f(x) be a function defined on [a, b] which is divided into n (an even number) equal parts each of width h so that b – a = nh. Suppose the function y = f(x) attains values y0, y1, y2, …., yn at n + 1 equidistant points x0 = a, x1 = x0 + h, x2 = x0 + 2h, …., xn = x0 + nh = b respectively. Then Integral a to b f(x) dx = integral x0 to x0 + nh = y dx = h[1/2 (y0 + yn) + (y1 + y2 + ….. + yn)] = h/3[(y0 + yn) + 4(y1 + y3 + ….. + yn-1) + 2(y2 + y4 + ….. + yn-2)] = (one –third of the distance between two consecutive ordinates) × [(sum of the extreme ordinates) + 4(sum of odd ordinates) + 2(sum of even ordinates)] this formula is known as Simpson’s one-third rule.

Its geometric significance is that we replace the graph of the given function by n/2 arcs of second degree polynomials, or parabolas with vertical axes. It is to note here that the interval [a, b] is divided into an even number of subinterval of equal width.

Wednesday, July 25, 2012

Limits: Discontinuity, a function with ‘breaks’



In Calculus, a branch of mathematics we learn about limit of a function, we say that the limit of f(x) is L as x approaches ‘a’ and is written as lim(x->a) f(x)=L, provided we can make f(x) as close to L as we want for all x sufficiently close to a, from both sides, without actually letting x be a.

Discontinuity : A function is said to be continuous at x=a if lim(x->a)f(x) = f(a). In simple words a function is said to be continuous if the graph of the function has no breaks in it, that is, it is a continuous curve. Many functions, however, will have isolated points where they are not connected. Such type of points is called Discontinuity points of that function. Definition of Discontinuity can be given as, a function is discontinuous at ‘a’ if it is defined at ‘a’ but is not continuous at ‘a’. Discontinuity points can be classified into three types.

The function f(x) has a discontinuity of first kind at x=a if there exists left hand limit, lim(x->a-0)f(x) and right hand limit (x->a+0 f(x) and also these one-sided limits are finite.
Point discontinuities are also called the removable discontinuities. Sometimes we come across functions that are defined differently for a certain point. Let us consider the function f(x)=1 for x=3 and f(x) =x^2,  for all positive real numbers. We define the value of the function to be one at the point x=3, though the rest of the function is given by f(x) = x^2. When we graph this function, we can see that the function is continuous except for this tiny hole in the curve at x=1. It is discontinuous at a single point x=1, and this discontinuity is called the point discontinuity or the removable discontinuity. In general, point discontinuities occur when a function is defined specifically for an isolated value of x.

What is Jump Discontinuity
One might wonder what is a Jump Discontinuity. Let us now learn about a Jump Discontinuity, in this type of discontinuity the right hand limit is not equal to the left hand limit of a function f(x). Jump discontinuities are also called simple discontinuities. Let us consider a function, f(x) = x^2 for x less than equal to 1 and f(x) =6-x^2 for x greater than 1. The two pieces have different value at x=1, and the graph of these function f(x) seem to ‘jump’ from one branch to another and this jump makes the function discontinuous. We refer this discontinuity as a jump discontinuity

Tuesday, July 10, 2012

How to do Regression Testing


Regression Testing
Regression in statistics is the relation between selected values of x and observed values of y from which the most probable value of y can be predicted for any value of x. For example, a researcher in the medical field might want to use the age of a person (independent variable) to predict the most appropriate dose for a new drug (dependable variable) The purpose of running the regression is to find the formula that fits the relationship between the two variables. This regression formula helps to predict values for the dependent variable when only the independent variable is known. The end result of the analysis or testing would help a doctor to prescribe the proper dose based on person’s age.  The analysis done along with test procedures involving finding the standard error of the slope, degree of freedom, test statistic (t-score) and p-value which help in interpreting the results of the testing  whether the standard requirements for a simple linear regression are satisfied or not is known as Regressing testing.

Regression Testing Definition
We can define Regression Testing as a statistical tool that investigates the relationship between the dependent and independent variables in a linear regression.
Consider a Regression Testing Example: Using the sample data, determine the slope standard error, the regression line slope, the degree of freedom, the statistic test, and also the P-value accompanying the test statistic. The data given below is a output formed hypothetically for the regression equation y’= 76 +35x [y’= a+bx, b is the slope]

Predictor        Coefficient Standard error coefficient T P
constant                76 30 2.53       0.01
  x 35 20 1.75       0.04

Step1: calculate the slope’s standard error, and for this we use the formula,
SE = sqrt{sigma(y1- y’1)2/(n-2)} divided by {sqrt[sigma(xi- x(bar))2]
xi  is the observed values, x(bar) is considered as the mean of the independent variables, for number of observations we denote with n
Step2: The regression line slope is 35.
Step3: Degree of freedom is calculated using, DF = n-2, where n is the number of observations.
Step4: Test static is a t-score (t) given by t=slope of the regression/standard error of the slope.
Step5:  the probability of observing a sample statistic as extreme as the test static is considered as P value.
A t-Distribution Calculator is used to evaluate the probability considered with the test statistic
using the computed degree of freedom.
Step6: Finally the results are interpreted. Comparing the P-value with the significant level (which is
            mostly taken between 0 and 1) and the null hypothesis is rejected when the P-value is found to be less than the significant level.

Know more about the statistic help, Math Homework Help. This article gives basic information about Regression Testing. Next article will cover more statistic concept and its advantages,problems and many more. Please share your comments.