# Tutor profile: Harsh B.

## Questions

### Subject: Calculus

How to differentiate $$\frac{sin(x)}{x}$$?

We need to use the quotient rule here $$(\frac{f}{g})\prime = \frac{f\prime g - g\prime f}{g^2}$$ Using that we get the derivative as $$\dfrac{\cos\left(x\right)}{x}-\dfrac{\sin\left(x\right)}{x^2}$$

### Subject: C++ Programming

How can I sort an array?

There are various approaches to sorting data like bubble sort, merge sort etc. Bubble sort being the simplest. In this method we just check if two adjacent elements are sorted. If they are not we sort them. We continue this for all pairs of adjacent elements until the whole array is not sorted.

### Subject: Physics

Why do things weigh less on the moon?

First of all one need to make a clear line between mass and weight. Mass is the amount of "stuff" that an object has. Mass doesn't change wherever you go. If you have 3 potatoes in a bag it doesn't matter if the bag is on the moon or on earth the amount of potato content in the bag doesn't change. Weight on the other hand is how strongly is an object being pulled gravitationally. Since heavier object have a stronger gravitational pull and moon being lighter than earth has a weaker pull and therefore things weigh less on the moon, even though they posses the same mass.

## Contact tutor

needs and Harsh will reply soon.