to what extent are the fundamental principles of microeconomics (like law of demand, law of substitution, consumer surplus etc.) are applicable to macroeconomcs?

please anyone provide me the answer as soon as possible.

They are nearly all applicable.

You and I will likely work more with higher wage rates (micro). A country's quantity of labor supplied will increase with higher wage rates (macro).
I receive some consumer surplus when I buy jelly beans (micro). The consumers of a country collectively get some surplus with all the aggregrate goods and services they consume (macro).
You and I have opportunity costs (micro), a country, collectively, has opportinity costs (macro).

And on and on.

The fundamental principles of microeconomics, such as the law of demand, law of substitution, and consumer surplus, are indeed applicable to macroeconomics to a certain extent. Although there are differences between microeconomics and macroeconomics, the principles of microeconomics provide a foundation for understanding the broader concepts of macroeconomics.

To explain how these principles can be relevant to macroeconomics, let's examine each concept:

1. Law of Demand: The law of demand states that as the price of a good or service increases, the quantity demanded decreases, assuming other factors remain constant. In macroeconomics, this principle can be applied to aggregate demand, which represents the total demand for goods and services in an economy. When the price level in an economy rises, consumer spending tends to decline, leading to a decrease in aggregate demand.

2. Law of Substitution: The law of substitution suggests that consumers will switch to alternative goods or services when the price of a product increases. In macroeconomics, this principle can be seen in the concept of substitution effect. For example, when the price of a particular good increases, consumers may choose to substitute it with a cheaper alternative, affecting the overall consumption patterns in the economy.

3. Consumer Surplus: Consumer surplus measures the difference between the price consumers are willing to pay for a good or service and the actual price they pay. In macroeconomics, consumer surplus is relevant in the analysis of welfare economics and measuring the overall well-being of individuals in the economy. By considering the aggregate consumer surplus, policymakers can assess the impact of policies or economic changes on the welfare of the population.

While the principles mentioned above can be applied to macroeconomics, it is essential to note that macroeconomics considers broader concepts and aggregates, such as total output, unemployment, inflation, and government policies. Therefore, the application of microeconomic principles to macroeconomics may require caution and a recognition of the differences between the two fields.